How to deploy MVC3 powered website to IIS
Tech-Today

How to deploy MVC3 powered website to IIS


After developing a website powered by MVC3 the next thing is deploying it on server. Our assumption is that the server has dotnet3.5/4.0 installed.

Server Setup:
1.) Windows 2003 SP2
2.) Download and install dotnet 3.5/4.0
3.) Download and install MVC3 RTM
4.) Create a app pool for your app
5.) Create a virtual directory/application for your app
6.) Right click your virtual directory->Home Directory->Configuration
a.) Click insert mapping and type:
c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll
b.) uncheck Verify file...
7.) That should do it.

Deployment
1.) On your project expand the References folder
2.) Click on the following assemblies (if present):
Microsoft.Web.Infrastructure.dll
System.Web.Abstractions.dll
System.Web.WebPages.Razor.dll
System.Web.WebPages.dll
System.Web.WebPages.Deployment.dll
System.Web.Razor.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
3.) On the Properties tab, set Copy Local to true.
4.) Then Build->Publish and you will see the dll files on the bin folder.
5.) Copy the dll files on the bin of your webserver.

And by the way don't forget to execute this line in cmd.exe:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i




- The Length Of The Query String For This Request Exceeds The Configured Maxquerystringlength Value. Firefox
Problem: Unrecognized configuration section httpRuntime. The length of the query string for this request exceeds the configured maxQueryStringLength value. firefox In case you experience the same error, it's because of the new feature available for...

- Setting Mssql Server 2005 Table 2000 Compatible
Recently I was developing a c# application that uses sqlserver2005 database (express edition) setup on my laptop which has win7 os. The problem is the public server where I will deploy the application is only running a mssql server 2000 database. My application...

- Could Not Load The Assembly 'app_web_xxx'. Make Sure That It Is Compiled Before Accessing The Page.
Recently I was deploying a module of a website on top of another virtual directory. Of course the simplest way is to make this directory as an IIS application, but that's the last option. What I did was to override the "base" web.config file and...

- Asp Server Application Unavailable
If you ever encounter this error while setting up iis on your local machine or a virtual directory in the Internet Information Services and you look into the the Event Viewer and see the Application Logs: "Server Application Unavailable The web application...

- Installing Sql Server Compact Edition 3.1 On Mobile Device (pocket Pc)
1.) Download the sqlce3.x installer, http://www.microsoft.com/downloads/details.aspx?FamilyId=E9AA3F8D-363D-49F3-AE89-64E1D149E09B&displaylang=en or http://www.microsoft.com/downloads/details.aspx?FamilyID=85e0c3ce-3fa1-453a-8ce9-af6ca20946c3&displaylang=en...



Tech-Today








.