简体   繁体   中英

Deploying ASP.NET MVC 1.0 application onto IIS6

This is driving me crazy. I written a simple ASP.NET MVC 1.0 application I published this onto my local machine and onto the production server. Both the local and production connects to the same 3rd database server.

The application works fine on the local machine but not on the production server. On the production server I get an error message like: “A network-related or instance-specific error occurred while establishing a connection to SQL Server...”

The production server is running IIS6 and I already enabled wild card. I also tried to delete all references to aspmembership by removing the accountcontroller. The funny thing is even when I try to make a default ASP.NET MVC 1.0 application and publish it onto the production I get the same error message and there are no database connections anywhere.

How do I solve this or where do I start? Is this a MS SQL problem or a ASP.NET MVC 1.0 on IIS 6 problem?

THANK YOU SO MUCH

I had the same issue when trying to make MVC 1 and WebForms co-exist. In the end I had to include this into the web.config file.

<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

            <remove name="UrlRoutingModule"/>
            <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing"/>

asp.net-mvc and webforms co-existing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM