Tuesday, March 13, 2012

System.Runtime.InteropServices.COMException + Unspecified Error

Hi..

I am using AD and SQL Authentication in my site. I am using ASP.NET 2.0+C#.

I have a web page, in which i can create users. While I try to create an user for the first time, I am getting anUnspecified Error. Repeated trials are successfully creating users in the database and AD, I am using the Authentication mode as:SQL_and_AD_Authentication

In my information log, I have the following stack trace:

Timestamp: 24/09/2007 14:27:32
Message: HandlingInstanceID: 272245f4-2d0a-422a-8d7d-0fdf66ad1b44
An exception of type 'System.Runtime.InteropServices.COMException' occurred and was caught.
----------------------------
09/24/2007 15:27:32
Type : System.Runtime.InteropServices.COMException, mscorlib, Version=2.0.0.0, Culture=neutral,

Message : Unspecified error

Source : App_Web_2b_1-umr
Help link :
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Void AddUser()
Stack Trace : at MyAdmin.UI.SiteViewAgents.AddUser()
at MyAdmin.UI.SiteViewAgents.UpdateAgent(String AgentId)

Additional Info:

MachineName : CCQASRV
TimeStamp : 24/09/2007 14:27:32
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null

ThreadIdentity :
WindowsIdentity : BTCCOUTBOUND\Administrator

Category: Error
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: CCQASRV
Application Domain: /LM/W3SVC/1/Root/NGCCManagementFrameworkAdmin_QA2.1-1-128351114095156250
Process Id: 6196
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Win32 Thread Id: 8480
Thread Name:
Extended Properties:

what is this Unspecified Error? Please help..

Thanks

Check this thread to see if it gives some pointers

http://www.eggheadcafe.com/software/aspnet/29434778/cannot-add-user-to-active.aspx

HTH,
Suprotim Agarwal

--
http://www.dotnetcurry.com
--


Hi..

Thank you very much for the reply.. But I couldn't get much help from that.

Thanks


Hi,

In that case, try posting the code which you feel causes the error.

Suprotim.


Hi venkatzeus,

According to MSDN, if the HRESULT is a custom result or if it is unknown to the runtime, the runtime passes a genericCOMException to the client. TheErrorCode property of theCOMException contains the HRESULT value. You can use catch(ComException ex) to catch this type of exception.

http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.comexception(VS.71).aspx

Hope it helps.


HI..

I searched in google and found out this:

http://support.microsoft.com/kb/232282

It says, it is a Generic COM Error Codes. How to catch these generic COM Error codes and provide more meaningful messages to the end user.

Thanks

loadTOCNode(2, 'moreinformation');

0 comments:

Post a Comment