MVC4 published to IIS7.5
NickName:aserwin Ask DateTime:2013-05-11T03:40:12

MVC4 published to IIS7.5

I have an MVC4 application that works fine from Visual Studio, but when I built it to local IIS or publish it to remote IIS (7.5 both) I get 403 error.

Is there some setting I am missing in IIS to run MVC? (I run PHP Zend 2 and Symphony apps on the server with no problem)

Copyright Notice:Content Author:「aserwin」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/16489691/mvc4-published-to-iis7-5

Answers
Dan 2013-05-10T19:51:07

403 is an Access Denied. Do you have authentication scheme in your application or is it supposed to be anonymous access? If you want anonymous access, open IIS manager and go to your website. Under the IIS section, open the Authentication item and make sure anonymous authentication is enabled. Another spot to check is under the ASP.NET section, make sure there is not a deny under the .NET authorization section.",


More about “MVC4 published to IIS7.5” related questions

Can ASP.NET MVC4 run on IIS7.5, .NET Framework 4?

I have an MVC3 application, and I want to upgrade to MVC4 after its RTM. But I don't have the right to change the production server environment. It's a Windows Server 2008 R2 with IIS7.5 and .NET4

Show Detail

Redirect to non-www-url domain with MVC4 / IIS7.5

First of all, I just spent a few hours on Stackoverflow reading similar questions but no answer seems to work for me. I have an MVC4 application which has an SEO issue : the non-www is not redirec...

Show Detail

MVC4 published to IIS7.5

I have an MVC4 application that works fine from Visual Studio, but when I built it to local IIS or publish it to remote IIS (7.5 both) I get 403 error. Is there some setting I am missing in IIS to...

Show Detail

Deploying MVC4 App on IIS7.5

I'm trying to deploy MVC4 on IIS7.5 but i have some issues. I have installed Windows Server 2008 R2 installed .NET 4.0 installed Web Deployment 64 Tool installed IIS 7.5 role (With ASP.NET and

Show Detail

MVC4 Application Layout - Difference between localhost and published version

We have developed a MVC4 application. When running locally, it works well. But when it is published to IIS, the layout completely changes and the screens look weird. Do I have to do any configuration

Show Detail

Published mvc4 web application re-seeding/erasing db randomly

I have created a website using mvc4, everything working fine in the dev environment. The site was running for about 6 hours (luckily only a few people had registered) and then the database reverte...

Show Detail

IIS7.5 Not Compiling Code

I have just upgraded to using IIS7.5 to host websites on localhost. However, the dynamic compiling of ASP.NET is not working for any web site. I have checked the C:\windows\microsoftnet\framework.....

Show Detail

how to remove local machine folder path from published application dll

I published one web application in IIS7.5 i followed below steps in VS2008 i used published web application option after that i hosted publish folder in IIS 7.5 every thing working fine. I am u...

Show Detail

Deploy MVC4 on IIS7.5

I deployed an MVC4 application developed using framework v4.5 on IIS 7.5. The application works fine on IISExpress, but not on IIS7.5. When I try to access the application on my machine at: localhost/

Show Detail

extensionless image file not visible in IIS7.5

We have extension less images which worked perfectly in iis6. However, in IIS7.5 even after adding the static file handler i am not able to get it to display the image. I have ticked the Static con...

Show Detail