472,356 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Please Help!-Trying to brows my asp.net application but I get a logon prompt-

J-T
Hi All,

We have an asp.net application on a windows 2003 server which is part of a
domain controller which my worksatis is too. We have impersonated in our
applciation with a fixed identity account which is also a domain account and
is part of the admininstrator group of the webserver.The application is set
to use NTLM and its application pool's IDENTITY is also set to use that
imperssonated account,when I try to browse the application from my
workstation(same network) I get a logon prompt (which *should not* be poped
up as
I'm using NTLM) and even when I insert my username and password ,it rejects
it and says that I'm not authorized to see the page.I have added the
administator group to the local security policioes like "Logon locally" "log
on as a service" ","log on as abatch job" "Access this computer from the
network".Why I cannot see my application ??
Nov 19 '05 #1
2 1659
J-T
I followed up this link :
http://www.kbalertz.com/kb_871179.aspx

and I solved the logon problem ,but now I get this error

Logon failure: unknown user name or bad password
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Logon
failure: unknown user name or bad password
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[COMException (0x8007052e): Logon failure: unknown user name or bad
password]
System.DirectoryServices.DirectoryEntry.Bind(Boole an throwIfFail) +707
System.DirectoryServices.DirectoryEntry.Bind() +10
System.DirectoryServices.DirectoryEntry.get_IsCont ainer() +10
System.DirectoryServices.ChildEnumerator..ctor(Dir ectoryEntry container)
+24
System.DirectoryServices.DirectoryEntries.GetEnume rator() +26
CgaCanada.Org.Common.ADUtils.getMMSList() in
c:\vss\SMIA\Common\ADUtils.cs:111

[SystemException: Failed to retrieve examiner list.Logon failure: unknown
user name or bad password]
CgaCanada.Org.Common.ADUtils.getMMSList() in
c:\vss\SMIA\Common\ADUtils.cs:118
SMIA.Business.ApplicationCache.GetExaminers() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:962
SMIA.Business.ApplicationCache.init() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:1163

[SystemException: ApplicationCache initialization failed. ]
SMIA.Business.ApplicationCache.init() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:1204
SMIA.Business.ApplicationCache..cctor() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:31

[TypeInitializationException: The type initializer for
"SMIA.Business.ApplicationCache" threw an exception.]
SMIA.Business.ApplicationCache.get_Reference() +0
SMIA.Business.BusinessLayer.Init(String baseName, String assemblyName) in
c:\vss\SMIA\Business\ClassFiles\BusinessLayer.cs:2 8
SMIA.Web.Global.Application_Start(Object sender, EventArgs e) in
c:\vss\SMIA\SMIAWeb\Global.asax.cs:50

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
Nov 19 '05 #2
J-T
I actually solved the problem there were some issues involved:

1) It has nothing to do with Authentication type of the application and the
user we used to connecto to active direcoty caused all those problem.It ws
not setup properly.

2) some body deployed PDB files( Debug mode) to the production and some
unnecessay PDB files there were making the situation even worse.Our
Authorization amanger store file(XML) file could not be found because we
were using App.Domain.CurrentDirecoty() which is different in Debug and
Release mode...Stupid mistake

3) Authorziation manager File (XML) was out of date too:-)
It has been solved now,and agian it has nothing to do with impersonation and
authentication type and it was all about our own mistakes talking to Active
direcoty using ADSI.

Thanks again
"J-T" <J-*@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I followed up this link :
http://www.kbalertz.com/kb_871179.aspx

and I solved the logon problem ,but now I get this error

Logon failure: unknown user name or bad password
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Logon
failure: unknown user name or bad password
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x8007052e): Logon failure: unknown user name or bad
password]
System.DirectoryServices.DirectoryEntry.Bind(Boole an throwIfFail) +707
System.DirectoryServices.DirectoryEntry.Bind() +10
System.DirectoryServices.DirectoryEntry.get_IsCont ainer() +10
System.DirectoryServices.ChildEnumerator..ctor(Dir ectoryEntry container)
+24
System.DirectoryServices.DirectoryEntries.GetEnume rator() +26
CgaCanada.Org.Common.ADUtils.getMMSList() in
c:\vss\SMIA\Common\ADUtils.cs:111

[SystemException: Failed to retrieve examiner list.Logon failure: unknown
user name or bad password]
CgaCanada.Org.Common.ADUtils.getMMSList() in
c:\vss\SMIA\Common\ADUtils.cs:118
SMIA.Business.ApplicationCache.GetExaminers() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:962
SMIA.Business.ApplicationCache.init() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:1163

[SystemException: ApplicationCache initialization failed. ]
SMIA.Business.ApplicationCache.init() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:1204
SMIA.Business.ApplicationCache..cctor() in
c:\vss\SMIA\Business\ClassFiles\ApplicationCache.c s:31

[TypeInitializationException: The type initializer for
"SMIA.Business.ApplicationCache" threw an exception.]
SMIA.Business.ApplicationCache.get_Reference() +0
SMIA.Business.BusinessLayer.Init(String baseName, String assemblyName)
in c:\vss\SMIA\Business\ClassFiles\BusinessLayer.cs:2 8
SMIA.Web.Global.Application_Start(Object sender, EventArgs e) in
c:\vss\SMIA\SMIAWeb\Global.asax.cs:50

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032

Nov 19 '05 #3

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...
0
by: Norm | last post by:
I have a MS-Access application that links to DB2 V8.1 with Fixpack 7a. Authentication is set up for Client Authentication. When the application starts, the DB2 logon dialogue pops up. Users must...
1
by: Paul Aspinall | last post by:
Hi I have an app which starts using Application.Run(...........); I want to create a logon screen, prior to the main app running, so I modified my main() to look similar to frmLogon logon =...
2
by: JoeBlack | last post by:
Hi all, I am new to web development and have been asked if the following is possible, I was hoping some people with more experience than me could confirm if this is possible and what...
1
by: Chuck Insight | last post by:
Hi Everyone, I have a VB script (.aspx) project that needs to produce nine unique, randomly generated numbers that uses all nine of the numbers. I will greatly appreciate either a recommendation...
1
by: Maileen | last post by:
Hi,. I would like to know what is the technique to make my application uses the Windows Logon (user name and password) and user right (admin, guest ,...) to log on my application. for...
3
by: ranishobha21 | last post by:
Hi, i have a client server program in VC++,i want to provide this client - server application on web.which program i should use whether PHP or i can convert VC++ to active X control and then...
2
by: =?Utf-8?B?Z292ZXI=?= | last post by:
Hello, I want to provide the ability to log on to a web application on our intranet using different credentials like they do in Sharepoint 2007. When a user hits the site, i want him...
2
by: vstud70 | last post by:
Hi, We have a Web Server on Windows 2003 IIS 6, couple of days ago with no apparent reason that i can point to, when trying to access our web site it prompts you for logon info (you can see it...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...

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.