473,837 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(sam e 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 1765
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.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail) +707
System.Director yServices.Direc toryEntry.Bind( ) +10
System.Director yServices.Direc toryEntry.get_I sContainer() +10
System.Director yServices.Child Enumerator..cto r(DirectoryEntr y container)
+24
System.Director yServices.Direc toryEntries.Get Enumerator() +26
CgaCanada.Org.C ommon.ADUtils.g etMMSList() in
c:\vss\SMIA\Com mon\ADUtils.cs: 111

[SystemException : Failed to retrieve examiner list.Logon failure: unknown
user name or bad password]
CgaCanada.Org.C ommon.ADUtils.g etMMSList() in
c:\vss\SMIA\Com mon\ADUtils.cs: 118
SMIA.Business.A pplicationCache .GetExaminers() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:962
SMIA.Business.A pplicationCache .init() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:1163

[SystemException : ApplicationCach e initialization failed. ]
SMIA.Business.A pplicationCache .init() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:1204
SMIA.Business.A pplicationCache ..cctor() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:31

[TypeInitializat ionException: The type initializer for
"SMIA.Business. ApplicationCach e" threw an exception.]
SMIA.Business.A pplicationCache .get_Reference( ) +0
SMIA.Business.B usinessLayer.In it(String baseName, String assemblyName) in
c:\vss\SMIA\Bus iness\ClassFile s\BusinessLayer .cs:28
SMIA.Web.Global .Application_St art(Object sender, EventArgs e) in
c:\vss\SMIA\SMI AWeb\Global.asa x.cs:50

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.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.Curr entDirecoty() 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******** ********@TK2MSF TNGP15.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.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail) +707
System.Director yServices.Direc toryEntry.Bind( ) +10
System.Director yServices.Direc toryEntry.get_I sContainer() +10
System.Director yServices.Child Enumerator..cto r(DirectoryEntr y container)
+24
System.Director yServices.Direc toryEntries.Get Enumerator() +26
CgaCanada.Org.C ommon.ADUtils.g etMMSList() in
c:\vss\SMIA\Com mon\ADUtils.cs: 111

[SystemException : Failed to retrieve examiner list.Logon failure: unknown
user name or bad password]
CgaCanada.Org.C ommon.ADUtils.g etMMSList() in
c:\vss\SMIA\Com mon\ADUtils.cs: 118
SMIA.Business.A pplicationCache .GetExaminers() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:962
SMIA.Business.A pplicationCache .init() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:1163

[SystemException : ApplicationCach e initialization failed. ]
SMIA.Business.A pplicationCache .init() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:1204
SMIA.Business.A pplicationCache ..cctor() in
c:\vss\SMIA\Bus iness\ClassFile s\ApplicationCa che.cs:31

[TypeInitializat ionException: The type initializer for
"SMIA.Business. ApplicationCach e" threw an exception.]
SMIA.Business.A pplicationCache .get_Reference( ) +0
SMIA.Business.B usinessLayer.In it(String baseName, String assemblyName)
in c:\vss\SMIA\Bus iness\ClassFile s\BusinessLayer .cs:28
SMIA.Web.Global .Application_St art(Object sender, EventArgs e) in
c:\vss\SMIA\SMI AWeb\Global.asa x.cs:50

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
ASP.NET Version:1.1.432 2.2032

Nov 19 '05 #3

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

Similar topics

6
3794
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 username/password to the page. I have read something about cookies and sending username/password through the header. With the new Windows Update 832894 it is no longer possible to use
0
1289
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 press OK with the userid and password left blank. How do we stop the pop-up from displaying? Thanks in advance, Norm
1
273
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 = new frmLogon(); logon.ShowDialog();
2
1411
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 technologies would be required to realise it, so that I can then investigate how to do it. I have a "black box" of electronics with an ADSL connection, the "black box" has 4 buttons and 4 lights on it.
1
1020
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 of where to look on the web for my answer, or your direct response. Thanks a 1,000,000 for your ideas. Chuck
1
1265
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 example, when my application starts, i want to display a logon window. this window will allows user to select between windows profil and my application.
3
1606
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 display in html? Thanks in advance Best Regards
2
3203
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 automatically loggged in using his windows credentials, but be able to swicth to different windows credentials from within the web app. How do I go about doing this? My current configuration is: <authentication mode="Windows" /> <identity...
2
4349
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 for yourself if you go to our web site .execplanexpress.com ). Settings: Enable anonymous access is checked (Directory Security --> Authentication and access control ) and IUSR_WEBSERVER and masked password is there.
0
9830
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9682
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10864
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10562
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10263
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6989
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5842
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4036
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3122
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.