I want to run my application from IIS on my local machine. I created the virtual directory and added the application to it.When I run application from IIS it work properly but when I am trying to run through VS 2015 it throws error.
Please run your app using "start without debugging" to get much more information in your side.
I met this kind of error message before which was related to the visit/write access.
Running an ASP.net project with an Application Pool with a specific Identity yields "(403) Forbidden"
I know this is an old post, however, I have had the same problem within vs2019 after switching to IIS debugging. In my case, I was confident that IIS was set up correctly, as another application was attaching fine.
Eventially after reviewing the documentation, I discovered that your web.config may need altering to include the following attribute:
<configuration>
<system.web>
<compilation defaultLanguage="VB"
debug="true"
After setting debug="true" as stated, the debugger attached fine. Just make sure you're running VS as Admin!
Other things to consider, that I have found along the way:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
iisreset
may also help (start > 'cmd' (as admin) > type: iisreset
)Load User Profile
to false
also helps. You can find this in IIS Manager > AppPools > [Your app pool] > Advanced Settings > (category) Process Model. The default will be trueReferences
A few other things to try
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With