Click here to Skip to main content
14,865,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i run mvc application in vs 2012 its working fine under default web browser.
if i trying to change the web browser from asp.net development server to iis in vs 2012 it showing me that "virtually directory is created successfully" but i am not able to see that application with in IIS.


please tell me what i need to do for launch my mvc application in IIS.(i have refreshed sites in iis but i am not getting)
Posted
Updated 2-Nov-15 17:44pm
v2
Comments
Member 11944583 3-Nov-15 0:43am
   
i am not getting how to run mvc app under iis not for deploy

For deploying web application to IIS through Visual Studio, follow the deployment steps as described in the following article-
ASP.NET Web Deployment using Visual Studio[^]

Hope, it helps :)
   
Comments
Member 11944583 3-Nov-15 23:45pm
   
hai Giri
my doubt is that it has created successfully but i am not able to see that application in iis server after refresh Default sites also.Thats what my problem.
Steps to deploy MVC application.

1) Changes in Web.Config, change connectionstring if you are using Windows Authentication mode then switch to SQL Server Mode in SQL Server Authentication,
Authenticate using user id and password.

2) use following connection string if you have hosted it on IIS
connectionString="Data Source=something;user id=something;password=something;Initial Catalog=databasename" providerName="System.Data.SqlClient"



3 Once you have changed the connection string,

Change the user access rights of the project main folder,
a) right click folder,
b) go to Security, in security click Edit button
c) click Add,search for IUSR or current user of the system
d) click ok, provide full access rights to the newly add user

4) Publish your website as usual

5) Do all the changes and restart your IIS

Mark as answer if you find it useful!!Best of luck Smile | :)

Thanks,
Gunaprasad
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900