URL Rewrite Module, Azure and web.config - iis-7

I'm trying to use the URL rewrite module in Azure but for some reason I can't add a <rewrite> section to the web.config's system.webServer section (as shown on http://msdn.microsoft.com/en-us/library/dd573358.aspx).
I've installed the URL Rewrite Modeul v2via the Web Platform Installer. I'm using Visual Studio 2010 with the v4.0 framework and a standard ASP.NET Work Role.
Any help in this regard would be greatly appreciated...

If you are deploying to Microsoft Azure platform, there is no need to install any rewrite module. Is already installed on the IIS7.
If your visual studio doesn't allow to publish or generate the package, you can try to install the module on your dev machine.
I reproduced your error on a Visual Studio 2010 express, having the same warning and I'm able to generate the package, then, if you are working in another version, you could try to upgrade. No rewrite module installed on my pc.

Related

ASP.NET - Install Visual Studio without IIS

I already have IIS installed on my localhost.
I just use sublime text editor to create my website.
But now i have problem in debugging the vb code. So I decided to install Visual Studio Express.
So, can I install the Visual Studio Express without conflicting the existing website?
Yes you can.
Visual Studio uses IIS Express, that works on random ports different from standard ones (80 etc)
So youll'not have problem with existing IIS websites.

Visual Studio 2015 IIS Express 500 Error

I have an ASP.Net website project that I am migrating to .Net 4.6.1 .
I have installed Visual Studio 2015 Community, and I have successfully compiled and built both the website and its component DLL.
When I try to use IIS Express to debug with F5, I get a 500 error...
HTTP Error 500.0 - Internal Server Error
Tracing area "Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,Rewrite,RequestRouting" is not recognized
That says to me that IIS Express does not have a module installed that I need. I thought it might be that ARR and URL Rewrite were not installed, so I installed these, no change.
My ApplicationPool in production uses PreWarmCache technology to start up and avoid 'first hit' delays, and do other one-time startup work.
Help with getting IIS Express to run the site would be very useful.
If you have a line like this in your web.config file, can you remove it and try to run it again?
<add provider="WWW Server"
areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,Rewrite,RequestRouting"
verbosity="Verbose" />
It is also possible to get the blank page and 500 errors due to a problem with Visual Studio's project migration. Closing the solution and deleting the .vs folder can remedy this.

IIS Express option unavailable in Visual Studio 2010

How do I enable the option to use IIS Express for a website project in my solution?
I have installed IIS Express but it does not show up as an option? I would like to use this because at the moment I cannot use IIS on my machine.
Do you have Visual Studio 2010 SP1 installed? SP1 is required to get the IIS Express option in the Web tab of your project properties. (don't forget to also do a windows update) Also, you should install the Visual Studio 2010 Web Standards Update as well.
As 'Mystere Man' said you need VS 2010 service pack (SP1) to see IIS Express option in VS. If you are sure that you have SP1 installed, did you check if IIS Express exists in the installation folder? (%programfiles%\IIS Express or %programfiles(x86)\IIS Express)
If it is not installed, you can install it from http://www.microsoft.com/en-us/download/details.aspx?id=1038
I had this problem because I opened the site through IIS. The only way to see that the project was opened through IIS is the lack of this button and the title of the Web Site project looks like: http://localhost/x rather than http://localhost:1111.
To get the ability to use IIS Express, you have to remove the Web Site project from the solution and use Add Existing Web Site then choose the file system.

Can I set the ASP.NET Version used by the Visual Studio ASP.NET Development Server?

I'm trying to debug a problem which shows up under IIS7 using an application pool configured for .NET 4. My Visual Studio ASP.NET Development Server says it is using 2.0.50727.5456.
I'd like to debug this out of VS so I'd like the .NET versions to match. I've found info on setting ports but there was no version setting nearby. And I couldn't find anything under the the Website.ASP Configuration menu item in VS either.
Is there any way to configure the ASP.NET Development Server's .NET version?
Check the targetFramework attribute of your compilation element in your web.config. If it's missing, add the attribute, and try setting it to 4.0.
If you're using a web application project (not a web site), try checking the project settings and look for Target Framework.
A better solution would be to make sure you have installed VS 2010 SP1, then install IIS Express which is a stand-alone version of IIS used for development. This uses the exact same code as is in the full IIS, this way your environment is the same.
http://learn.iis.net/page.aspx/868/iis-express-overview/

Not able to create an ASP.NET website with visual studio 2008

I have installed ASP.NET along with my Visual Studio, but when I tried to create a website from File-->New Website and put Location as http and language as C# it throws an error. I have installed IIS manager 7 in the machine but when I check in Services.msc IISadmin is not listed, but I do have a directory C:\inetpub\wwwroot\
Installing the umbrella 'IIS' is not enough. You have to go deeper into IIS in Windows Features and physically select everything that error dialog tells you to install.
You need to install those features as well.
If you're running Windows 7 Home Basic and Starter Editions, you may not get all of them as available options.
This will help: http://learn.iis.net/page.aspx/28/installing-iis-7-on-windows-vista-and-windows-7/
check from the window features if iis components are all installed.

Resources