Questions tagged [default-document]

33 questions
11
votes
7 answers

ASP.net 4.0 default.aspx problem on IIS6

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…
Dimonina
  • 111
  • 1
  • 1
  • 5
8
votes
3 answers

asp Default document not working on IIS7

I have a classic asp application inside a .NET 4.0 application. I have set the default document to login.asp, but it does not automatically redirect to it. The entire application functions fine though and even displays the login.asp correctly if I…
Shirlz
  • 837
  • 2
  • 11
  • 18
5
votes
3 answers

Having to login twice to asp.net application due to "Default Document" in IIS

Previously, I had added login.aspx to the Default Document section in IIS. However, when someone was accessing the application, it was required to login twice. The first one wouldn't say any error message or no redirection to the next page in the…
aleafonso
  • 2,244
  • 8
  • 38
  • 58
4
votes
3 answers

IIS8 Default Document yields 404 not found error

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…
Jim Birchall
  • 350
  • 2
  • 3
  • 8
2
votes
5 answers

How to determine if the default document was served in traditional ASP?

In a file called index.asp, which is set up in IIS as a default document for the directory, I'm trying to determine via .asp VBScript if the page was called as the default document versus directly by name, i.e. I'm trying to distinguish between…
rmdaustin
  • 21
  • 1
2
votes
4 answers

Redirect to webapp default document when another page is specified?

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…
lance
  • 16,092
  • 19
  • 77
  • 136
2
votes
2 answers

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

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:…
Beytan Kurt
  • 2,203
  • 4
  • 34
  • 57
2
votes
1 answer

Different Default Document for IIS Sub Application

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…
Paul C Huff
  • 83
  • 1
  • 6
1
vote
1 answer

ASP.NET 4.0 application cannot find Default.aspx under IIS6

I've got an ASP.NET 4.0 web application (webforms, not mvc; asp.net routing isn't used) that runs fine under IIS7. When I try to run it under IIS6 and navigate to http://localhost/MyApp/, I get the following exception: File does not…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
1
vote
1 answer

IIS5 not serving index.html on local machine even though it's listed in the Default Documents

I'm developing a site in VS2008 on a machine running XP SP3 with IIS5. I've named the main page in each directory index.html to avoid the www.domain.tld/directory/pagename.ext scenario of specifying a full path, and also because these pages…
Bryan
  • 2,870
  • 24
  • 39
  • 44
1
vote
1 answer

Why is my IIS default document not found MVC

I know there are a million similar/same questions here (I know that because I've read them) but I just can't figure out why my default document is not displaying. It used to; and if I enable the default web-site then that site's default page is…
1
vote
0 answers

Login page appears twice in ASP.NET application on IIS

I have added a login.aspx to the Default Document section in IIS. However, when someone was accessing the application, it was required to login twice. The first one wouldn't say any error message or no redirection to the next page in the…
Vivek
  • 93
  • 3
  • 12
1
vote
2 answers

Test for default document request?

Is there a way to programmatically know when someone is using the Default Document feature of IIS to access my page (that is, the name of my .ASPX isn't in their URL anywhere)?
lance
  • 16,092
  • 19
  • 77
  • 136
1
vote
0 answers

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

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,…
1
vote
3 answers

html document subdomain webpage

You can see what I'm talking about in the screenshot below. Basically, I have a subdomain (i.e. subdomain.website.com) and all I want on it is a single HTML document to display. The HTML document is titled home.php in the image but it should be…
user1364818
  • 61
  • 1
  • 8
1
2 3