开发者

Bin Deploy MVC 2.0 site to IIS6 with .Net 3.5 SP1

开发者 https://www.devze.com 2023-01-19 16:59 出处:网络
I\'ve built an ASP.Net MVC 2.0 site in VS2010, targeting .Net 3.5. I\'m trying to \'bin deploy\' to a server running IIS 6.0.

I've built an ASP.Net MVC 2.0 site in VS2010, targeting .Net 3.5. I'm trying to 'bin deploy' to a server running IIS 6.0.

The server is a 'test' virtual server running Windows Server 2003 R2 64bit, and .Net 2.5 SP1. MVC has not been installed on this server.

I am trying to replicate the hosting environment where this application will be deployed for production.

The issue I'm having is every page I try to browse to shows a 404. I've tried adding .mvc and .aspx to the routes in the Global.asax.cs file, but it seems to make no difference.

I've also created a Default.aspx page which redirects to the Home.aspx (or Home.mvc) URL. Nothing seems to work.

I've been browsing the web for hours searching for an answer, and still nothing works.

Any ideas?

Edit

Wow, I feel like a right idiot now... :) Turns out that ASP.Net wasn't registered properly so the ASP.Net v2 extensions were still disabled on the IIS6 serv开发者_运维技巧er. I guess small things like this get past when you've only worked with Server 2008 and IIS7 for the last year or 2...

So I'll mark this as 'Answered / closed'...


Turns out that ASP.Net wasn't registered properly so the ASP.Net v2 extensions were still disabled on the IIS6 server. I guess small things like this get past when you've only worked with Server 2008 and IIS7 for the last year or 2...

0

精彩评论

暂无评论...
验证码 换一张
取 消