473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Re: Prompt for username/password opening PDF

I just reinstalled IIS as I worked with wamp before and yet I didn't find out
how to have a php and a asp server working the same time on a computer. (I
had to uninstall the IIS to get wamp at work). But my question now is only
about asp. Everything works in asp only that there comes a popup that ask
for username and password. I searched what could be meant and saw you use
the terminology "IUSR_COMUTERNAME and IWAM_COMPUTERNAME".
I tried this out for my pc name but without succes and in fact I don't know
where to get the password. Please do you have any suggestion to solve the
logging in problem? Thanks.

"George Ter-Saakov" wrote:
Yes, you right... It must be IUSR_COMUTERNAME and IWAM_COMPUTERNAME.

Does not matter that user can open from Windows Explorer. Those 2 accounts
IIS is running under (by default)... When it can not open files then it
sends back prompt for username/password trying to authenticate user and
access files under his account.

George.
"David C" <dl*****@lifetimeinc.comwrote in message
news:Op**************@TK2MSFTNGP02.phx.gbl...
When you say IIS_USRXXXX are you meaning the IUSR_COMPUTERNAME account?

Not sure if this helps, but users can open the file just fine from Windows
Explorer.

David
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:Ol**************@TK2MSFTNGP03.phx.gbl...
My guess would be the IIS accounts do not have permission to the file...

what I say here is just a guess and not confirmed or read anywhere...

***************
For small files .NET handles Response.WriteFile itself.... reads file and
sends it over to browser so only ASP.NET account needs to have read
permissions...

For big files .NET asks IIS do it (there is an API in ISAPI to do so)...
hence IIS_USRXXXX account needs to be able to read that file...
************************
George.
"David C" <dl*****@lifetimeinc.comwrote in message
news:uX**************@TK2MSFTNGP02.phx.gbl...
We have an application that displays the content of a file based on the
file name suffix, e.g. if "pdf" it uses
Response.ContentType = "application/pdf"

and then to display it it uses

Response.WriteFile(FilePath)

and it works fine for all but very large files. For very large files
(e.g. a 5MB file) it pops up a prompt for username and password for the
domain and I can't figure out why. Does any one know how I can solve
this or where to look? The application is NT Authority only intranet
site. Smaller files are not a problem.

Thanks.
David




Jun 27 '08 #1
0 1709

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

Similar topics

6
by: Magnus Jardeby | last post by:
I have a problem with basic authentication. I redirect a user from a page to another. I don't want to get the NT prompt login, I want the user to be logged in automatically. I want to send the...
3
by: Billy Cormic | last post by:
Hello, I would like to write a windows application that can get the IP address of the computer the appliation is installed on. Then the program should ftp a file to another computer. I have no...
1
by: jodyblau | last post by:
I applogize for posting this a second time (I posted in the access-multiuser group as well), but this group seems to respond more rapidly, and I have been trying to figure this out for what seems...
11
by: gopal | last post by:
Hi, I am trying to call the OSQL utility from my C# console application and i am having problems i have the following code In Main method ProcessStartInfo psi = new...
1
by: jdorp | last post by:
I read KP article at support.microsoft.com (Q177594) that stated that with the following code: Sub Command1_Click() Dim db1 As Database Dim db2 As Database Dim rs As Recordset Dim strConnect...
1
by: rajendran1983 | last post by:
I have windows XP pro systems with network having workgroup. i dont have domain. If am accesing a system from my workgroup its opening without prompting for username and password. I just want to set...
1
by: Rob Nicholson | last post by:
I've managed to write an ASP.NET v2 web page where the prompt to save the password doesn't appear :-( Not sure why it's not working. Autocomplete on the text boxes is working but when you enter...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
2
by: adversus | last post by:
I have an existing ADE (Access Data Project compiled) project that has been in use in a production environment for nearly 3 years, and has been working great. It's been working so great, in fact,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.