开发者

ASP.NET MVC and Web Farm Framework for IIS 7 Problem

开发者 https://www.devze.com 2023-01-19 05:32 出处:网络
I am trying to set up 开发者_如何学Csmall web farm using \"Microsoft Web Farm Framework 2.0 Beta for IIS 7\"

I am trying to set up 开发者_如何学Csmall web farm using "Microsoft Web Farm Framework 2.0 Beta for IIS 7"

Everything works fine, except for one problem -

My web application is written using ASP.NET MVC 2 and there is no references to ".aspx" files used. A typical url looks like:

http://192.168.2.35/Billing/Account/Create

Howver when this url is processed by the web farm it is rewritten as:

http://192.168.2.35/Billing/Account/Create/default.aspx

/default.aspx is being added to every url.

I can workaround this problem using URL Rewriting. But I think this is not a great solution.

Probably I missed something in Web Farm settings?


It sounds to me like you have missed a step in configuration and are seeing an undesired effect. You can see this without the framework when you dont setup MVC correctly. Check out this link for general info: http://weblogs.asp.net/scottgu/archive/2010/09/08/introducing-the-microsoft-web-farm-framework.aspx

0

精彩评论

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