|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GetModuleHandle failed with error -2147023888I am getting the following error message and don't know how to resolve it. I have a simple webform with the following codebehind: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim gUserID, gSessionID, strLevelUp, strDSN As String Dim oSessionDB As New SessionDB.Loader Response.Write(oSessionDB.GetVersion) Response.Write("HELLO WORLD") oSessionDB = Nothing End Sub SessionDB is a COM object that I wrote using VB6 to help maintain session variables between classic and .net pages. The COM object basically reads/writes from a SQL 2000 dB. The specific method I am calling is GetVersion, which basically prints out the version of the COM. When I use this COM object in classic all is well, but when I use it in .Net, it blows up w/ this error. We are running Windows Server 2000 w/ SP4 (it is a domain controller). We have MDAC 2.8 installed. I have tried putting "<identity impersonate="true"/>" into my web.config file and have also tried adding IWAM_ComputerName to the Domain Security Policy (User Rights Assignment --> Impersonate a client after authentication) and that didn't help. After adding the IWAM to the policy, I rebooted the machine just incase it was needed, and still nothing. Please help as I am LOST and DON'T know what to try next!!!! ----------------------------------------------------------------------------------------------------------------- An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888). 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.Web.HttpException: An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888). [HttpException (0x80004005): An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888).] System.Web.StringResourceManager.ReadSafeStringResource(Type t) +376 System.Web.UI.TemplateControl.ReadStringResource(Type t) +5 ASP.test_aspx..ctor() [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0 System.Activator.CreateInstance(Type type, Boolean nonPublic) +66 System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +164 [HttpException (0x80004005): Failed to create page of type 'ASP.test_aspx'.] System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +340 System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +698 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 |
|||||||||||||||||||||||