default-document

IIS8 Default Document yields 404 not found error

时间秒杀一切 提交于 2019-12-18 08:41:31
问题 I have a new Windows Server 2012 machine with IIS 8. I have installed an application that uses Windows Authentication for the login page. The application uses .NET 2.0 (which was a bit of a pain to configure, but that is a different story) The application works perfectly if you specify the login page in the URL. This login page is the default document for the application which verifies the user and logs them in automatically if they are registered. If they are not registered then it redirects

IIS8 Default Document yields 404 not found error

偶尔善良 提交于 2019-12-18 08:40:07
问题 I have a new Windows Server 2012 machine with IIS 8. I have installed an application that uses Windows Authentication for the login page. The application uses .NET 2.0 (which was a bit of a pain to configure, but that is a different story) The application works perfectly if you specify the login page in the URL. This login page is the default document for the application which verifies the user and logs them in automatically if they are registered. If they are not registered then it redirects

ASP.NET Show Full Url in Browser for the Default Page

南笙酒味 提交于 2019-12-11 07:35:28
问题 When I set the Default Document in IIS to display my Default page ( default.aspx ), and access it using the host header I implemented; it only shows the host header address and not the full page address in the browser. For example: Host header: http://mysite IIS default document: /PageContainer/default.aspx when I enter http://mysite through the browser; it opens the http://mysite/PageContainer/default.aspx but shows only the http://mysite address in the browser address bar. How can I change

ASP.net MVC 4, How to keep routing to default document after project publishing

≯℡__Kan透↙ 提交于 2019-12-11 06:39:31
问题 I created a new MVC 4 project from the internet application template in VS 2012 express, for details click here When I wanted to publish it, I got: HTTP 403.14 - Forbidden I searched for a solution, and found that it looks like a routing issue, other posts in stackoverflow give answers through modifying MVC 3 global.asax instructions. when I tried to apply the same solution to the MVC 4 global.asax I found syntaxes too different from those of MVC 3, i.e. RouteConfig.RegisterRoutes(RouteTable

Different Default Document for IIS Sub Application

只谈情不闲聊 提交于 2019-12-04 05:22:28
问题 I have an IIS website running an ASP.NET site but it has multiple applications running under it (a virtual directory with separate app pools basically). Well - I need two separate applications which point to the same root folder director but I want the apps to have separate default documents. The reason is because this is how it is configured in production and this is on my development box. The problem is that IIS keeps giving me the SAME default document for both apps (which are separate

Different Default Document for IIS Sub Application

人走茶凉 提交于 2019-12-02 07:20:17
I have an IIS website running an ASP.NET site but it has multiple applications running under it (a virtual directory with separate app pools basically). Well - I need two separate applications which point to the same root folder director but I want the apps to have separate default documents. The reason is because this is how it is configured in production and this is on my development box. The problem is that IIS keeps giving me the SAME default document for both apps (which are separate virtual paths and separate app pools just same physical location). How can I overcome this or can I not in

Redirect to webapp default document when another page is specified?

本小妞迷上赌 提交于 2019-12-01 11:05:23
IIS6, ASP.NET 2.0, No Forms Authentication I'm calling Response.Redirect("~/foo.aspx"), but the default document ("Default.aspx") for my site is appearing. To make matters worse, it only happens intermittently. Sometimes the redirect displays the right page. I've checked session state, and I don't see any values in the web.config (that is, I'm assuming I'm using the 20-minute defaults). I wish I had more relevant information to share (I'll do my best to answer any questions). Any ideas? Why isn't it redirecting to the specified page? EDIT: I've looked deeeeeper into the code and learned more

Redirect to webapp default document when another page is specified?

不问归期 提交于 2019-12-01 09:31:37
问题 IIS6, ASP.NET 2.0, No Forms Authentication I'm calling Response.Redirect("~/foo.aspx"), but the default document ("Default.aspx") for my site is appearing. To make matters worse, it only happens intermittently. Sometimes the redirect displays the right page. I've checked session state, and I don't see any values in the web.config (that is, I'm assuming I'm using the 20-minute defaults). I wish I had more relevant information to share (I'll do my best to answer any questions). Any ideas? Why

IIS8 Default Document yields 404 not found error

我的未来我决定 提交于 2019-11-29 14:47:27
I have a new Windows Server 2012 machine with IIS 8. I have installed an application that uses Windows Authentication for the login page. The application uses .NET 2.0 (which was a bit of a pain to configure, but that is a different story) The application works perfectly if you specify the login page in the URL. This login page is the default document for the application which verifies the user and logs them in automatically if they are registered. If they are not registered then it redirects them to a Forms authentication login page where they can enter local application credentials. The

ASP.net 4.0 default.aspx problem on IIS6

可紊 提交于 2019-11-27 15:09:34
问题 I installed .net framework 4 on my windows 2003 enterprise x64, wrote simple asp.net 4.0 application (default.aspx page only). The application works great if request is to default.aspx, not to the root site: contoso.com/ - doesn't work (Get 404 error) contoso.com/default.aspx - works. Default.aspx is in list of default documents in IIS. Please help. 回答1: Found a fix in a seemingly unrelated location - try setting the "EnableExtensionlessUrls" registry key to 0: ASP.NET 4 Breaking Changes ->