web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Trying to attach to process for Debugging in Visual studio after PU 34 and version 10.0.10 upgrade

(0) ShareShare
ReportReport
Posted on by 1,128

Trying to attach to process for Debugging in Visual studio after PU 34 and version 10.0.10 upgrade and it's throwing this error when I  use "w3wp.exe"
"This tasks requires application to have elevated permissions". See the attached image below.

VS is already running as administrator, not sure why I am getting this error.

pastedimage1591108998987v1.png

Thanks

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    What kind of environment is this? A cloud hosted, MS managed or locally hosted? How did you install the update? From command line or via LCS?

    Can you show a screenshot of the full VS window so that we can see that it's running as administrator?

  • Ann2015 Profile Picture
    1,128 on at

    I did RDP to my dev build server and am logged in as Admin and I installed the update from LCS

    pastedimage1591110280350v1.png

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    The screenshot doesn't show if you're running VS as administrator or not. Whether you login with "Admin" account to the VM or not doesn't have any impact.

    2548.VS.png

    It will show "Administrator" in the top bar of VS if you're running it as administrator.

    Is it a Cloud hosted system or a Microsoft managed environment? What do you mean by "dev build server"? Which one is it? You should not debug on a build server. Build server should be used only for build purposes, you shouldn't ever need to open Visual Studio on that system.

    And, in Cloud hosted / MS managed systems you should attach to iisexpress.exe, not w3wp.exe.

  • Ann2015 Profile Picture
    1,128 on at

    I am logged in as the Admin account. Also this worked fine before the upgrade and I used IISexpress.exe but I don't see it anymore in the list of processes so thought of using w3wp.exe. What am I missing?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Yes, you are using Admin account but are you running VS as administrator (=with elevated privileges)? To me it seems that this is one thing that you are missing. Right click VS icon and choose "Run as administrator...".

    Could you please try that, and share a screenshot of the top bar of VS, like I did in my post? Thanks!

  • Suggested answer
    Joris dG Profile Picture
    17,775 on at

    There was a deployment problem in the last week or two. Please redeploy this environment, as there are missing permissions.

    Note the permission missing is not to debug w3wp. However, the permissions is missing to STOP w3wp so you can use IISExpress. You will have other issues on this box - you can't start/stop services, likely have no proper access to SQL, etc.

    The deployment issue was fixed so if you redeploy this VM, you should be all good to go.

  • Ann2015 Profile Picture
    1,128 on at

    Thank you all for takign the time to reply. I will contact MS for this issue. Hopefully they can resolve it.

  • Suggested answer
    Joris dG Profile Picture
    17,775 on at

    Again, if you're willing to redeploy you should do so since that will fix your problem and may shorten your time to fix as opposed to waiting for a back and forth. We told our support team to suggest the same thing.

  • Suggested answer
    Peter Zaher Profile Picture
    40 on at

    Hello,

    You always can attach debugger to iisexpress instead of w3wp without administrative permissions.

    pastedimage1591172109982v1.png

  • Joris dG Profile Picture
    17,775 on at

    That is true, however the fact w3wp is still running means iisexpress is not running.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans