IIS 7.5 settings - iis

I have a site and, when I start from Visual Studio, fiddler says main page takes 2 seconds to load( with setting use local IIS server). When I start from IIS (browse same page), fiddler says 16 seconds.
Any idea what I should be looking for (every time before loading page I close all webdev processes and I hit IIS reset)?
Thank you

I would definitely avoid using timings when starting the site from Visual Studio, you should prefer to use timings from browsing to the site independently of Visual Studio.
Also, make sure you're timing against a Release build and make sure that <compilation debug="false"> is set in your web.config. Finally, make sure you haven't accidentally still got Visual Studio running or have VS "Attach to process".
The ideal scenario would be to test against a machine that that closely matches exactly what your production environment is like.

Related

IIS gone (including sites and application pools) after Windows 10 Creators Update

After installing the Windows 10 Creators Update (1607), IIS is no longer installed.
When I re-install it from "Turn Windows features on or off", I find that all my application pools and all my sites are gone.
The "good" news is that there seems to be a way to restore the IIS app pools and sites (after re-enabling IIS from "Turn Windows features on or off").
It’s a little tricky and error prone, but it’s better than nothing.
Here is the procedure that worked for me:
In a text editor, open C:\Windows.old\WINDOWS\System32\inetsrv\config\applicationHost.config. This is the original IIS data from before the update.
In another text editor open C:\Windows\System32\inetsrv\config\applicationHost.config. This is the active IIS data.
Replace the <applicationPools> and <sites> elements in the active file with those from the original
Run iisreset from an elevated command prompt

MVC 5 Windows 10 Local IIS Debugging not working IIS Express is working [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
Probably simple but I have tried a number of things to get this going.
My MVC 5 project debugs fine in IIS express on windows 10.. but Local ( Full ) IIS does not debug at all. I am sure I have configured IIS correctly and the project.
Ideas?
As long as you are running visual studio with elevated permissions, you should be able to debug on Local IIS server.
Right click visual studio and select Run as Administrator. This will start VS with elevated permissions.
If you are trying to debug an app deployed in IIS without running your VS solution/project in debug mode in visual studio, you need to attach the visual studio debugger to the process which runs your web app in IIS.
Right click visual studio and select Run as Administrator
Open a browser and access your site. This will start a new w3wp process for the site if there is not one already.
Open your solution. Put breakpoints. From the menu bar, select Debug-> Attach to Process
Select the w3wp process for your web app.
Click Attach button and then you can reload your page in browser/perform some action on the page. When code executes the line where you have the breakpoint set, it will stop there and you can do whatever debugging you want to do.
I am not sure what i did wrong first time, below steps resolved the issue
I am on win 10, IIS 10.0
Disabled the IIS from windows features
Restart machine
Enable IIS from windows features
Enable internet information services-->world wide web services->application development features-->check on ASP.NET 4.6 and all 4.6 related features.(When you select ASP.NET 4.6 all other dependent features will be selected by default)
from command prompt using elevated privileges/administrator run aspnet_regiis -i

IIS High CPU Usage in Visual Studio 2013

When we use Visual Studio 2013 for web development, we experience the following issues while debugging:
Web application takes a very long time to load
Client scripts take a long time to load
CPU usage by the IIS worker process increases enormously while debugging the application
Changing to a local IIS does not solve these problems.
What's going on here?
According to this site https://www.devexpress.com/Support/Center/Question/Details/T102322
In Microsoft Visual Studio 2013, the Browser Link feature was introduced. It provides dynamic exchange between IDE and any open browser on your machine. With the help of this feature, you can test changes in page markup in browsers on the fly, inspect HTML objects, etc. However, the use of this feature might cause abovementioned problems in the debugging process.
A common solution is to disable Browser Link in Visual Studio:
For me, this was happening because I use Resharper and have a big file oppened (30k lines). I just disable resharper for some specific files.

IIS express crashes after successfully debugged and build

I am running my mvc project in visual studio 2013 no errors comes in debugging and all projects build up successfully. after it when visual studio run the project and launch IIS express process it got crashes with following error which comes in result window.
The program '[13280] iisexpress.exe' has exited with code -1073740771
(0xc000041d). The program '[13280] iisexpress.exe: Program Trace' has
exited with code 0 (0x0).
I also re install visual studio reset its all settings problem still exist.
I also check whether iis is working ok? I deployed the websites on iis and they are working fine, Only the websites which i run from visual studio did not work and gives upper mention error message.
I solved my problem myself... I make a couple of changes which solved my problem, Steps are as follows....
Uninstall IIS
1.1. Go to control panel-> Programs and features -> Turn Windows Features On or Off.
1.2 De-select Internet Information Services and Internet Information Services Hostable Web Core.
1.3 Restart the system.
1.4 Go to My Documents and delete folder "IISExpress".
Install IIS again
2.1. Go to control panel-> Programs and features -> Turn Windows Features On or Off.
2.2 select Internet Information Services and Internet Information Services Hostable Web Core.
2.3 Restart the system.
this solved the problem.

Debugger can't connect when starting local azure project

Ok, first of; here's what I did:
Install AZURE tools
Reboot
Start Visual Studio - new Azure project
Add web role (asp.net MVC 4 beta web role)
Hit F5 (debug)
It starts up the storage emulator and the compute emulator and starts to load in runtimes, and then I get a popup saying that the debugger couldn't connect.
Then after some googeling I'm suggested to try to run the application without running the debugger to see if I can acces the application. When I do I get this:
So I figure that IIS does not have permissions to access some file/directory. So I go to IIS and look up the application pool running the app, and it tells me that the identity in use is NetworkService, then I go give NetworkService full permissions to the entirety of the folder IIS has set for the application (which also happens to be the path to the project dir). Still I get the same error. Now I'm more or less out of ideas, but I try one last thing, which is to also give IUSR full permissions to the same dir, but this did not help either.
How can I go about resolving this problem? I haven't tried actually launching my project to Azure yet, cause if I can't even get it to work in development I don't see much point. Any and all help would be appreciated.
I ran into the same error today after uninstalling .NET 4.5/Visual Studio 11 Dev Preview, then installing ASP.NET MVC 4 Beta (this is before Feb 29th when the updated VS 2011 Preview drops).
Since I uninstalled .net 4.5, you just need to do an "aspnet_regiis -i" to ensure the .net framework (4.0) is set up with IIS 7.x this worked for me.
Edit: This will work if you uninstall/then manually install Visual Studio 2012 RTM as well.
I had a similar error yesterday. For me the problem was that the output of the build was empty in the target folder.
I tried to answer a similar question https://stackoverflow.com/a/9411422/182371:
Check %UserProfile%\AppData\Local\dftmp\IISConfiguratorLogs\IISConfigurator.log
file for the error messages. Mode details at
https://stackoverflow.com/a/8432621/182371
Make sure that the build output of your project is not empty. You can do this by going to IIS, find the site with the name similar to
'deployment16(6).WindowsAzureProject2.WebApplication3_IN_0', right
click --> Explore.... Make sure that this folder is not empty and
contains all the files required to start a web project successfully.
As for the Access Denied error:
it could be just an IIS default setting to disable browsing. To resolve that, just navigate to that web site in IIS, find Directory Browsing icon, and press Enable. You will at least see the files inside that directory.
Also try not only 127.0.0.1:81, buta specific document inside that folder, like 127.0.0.1:81/Default.aspx
Take into account the fact that there's sometimes some mess with the ports. You see that in the error message it's port 82, but in your browser it's port 81. So make sure you're using the right port. Or, even better, in your service definition try to use some non-standard port for this to avoid remapping.
I've met the same issue. In the end, I had to reinstall IIS 7.
I got this exact same error and tried a re-install of IIS and the Azure SDK - nothing worked.
Eventually tracked it down to the "IIS URL Rewrite Module 2". I went to the Control Panel and chose Repair and it resolved it. If you have a section in your web.config then this might be the cause.
Follow step 11 from http://www.microsoft.com/en-us/download/details.aspx?id=35448. Worked for me on Windows 8 with Oct 2012 SDk when upgraded from 2011.

Resources