my solutions to 403.14 with mvc and virtual directory

1. “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir”

doesn’t work. the web app work in root but does’t work in vdir; my aspnet setup should be correct

2. turn windows features on: IIS –> www service –> common HTTP features –> HTTP redirection (check)

restart and doesn’t work still

3. add empty default.aspx and add this line: Response.Redirect("~/core/list");

hardcode the string here for default home page..it works, for now 悲伤

 

dont know why my web app works in root without a default page but had to add in virual directory, even worse I hardcode some route configs.

posted on 2011-07-13 11:16  无法显示此网页  阅读(236)  评论(0编辑  收藏  举报

导航