Click here to Skip to main content
15,868,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My project Name is "MyContacts"
I have done Deployment process like below.

I have built my application that has built successfully after that i published in
"D:/Projects/MyContactsPublish"

next i opened inetmgr and added application pool for this application named as "MyContactsSite"
next i added Application under Default Website left side of the IIS window named as "MyContactsSite" and added the Advanced settings in that i have chosen the Application pool "MyContactsSite". Finally i selected the Published path for Application under default wesites.

Now it is working fine but Issue is my CSS styles are not applying for that site and Database is not apply for that i have maintained connection string in web.config.

So could you please tell me how to deploy mvc application with database. I have searched in google but i could not get proper deployment process.
Posted

1 solution

Hi Kumar,

Quote:
MVC Hosting tips with database


I would like to let you know while deploying the MVC application in web.config,
connection string please change your string,use SQL Server Mode rather than using normal Windows Authentication mode in SQL Server,set userid="" and password="" in your connection string, use following connection string if you have hosted it on IIS

<br />
connectionString="Data Source=something;user id=something;password=something;Initial Catalog=databasename" providerName="System.Data.SqlClient"



- Once you have changed the connection string,

- Change the user access rights of the project main folder IUSR in your case

- Publish your website as usual

- Do all the changes and restart your IIS

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

Thanks,
Gunaprasad
 
Share this answer
 
Comments
_Asif_ 19-Jan-16 2:51am    
You have responded to 1.5 year old question, OP must have got the resolution by now :)

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