开发者

ASP.NET RAZOR Urls? Getting 403

I used WebMatrix to play around and do a very simple site for learning. However, when I upload to an actual Windows server (yes, WebMatrix installed) The MVC style url's dont work.

If you go to http://173.201.29.98:88/ You'll see

But if you go to http://173.201.29.98:88/Default.cshtml it works.

Anyone know what's wr开发者_开发知识库ong? I'll I've done is upload it, didn't use the "Publish" feature.


Lol, after looking more deeply in Stack Overflow I found the answer.

Razor page not working with Rewrite

Pretty Simple.

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