473,564 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP2.0 Can't download files Forms Authentication

I have setup up Forms Authentication on my website and added
configuration/mappings for exe, pdf and zip files (using
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \aspnet_isapi.d ll)

However when ever I try to download a file I get the following error

Can't Find Server or DNS error

Any ideas please ?

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
Dec 3 '05 #1
6 2276
P.S. This works in my Development environment but not in my hosted
environment.
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
Dec 3 '05 #2
Hey Michael,

Welcome.
From your description , after you moved an ASP.NET web application from
development server to deployment server(hosting environment?), it not
longer worked, and return "Can't Find Server or DNS error" error when try
visiting some pages in the application that provide file downloading
funcitons?

From the error message, it is likely a network environment problem rather
than asp.net issue. Have you tried some other normal aspx pages in the web
application to see whether they works? Also, I'd suggest you check the IIS
log on the server machine to see whether the asp.net page requests actually
arrive the server(see whether there is log entries in the iis log mapped to
the request to your application..)

If there're anything unclear, please feel free to pos there.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Michael Tissington" <mt*********@ne wsgroups.nospam >
| References: <#R************ **@TK2MSFTNGP14 .phx.gbl>
| Subject: Re: ASP2.0 Can't download files Forms Authentication
| Date: Fri, 2 Dec 2005 21:34:38 -0800
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#M************ *@TK2MSFTNGP11. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 65.249.55.7
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3624 80
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| P.S. This works in my Development environment but not in my hosted
| environment.
|
|
| --
| Michael Tissington
| http://www.oaklodge.com
| http://www.tabtag.com
|
|
|

Dec 5 '05 #3
Yes all aspects of the site function correctly.

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:6f******** ********@TK2MSF TNGXA02.phx.gbl ...
Hey Michael,

Welcome.
From your description , after you moved an ASP.NET web application from
development server to deployment server(hosting environment?), it not
longer worked, and return "Can't Find Server or DNS error" error when try
visiting some pages in the application that provide file downloading
funcitons?

From the error message, it is likely a network environment problem rather
than asp.net issue. Have you tried some other normal aspx pages in the web
application to see whether they works? Also, I'd suggest you check the
IIS
log on the server machine to see whether the asp.net page requests
actually
arrive the server(see whether there is log entries in the iis log mapped
to
the request to your application..)

If there're anything unclear, please feel free to pos there.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Michael Tissington" <mt*********@ne wsgroups.nospam >
| References: <#R************ **@TK2MSFTNGP14 .phx.gbl>
| Subject: Re: ASP2.0 Can't download files Forms Authentication
| Date: Fri, 2 Dec 2005 21:34:38 -0800
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#M************ *@TK2MSFTNGP11. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 65.249.55.7
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3624 80
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| P.S. This works in my Development environment but not in my hosted
| environment.
|
|
| --
| Michael Tissington
| http://www.oaklodge.com
| http://www.tabtag.com
|
|
|

Dec 5 '05 #4
Steven,

The problem is related to applying script mappings.

Without the script mappings, the download works (but I don't go through my
forms authentication)

With the script mappings I get the error 'Can not find server or DNS error'
--
Michael Tissington
http://www.oaklodge.com
http://www.sqlview.net
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:6f******** ********@TK2MSF TNGXA02.phx.gbl ...
Hey Michael,

Welcome.
From your description , after you moved an ASP.NET web application from
development server to deployment server(hosting environment?), it not
longer worked, and return "Can't Find Server or DNS error" error when try
visiting some pages in the application that provide file downloading
funcitons?

From the error message, it is likely a network environment problem rather
than asp.net issue. Have you tried some other normal aspx pages in the web
application to see whether they works? Also, I'd suggest you check the
IIS
log on the server machine to see whether the asp.net page requests
actually
arrive the server(see whether there is log entries in the iis log mapped
to
the request to your application..)

If there're anything unclear, please feel free to pos there.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Michael Tissington" <mt*********@ne wsgroups.nospam >
| References: <#R************ **@TK2MSFTNGP14 .phx.gbl>
| Subject: Re: ASP2.0 Can't download files Forms Authentication
| Date: Fri, 2 Dec 2005 21:34:38 -0800
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#M************ *@TK2MSFTNGP11. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 65.249.55.7
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3624 80
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| P.S. This works in my Development environment but not in my hosted
| environment.
|
|
| --
| Michael Tissington
| http://www.oaklodge.com
| http://www.tabtag.com
|
|
|

Dec 5 '05 #5
Steven,

Found the answer in
http://support.microsoft.com/default...b;en-us;909641
--
Michael Tissington
http://www.oaklodge.com
http://www.sqlview.net

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:6f******** ********@TK2MSF TNGXA02.phx.gbl ...
Hey Michael,

Welcome.
From your description , after you moved an ASP.NET web application from
development server to deployment server(hosting environment?), it not
longer worked, and return "Can't Find Server or DNS error" error when try
visiting some pages in the application that provide file downloading
funcitons?

From the error message, it is likely a network environment problem rather
than asp.net issue. Have you tried some other normal aspx pages in the web
application to see whether they works? Also, I'd suggest you check the
IIS
log on the server machine to see whether the asp.net page requests
actually
arrive the server(see whether there is log entries in the iis log mapped
to
the request to your application..)

