Custom Search
Your Ad Here
Latest News

How to set-up MVC 2 to window 7 IIS step by step and mysql database

7/16/10 , Posted by Gregfox at 12:47 AM

1). Install  .Net framework 3.5 or  4 (dotnetfx35setup.ex)
2. Install mysql connector net 5.2.5 or higher
3. Install MVC 2 AspNetMVC2_RC_VS2008.exe

4.)  Next is to install database backup, open your mysql server and then execute th
5.) Go to your folder and copy of the compiled MVC code to C:\inetpub\wwwroot
6.) Right click the MVC code folder and click properties. 
7.) Go to security tab and click edit button 
8.) Each group or usernames make sure should have a full permission as shown below. And then click apply


 9.) Go to start menu and type “inetmgr” and press 
 10.) Right click sites and then click add website


 11.) On the site name type sample site and then click the select button and select DefaultAppPool, and on the port type 8080 and then click ok.



12.) Go to C:\inetpub\wwwroot\samplesite  and open the web.config file using notepad.

 13.) . Once the web.config file is open, locate the and then change server name,userid and password to match your local configuration.Then Save Changes


    server=localhost;user id=root;password=[Your Password];persist security info=True;database=devrc_orlandoderm" providerName="MySql.Data.MySqlClient"/>
    MVCProject.csdl|res://*/Models.MVCProject.ssdl|res://*/Models.MVCProject.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;User Id=root;password=[Your Password];Persist Security Info=True;database=devrc_orlandoderm"" providerName="System.Data.EntityClient" />
 

  14. Open your browser and type http://localhost:8080.


15. 
 

Currently have 0 comments:

Leave a Reply

Post a Comment