I'm wondering if anyone knows how or knows of a tutorial somewhere that shows exactly how to deploy a mvc2 application on IIS 7.5.
For simplicity i tried to deploy a default mvc2 application made in visual studio 2010. I clicked create new project and selected mvc2 application. Then i went straight to publish, selected web deploy and wrote for
Service URL: http://localhost
Site/Application: Default Web Site/MyApp
and ticked the checkbox 'mark as iis application on destination'.
It published sucessuly and then upon opening IIS 7.5 i found it there under the default site. I clicked on MyApp and selected browse. But, this simply takes me to a page that lists the contents of the application as if i were looking at an ftp page.
Please help, i have searched quite a bit and not found any clear explanation of how to deploy MVC2 to a local IIS 7.5. Thanks for your help.
I installed the asp.net features for IIS. Then when clicking publish in visual studio i selected deploy to web and entered a path. That created a virtual directory for the application in IIS 7. http://localhost service/url
When browsing that however i just see a list of what files are in the application as if it were an ftp server. Then i tried right clicking on that virtual directory and selecting convert to application. Then when trying to browse i just get this error:
ilovegrolsc
Member
6 Points
28 Posts
Deploying mvc2 project on local IIS 7.5
Aug 28, 2010 10:42 PM|LINK
Hi,
I'm wondering if anyone knows how or knows of a tutorial somewhere that shows exactly how to deploy a mvc2 application on IIS 7.5.
For simplicity i tried to deploy a default mvc2 application made in visual studio 2010. I clicked create new project and selected mvc2 application. Then i went straight to publish, selected web deploy and wrote for
Service URL: http://localhost
Site/Application: Default Web Site/MyApp
and ticked the checkbox 'mark as iis application on destination'.
It published sucessuly and then upon opening IIS 7.5 i found it there under the default site. I clicked on MyApp and selected browse. But, this simply takes me to a page that lists the contents of the application as if i were looking at an ftp page.
Please help, i have searched quite a bit and not found any clear explanation of how to deploy MVC2 to a local IIS 7.5. Thanks for your help.
I installed the asp.net features for IIS. Then when clicking publish in visual studio i selected deploy to web and entered a path. That created a virtual directory for the application in IIS 7. http://localhost service/url
When browsing that however i just see a list of what files are in the application as if it were an ftp server. Then i tried right clicking on that virtual directory and selecting convert to application. Then when trying to browse i just get this error:
Default Web Site/MyApp site/application
c:\Windows\Microsoft.NET\Framework\v4.0.30319
ketan_al
Contributor
6850 Points
1143 Posts
Re: Deploying mvc2 project on local IIS 7.5
Aug 29, 2010 04:26 AM|LINK
Hi,
Please refer following
http://stackoverflow.com/questions/2899842/deploy-asp-net-mvc-2-to-iis-7-5-targeting-net-3-5
http://www.codedigest.com/Articles/ASPNETMVC/216_Hosting_and_Deployment_of_an_ASPNET_MVC_Application_in_IIS6_and_IIS7.aspx
hope this helps
MCP, MCTS ( ASP.NET 3.5 )
Please mark as answer if it helps :)