If there're anything unclear, please feel free to pos there.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Michael Tissington" <mt*********@ne wsgroups.nospam >
| References: <#R************ **@TK2MSFTNGP14 .phx.gbl>
| Subject: Re: ASP2.0 Can't download files Forms Authentication
| Date: Fri, 2 Dec 2005 21:34:38 -0800
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <#M************ *@TK2MSFTNGP11. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 65.249.55.7
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3624 80
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| P.S. This works in my Development environment but not in my hosted
| environment.
|
|
| --
| Michael Tissington
| http://www.oaklodge.com
| http://www.tabtag.com
|
|
|

Dec 6 '05 #6
Thanks for your followup Michael,

Glad that you've figured out the problem.

Have a good day!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Michael Tissington" <mt*********@ne wsgroups.nospam >
| References: <#R************ **@TK2MSFTNGP14 .phx.gbl>
<#M************ *@TK2MSFTNGP11. phx.gbl>
<6f************ **@TK2MSFTNGXA0 2.phx.gbl>
| Subject: Re: ASP2.0 Can't download files Forms Authentication
| Date: Mon, 5 Dec 2005 16:10:34 -0800
| Lines: 77
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| Message-ID: <Od************ *@TK2MSFTNGP12. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: 65.249.55.7
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP12.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3628 94
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Steven,
|
| Found the answer in
| http://support.microsoft.com/default...b;en-us;909641
|
|
| --
| Michael Tissington
| http://www.oaklodge.com
| http://www.sqlview.net
|
| "Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
| news:6f******** ********@TK2MSF TNGXA02.phx.gbl ...
| > Hey Michael,
| >
| > Welcome.
| > From your description , after you moved an ASP.NET web application from
| > development server to deployment server(hosting environment?), it not
| > longer worked, and return "Can't Find Server or DNS error" error when
try
| > visiting some pages in the application that provide file downloading
| > funcitons?
| >
| > From the error message, it is likely a network environment problem
rather
| > than asp.net issue. Have you tried some other normal aspx pages in the
web
| > application to see whether they works? Also, I'd suggest you check the
| > IIS
| > log on the server machine to see whether the asp.net page requests
| > actually
| > arrive the server(see whether there is log entries in the iis log
mapped
| > to
| > the request to your application..)
| >
| > If there're anything unclear, please feel free to pos there.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| > --------------------
| > | From: "Michael Tissington" <mt*********@ne wsgroups.nospam >
| > | References: <#R************ **@TK2MSFTNGP14 .phx.gbl>
| > | Subject: Re: ASP2.0 Can't download files Forms Authentication
| > | Date: Fri, 2 Dec 2005 21:34:38 -0800
| > | Lines: 10
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| > | X-RFC2646: Format=Flowed; Response
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| > | Message-ID: <#M************ *@TK2MSFTNGP11. phx.gbl>
| > | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: 65.249.55.7
| > | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:3624 80
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| > |
| > | P.S. This works in my Development environment but not in my hosted
| > | environment.
| > |
| > |
| > | --
| > | Michael Tissington
| > | http://www.oaklodge.com
| > | http://www.tabtag.com
| > |
| > |
| > |
| >
|
|
|

Dec 6 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
7758
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages within that directory OR 2) Within a specific page, set the timeout as per...
2
4423
by: Peter | last post by:
I have a site which uses forms authentication but I would like to exclude certain pages on the site from authentication. In other words I would like the user to be able to get to these pages without having to Log In. How do I change my web.config file to exclude certain files. <authentication mode = "Forms"> <forms name = ".ASPX"...
4
10556
by: Bennett Haselton | last post by:
If I add this to my web.config file: <authentication mode="Forms"> <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" /> </authentication> I can configure the application so that users who try to access a page in the application, get redirected to login.aspx where they have to sign in. (And the "signing in"...
7
2365
by: Brian Linden | last post by:
I have a web application using forms authentication and everything seemed to be working fine, as far as requiring them to login. But then I noticed that you could type in: http://domain.com/restrictefolder/test.htm How do I deny access to a folder full of .htm files that I don't want them to read unless they have logged in?
4
2042
by: Randall Parker | last post by:
XP Home does not come with IIS. Can one use VS 2003 or some other tool to view aspx pages one is developing and do that on XP Home without having IIS on the machine?
1
1906
by: Arun | last post by:
I have a folder “Secured” under the root folder of the project In the project root web.config authentication is given as <authentication mode="Forms"> <forms loginUrl="Login.aspx" timeout="15" /> </authentication> In the “Secured” folder web.config is coded as <?xml version="1.0" encoding="utf-8"?> <configuration...
1
1994
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each connection, and is returning the correct roles, but... When we specify a role on the top sitemapnode that role seems to add to the roles on lower level...
3
1320
by: thehercman | last post by:
I am using forms authentication to protect all content as described in the kb article below. http://support.microsoft.com/default.aspx?scid=kb;en-us;893662 This works fine except for files that are larger than about 40 or 50mb at which point the user gets a 404 error and the httperr log indicates connection_dropped status. This is a...
2
3369
by: yogarajan | last post by:
hi friends i have one problem. i m using forms authentication for my pages which consist of downloadable links (doc files, pdf files etc.,). the thing is, if i restrict access to the page, it works fine ( redirects anonymous users to login page). however, if someone types the url of the documents directly (ex:-...
0
7666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.