473,378 Members | 1,420 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,378 software developers and data experts.

ASP.NET Credential Management Problem

Hi Everyone,

I've got an issue that I hope you might be able to help with. If you know
what is causing this problem, please let me/us know. If you also happen to
know what to do to fix it, even better!

Here is the situation:

I created an application on a hosted server running ASP.NET 2.0 and a SQL
Server 2005 instance of a database.

I ran ASPNET_REGSQL -C (connectionString) on the hosted DB. It ran and
created the environment. I verified this by checking out the db.

I run this great app
(http://www.code-magazine.com/Article...uickid=0511031) and made some
small changes in the web.config so that it attached to the hosted db, and
created an Application, a User account, a Role, and then attached the Role to
the User.

I then checked the db to make sure that the data was in there. Indeed, the
data was in the right places in the hosted db.

So far, I think, everything looks good.

Here is what is strange, when using the login control and pointing the
web.config to the same database, the user is not recognised. The app doesn't
crash, it only says that the login is incorrect. If I change the connection
string in the web.config to a password that doesnt work, the app crashes,
causing me to think that the connectionstring is valid, and that the app is
making the connection. For some reason though, even though the user *IS* in
the database, it is not being recognised and login cannot happen.

I wonder if somehow the Application has anything to do with it? Does the
login control need to know which Application the User belongs to in the DB?
If so, how can I tell it? If it could be anything else, including this,
please let me know. I'm a bit stumped.

Thank you in advance,

Michael

Feb 27 '06 #1
1 1137
DWS
Atlas,
How did you create the application?

Thanks
DWS

"AtlasApollo" wrote:
Hi Everyone,

I've got an issue that I hope you might be able to help with. If you know
what is causing this problem, please let me/us know. If you also happen to
know what to do to fix it, even better!

Here is the situation:

I created an application on a hosted server running ASP.NET 2.0 and a SQL
Server 2005 instance of a database.

I ran ASPNET_REGSQL -C (connectionString) on the hosted DB. It ran and
created the environment. I verified this by checking out the db.

I run this great app
(http://www.code-magazine.com/Article...uickid=0511031) and made some
small changes in the web.config so that it attached to the hosted db, and
created an Application, a User account, a Role, and then attached the Role to
the User.

I then checked the db to make sure that the data was in there. Indeed, the
data was in the right places in the hosted db.

So far, I think, everything looks good.

Here is what is strange, when using the login control and pointing the
web.config to the same database, the user is not recognised. The app doesn't
crash, it only says that the login is incorrect. If I change the connection
string in the web.config to a password that doesnt work, the app crashes,
causing me to think that the connectionstring is valid, and that the app is
making the connection. For some reason though, even though the user *IS* in
the database, it is not being recognised and login cannot happen.

I wonder if somehow the Application has anything to do with it? Does the
login control need to know which Application the User belongs to in the DB?
If so, how can I tell it? If it could be anything else, including this,
please let me know. I'm a bit stumped.

Thank you in advance,

Michael

Mar 1 '06 #2

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

Similar topics

3
by: Martin | last post by:
Dear fellow ASP.NET programmer, I stared using forms authentication and temporarily used a <credentials> tag in web.config. After I got it working I realized this wasn't really practical. I...
1
by: Tedmond | last post by:
Dear all, I wrote a function to use WebClient to retrieve information from the Web. It worked fine. However, the proxy setting of our firm has been changed. Proxy authentication is required now...
0
by: =?Utf-8?B?TmVpbF9C?= | last post by:
Hi all, I have a problem with a webservice using WSE 3.0. I have a web-service which pulls data from a database and a client which pulls the data from the webservice. I have created a user using...
1
by: adiel_g | last post by:
Does anyone know how to remove the required credential check for a web service in VS2005? There should be an option to remove the required credential check since I will be running the service...
2
by: sweetpotatop | last post by:
Hi, I wonder how can I get the window/network credential from the user machine thru' ASP.NET? I have been using LDAP, however, the user will be prompted for username and password at least...
0
by: Hayato Iriumi | last post by:
Hello, I poked around System.Threading.Thread and System.Net.NetworkCredential to see if I could run a thread with a different credential from the credential that the executable is running under....
2
by: Michael Bray | last post by:
I have a client/server application that utilizes Impersonation on a TCP Channel. So I create the channel with the version of the constructor that takes an IDictionary of channel properties, and...
0
by: Gunady | last post by:
Hi All, I have used ActiveX (written in C# 2.0) to render report and print it silently to printer. I have given up to use pure Javascript to do this. The code in ActiveX will connect to the...
0
by: madankarmukta | last post by:
Hi, Can anyone tell me how the Credential Provider architecture works ..? In Winodws NT all versions we use GINA for login process.. How does Credential Provider Paly the same role in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.