Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unexpected Prompt for Credentials

Status
Not open for further replies.

xlbo

MIS
Mar 26, 2002
15,080
GB
Hi - relatively new user to ASP.NET and we have a bit of an odd implementation which is giving issues for a couple of users

setup is that we have field based users who have IIS & SQL Express installed on their laptops with an ASP.NET app in the folder

The app location is set up to be a mask for localhost (offline) which is defined in the trusted sites collection to allow the use of activex objects

As the full app + server is actually on teh client, they are typically able to use the app whilst not connected to our network - a few people however are getting prompted for credentials to ComputerName.Domain.Local

The box itself has the title of:

Connect To ComputerName.Domain.Local

Below that

Connecting to Localhost

then the standard Username & Password box

The 1st question is whether this is liekly to be ASP or an IIS config issue?

Cheers for any help - I appreciate that this is both an unuusal setup and a relatively vague question


Should probably also mention that even though "offline" is in the trusted sites collection, it shows as "unknown (mixed)" for these users so I guess it could be an IE setting as well....

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
I do not understand why you would design a web app and then publish it locally to all you're users. there are much better approaches to designing semi-connected systems.

as for your credentials issue:
1. is this an issue for all users, or specific users?
2. can you reproduce the issue on another box? with another user?
3. is the user a local administrator?
4. what version of IIS are you running?

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Hi Jason - I know - this is what was decided however (I just have to "make it work") - company already uses ASP.NET for proper web apps but then wanted to make the same apps available offline...go figure.....

anyway - issue is for specific users
can't reproduce the issue with other users
user is not a local admin
IIS version is 5.1

I'm thinking it's an IIS config issue as the config is done by SMS but as I'm relatively new to ASP (well the whole arena of web apps), I wanted to start off by checking whether it was liekly to be the app, IIS or IE...

cheers for any help

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
I have run into credential issues with IIS 5.1. usually with impersonation and file access. when i encounter this problem, I switch over to VS' web server Cassini (or Casandra can't remember the name right now).

I do have local admin rights though.

if you want IIS to impersonate the user make sure the IIS virtual directory has authentication configured properly.
1. enable Integrated Windows Authentication
2. disable anonymous access

the web.config file should also have
Code:
<identity impersonate="true"/>
in the system.web node.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Thanks for that - that is how IIS is supposed to be set up but will check on the client machines

I take it from your responses that you think the isue is with IIS...

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
This is where I would start

have the user access the system from a different machine and see if the problem continues. if so it's the user's account that could be the problem.

have another user log onto the laptop that having the problem. if the problem happens for that user as well it's an IIS/OS configuration problem.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
the third place to check is the websites configuration. I had a problem once where debugging was set to true instead of false. the message was cryptic and it took me the better part of a week to track it down.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
cheers - will try to go for that

could be interesting as users are field based and generally nowhere near the office...looks like either they or I are in for a road trip :)

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
remote desktop? vpn?

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
D'OH - yes - can remote on as local admin can't I!!

As an aside, different user, different app, same setup (offline ASP) is int he office and has had the error. IIS is set up as per your suggestion above. Error log seems to indicate a 401 error potentially linked to the reportviewer control....

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
ah report viewer. as in crystal report viewer? in that case the crystal binaries may not be installed.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
SSRS reportviewer control..

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top