Friday, October 5, 2012

HOW TO HOST MVC WEB APPLICATION IN IIS

1. Open IIS Manager. >
2. Add site .










3. And add host site name.
4. Add this site name to System  Host file(C:\Windows\System32\drivers\etc\host) with your machine IP address   .
5.then
 


6.
make pool .net framework vestion v4.0

7. Run  %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
or Run  %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir

8. Folder permition to Application Folder > Security > Add User > IIS_IUSER  and also add IUSER. Give full permetion.

9. Add this section in web config if not added.
    <system.webServer>
            <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>


SQL Optimization

  SQL Optimization  1. Add where on your query  2. If you remove some data after the data return then remove the remove condition in the sel...