Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / November 2003

Tip: Looking for answers? Try searching our database.

Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt Davey - 26 Nov 2003 15:32 GMT
If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
And run the same code, I get:

Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

But no stack trace and no idea what it can't find.  Any ideas or help would be useful

later
Sebastien Lambla - 26 Nov 2003 15:38 GMT
Maybe with a definition of "some code" we might be able to help. also notice that the DllNotFoundException just means the fusion loader didn't find the dlls you were referencing, like other projects you reference in your solution. You have to configure the new appdomain to probe for the dlls.

Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

 If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

 AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
 And run the same code, I get:

 Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

 But no stack trace and no idea what it can't find.  Any ideas or help would be useful

 later
Matt Davey - 26 Nov 2003 16:07 GMT
We have a managed C++ wrapper over TIBCO RV that is used by C#.  When the code is run in the newly created domain, everything works fine, apart from when we get a message off the RV, and hence some code deep inside the RV Dll's is called because it was probably waiting on a socket or something.  Anyway at this point we appear to get the exception.  

Sample code is difficult to send, since there is a lot of it, and even a simple 5 line same requires the RV wrapper etc

Do U mean do a AddAssembly to the evidence for all assemblies ?  Currently I don't do an AddAssembly, but everything in the app work fine from the 10 or so assemblies it uses, apart from the above problem.

Running in the default domain as I said, everything works fine.  

Thanks for the reply

Later

 Maybe with a definition of "some code" we might be able to help. also notice that the DllNotFoundException just means the fusion loader didn't find the dlls you were referencing, like other projects you reference in your solution. You have to configure the new appdomain to probe for the dlls.

 --
 Sebastien Lambla
 http://thetechnologist.is-a-geek.com/blog/

   "Matt Davey" <matt.davey@finetix.com> a écrit dans le message de news: O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
   If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

   AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
   And run the same code, I get:

   Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

   But no stack trace and no idea what it can't find.  Any ideas or help would be useful

   later
Matt Davey - 27 Nov 2003 14:13 GMT
Additionally, the fusionvw.exe shows no errors - even when I force logging by setting ForceLog=1 in the registry

Later
 We have a managed C++ wrapper over TIBCO RV that is used by C#.  When the code is run in the newly created domain, everything works fine, apart from when we get a message off the RV, and hence some code deep inside the RV Dll's is called because it was probably waiting on a socket or something.  Anyway at this point we appear to get the exception.  

 Sample code is difficult to send, since there is a lot of it, and even a simple 5 line same requires the RV wrapper etc

 Do U mean do a AddAssembly to the evidence for all assemblies ?  Currently I don't do an AddAssembly, but everything in the app work fine from the 10 or so assemblies it uses, apart from the above problem.

 Running in the default domain as I said, everything works fine.  

 Thanks for the reply

 Later

 "Sebastien Lambla" <sebastien.lambla@6sens.com> wrote in message news:OYlmYNDtDHA.2132@TK2MSFTNGP10.phx.gbl...
   Maybe with a definition of "some code" we might be able to help. also notice that the DllNotFoundException just means the fusion loader didn't find the dlls you were referencing, like other projects you reference in your solution. You have to configure the new appdomain to probe for the dlls.

   --
   Sebastien Lambla
   http://thetechnologist.is-a-geek.com/blog/

     "Matt Davey" <matt.davey@finetix.com> a écrit dans le message de news: O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
     If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

     AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
     And run the same code, I get:

     Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

     But no stack trace and no idea what it can't find.  Any ideas or help would be useful

     later
Matt Davey - 26 Nov 2003 15:41 GMT
Sorry, more info:

If I run in the debugger, breaking at the exception show no source and no disassembler.  Running www.sysinternals.com FileMon doesn't show any strange DLL's being requested.  Performing a CreateDomain with the CurrentDomain.Evidence and CurrentDomain.AppDomainSetup doesn't help either.  Using CLRSpy just shows a loada pinvoke calls to ReadFile and that is about it.

Hence kinda lost as the why the code runs ok in the default domain, but not in a created domain

Later

 If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

 AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
 And run the same code, I get:

 Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

 But no stack trace and no idea what it can't find.  Any ideas or help would be useful

 later
Sebastien Lambla - 27 Nov 2003 15:54 GMT
This is really wierd behavior... If you have a managed dll loading problem, and fusion loader doesn't show you anything, then your managed C++ wrapper must have either a bug or lack a security authorization or is not probing where needed or can't find what it wants for some wierd reason.

What I'd be really looking at is specifying manually all the folders with all the dlls needed by the app to the appdomain when creating it (not after), including any associated ocx files for unmanaged calls. If nothing works, try to copy everything in your system folder, try again. If it still doesn't work, I can't help you cause I have no other ideas.
Signature

Sebastien Lambla
http://thetechnologist.is-a-geek.com/blog/

 Sorry, more info:

 If I run in the debugger, breaking at the exception show no source and no disassembler.  Running www.sysinternals.com FileMon doesn't show any strange DLL's being requested.  Performing a CreateDomain with the CurrentDomain.Evidence and CurrentDomain.AppDomainSetup doesn't help either.  Using CLRSpy just shows a loada pinvoke calls to ReadFile and that is about it.

 Hence kinda lost as the why the code runs ok in the default domain, but not in a created domain

 Later

   "Matt Davey" <matt.davey@finetix.com> wrote in message news:O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
   If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

   AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
   And run the same code, I get:

   Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

   But no stack trace and no idea what it can't find.  Any ideas or help would be useful

   later
Matt Davey - 27 Nov 2003 16:49 GMT
Hi,

Tried all that.  The code works fine in the new domain until a message comes over RV, at which point I am guessing that TIBCO's RV library recrive a message on a socket, and invokes a callback, which we get via a function pointer in C++, and then fire the message into C# via a managed event.  However, when the get the exception as detailed below, none of our code has been hit, and there is no callstack in the debug showing the TIBCO dll - there is no call stack full stop.

Interesting, if one run the same code compiled on VS 2003, on a Longhorn machine with Whidbey install, we get a completely different exception - System.ArgumentException: Can not pass a GCHandle across appDomains.  What is strange is that we are not passing anything across appdomains.  The main app just creates an appdomain and says ExecuteAssembly.

Later
 This is really wierd behavior... If you have a managed dll loading problem, and fusion loader doesn't show you anything, then your managed C++ wrapper must have either a bug or lack a security authorization or is not probing where needed or can't find what it wants for some wierd reason.

 What I'd be really looking at is specifying manually all the folders with all the dlls needed by the app to the appdomain when creating it (not after), including any associated ocx files for unmanaged calls. If nothing works, try to copy everything in your system folder, try again. If it still doesn't work, I can't help you cause I have no other ideas.
 --
 Sebastien Lambla
 http://thetechnologist.is-a-geek.com/blog/

   "Matt Davey" <matt.davey@finetix.com> a écrit dans le message de news: uhichMDtDHA.3532@TK2MSFTNGP11.phx.gbl...
   Sorry, more info:

   If I run in the debugger, breaking at the exception show no source and no disassembler.  Running www.sysinternals.com FileMon doesn't show any strange DLL's being requested.  Performing a CreateDomain with the CurrentDomain.Evidence and CurrentDomain.AppDomainSetup doesn't help either.  Using CLRSpy just shows a loada pinvoke calls to ReadFile and that is about it.

   Hence kinda lost as the why the code runs ok in the default domain, but not in a created domain

   Later

     "Matt Davey" <matt.davey@finetix.com> wrote in message news:O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
     If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

     AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
     And run the same code, I get:

     Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

     But no stack trace and no idea what it can't find.  Any ideas or help would be useful

     later
Matt Davey - 27 Nov 2003 17:55 GMT
Sorry, forgot the last bit of info.  The GCHandle exception is from our RV wrapper, which is good and bad.  Good since it get into our code when run on the Longhorn CLR, bad because we should not get the exception

Later
 Hi,

 Tried all that.  The code works fine in the new domain until a message comes over RV, at which point I am guessing that TIBCO's RV library recrive a message on a socket, and invokes a callback, which we get via a function pointer in C++, and then fire the message into C# via a managed event.  However, when the get the exception as detailed below, none of our code has been hit, and there is no callstack in the debug showing the TIBCO dll - there is no call stack full stop.

 Interesting, if one run the same code compiled on VS 2003, on a Longhorn machine with Whidbey install, we get a completely different exception - System.ArgumentException: Can not pass a GCHandle across appDomains.  What is strange is that we are not passing anything across appdomains.  The main app just creates an appdomain and says ExecuteAssembly.

 Later
   "Sebastien Lambla" <sebastien.lambla@6sens.com> wrote in message news:u9f5S7PtDHA.2060@TK2MSFTNGP10.phx.gbl...
   This is really wierd behavior... If you have a managed dll loading problem, and fusion loader doesn't show you anything, then your managed C++ wrapper must have either a bug or lack a security authorization or is not probing where needed or can't find what it wants for some wierd reason.

   What I'd be really looking at is specifying manually all the folders with all the dlls needed by the app to the appdomain when creating it (not after), including any associated ocx files for unmanaged calls. If nothing works, try to copy everything in your system folder, try again. If it still doesn't work, I can't help you cause I have no other ideas.
   --
   Sebastien Lambla
   http://thetechnologist.is-a-geek.com/blog/

     "Matt Davey" <matt.davey@finetix.com> a écrit dans le message de news: uhichMDtDHA.3532@TK2MSFTNGP11.phx.gbl...
     Sorry, more info:

     If I run in the debugger, breaking at the exception show no source and no disassembler.  Running www.sysinternals.com FileMon doesn't show any strange DLL's being requested.  Performing a CreateDomain with the CurrentDomain.Evidence and CurrentDomain.AppDomainSetup doesn't help either.  Using CLRSpy just shows a loada pinvoke calls to ReadFile and that is about it.

     Hence kinda lost as the why the code runs ok in the default domain, but not in a created domain

     Later

       "Matt Davey" <matt.davey@finetix.com> wrote in message news:O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
       If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

       AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
       And run the same code, I get:

       Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

       But no stack trace and no idea what it can't find.  Any ideas or help would be useful

       later
Dave - 28 Nov 2003 10:36 GMT
This may be some COM related callback problem that occurs when an event fires. I'd get Adam Nathan's book on COM interop. On his blog he also has an interceptor program that looks at transitions between managed and unmanaged code. If your problem lies in that area this might help.

It sounds like the problem is related to marshalling an object across appdomain boundaries within a callback. When a failure occurs the exception is reflected back into the unmanaged wrapper, probably by translation into an error code, where it is then passed back again into the managed world as a COM error, where it is translated back again into an exception. This managed-unmanaged-managed transition is losing context data along the way.

One possible means of checking if this is the problem is configuring your debugger to break on first-chance exceptions. You will probably get loads of breaks due to exceptions that you don't care about and will want to ignore but eventually you should see the one you are interested in (and can then add filters so you don't have to deal with all the other exceptions). (A 1st chance exception is delivered to attached debuggers by the OS before the app processes it with SEH).

 Sorry, forgot the last bit of info.  The GCHandle exception is from our RV wrapper, which is good and bad.  Good since it get into our code when run on the Longhorn CLR, bad because we should not get the exception

 Later
   "Matt Davey" <matt.davey@finetix.com> wrote in message news:exC3RXQtDHA.2244@TK2MSFTNGP09.phx.gbl...
   Hi,

   Tried all that.  The code works fine in the new domain until a message comes over RV, at which point I am guessing that TIBCO's RV library recrive a message on a socket, and invokes a callback, which we get via a function pointer in C++, and then fire the message into C# via a managed event.  However, when the get the exception as detailed below, none of our code has been hit, and there is no callstack in the debug showing the TIBCO dll - there is no call stack full stop.

   Interesting, if one run the same code compiled on VS 2003, on a Longhorn machine with Whidbey install, we get a completely different exception - System.ArgumentException: Can not pass a GCHandle across appDomains.  What is strange is that we are not passing anything across appdomains.  The main app just creates an appdomain and says ExecuteAssembly.

   Later
     "Sebastien Lambla" <sebastien.lambla@6sens.com> wrote in message news:u9f5S7PtDHA.2060@TK2MSFTNGP10.phx.gbl...
     This is really wierd behavior... If you have a managed dll loading problem, and fusion loader doesn't show you anything, then your managed C++ wrapper must have either a bug or lack a security authorization or is not probing where needed or can't find what it wants for some wierd reason.

     What I'd be really looking at is specifying manually all the folders with all the dlls needed by the app to the appdomain when creating it (not after), including any associated ocx files for unmanaged calls. If nothing works, try to copy everything in your system folder, try again. If it still doesn't work, I can't help you cause I have no other ideas.
     --
     Sebastien Lambla
     http://thetechnologist.is-a-geek.com/blog/

       "Matt Davey" <matt.davey@finetix.com> a écrit dans le message de news: uhichMDtDHA.3532@TK2MSFTNGP11.phx.gbl...
       Sorry, more info:

       If I run in the debugger, breaking at the exception show no source and no disassembler.  Running www.sysinternals.com FileMon doesn't show any strange DLL's being requested.  Performing a CreateDomain with the CurrentDomain.Evidence and CurrentDomain.AppDomainSetup doesn't help either.  Using CLRSpy just shows a loada pinvoke calls to ReadFile and that is about it.

       Hence kinda lost as the why the code runs ok in the default domain, but not in a created domain

       Later

         "Matt Davey" <matt.davey@finetix.com> wrote in message news:O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
         If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

         AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
         And run the same code, I get:

         Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

         But no stack trace and no idea what it can't find.  Any ideas or help would be useful

         later
Matt Davey - 28 Nov 2003 11:03 GMT
We are using the C++ TIBCO RV class, and have wrappered them in Managed C++, hence no COM.  

It looks to me like the TIBCO RV OTibrvCmMsgCallback::OnMsg C++ method callback is call from the wrong domain.  Once can possibly assume that the OnMsg is called when a message is received on a subject in a similar fashion to the MFC class CAsyncSocket::OnReceive.  Assuming this is a good guess, then CAsyncSocket::OnReceive appear to be called in the wrong domain.

later

 This may be some COM related callback problem that occurs when an event fires. I'd get Adam Nathan's book on COM interop. On his blog he also has an interceptor program that looks at transitions between managed and unmanaged code. If your problem lies in that area this might help.

 It sounds like the problem is related to marshalling an object across appdomain boundaries within a callback. When a failure occurs the exception is reflected back into the unmanaged wrapper, probably by translation into an error code, where it is then passed back again into the managed world as a COM error, where it is translated back again into an exception. This managed-unmanaged-managed transition is losing context data along the way.

 One possible means of checking if this is the problem is configuring your debugger to break on first-chance exceptions. You will probably get loads of breaks due to exceptions that you don't care about and will want to ignore but eventually you should see the one you are interested in (and can then add filters so you don't have to deal with all the other exceptions). (A 1st chance exception is delivered to attached debuggers by the OS before the app processes it with SEH).

   "Matt Davey" <Matt.Davey@finetix.com> wrote in message news:eKFei%23QtDHA.1224@TK2MSFTNGP09.phx.gbl...
   Sorry, forgot the last bit of info.  The GCHandle exception is from our RV wrapper, which is good and bad.  Good since it get into our code when run on the Longhorn CLR, bad because we should not get the exception

   Later
     "Matt Davey" <matt.davey@finetix.com> wrote in message news:exC3RXQtDHA.2244@TK2MSFTNGP09.phx.gbl...
     Hi,

     Tried all that.  The code works fine in the new domain until a message comes over RV, at which point I am guessing that TIBCO's RV library recrive a message on a socket, and invokes a callback, which we get via a function pointer in C++, and then fire the message into C# via a managed event.  However, when the get the exception as detailed below, none of our code has been hit, and there is no callstack in the debug showing the TIBCO dll - there is no call stack full stop.

     Interesting, if one run the same code compiled on VS 2003, on a Longhorn machine with Whidbey install, we get a completely different exception - System.ArgumentException: Can not pass a GCHandle across appDomains.  What is strange is that we are not passing anything across appdomains.  The main app just creates an appdomain and says ExecuteAssembly.

     Later
       "Sebastien Lambla" <sebastien.lambla@6sens.com> wrote in message news:u9f5S7PtDHA.2060@TK2MSFTNGP10.phx.gbl...
       This is really wierd behavior... If you have a managed dll loading problem, and fusion loader doesn't show you anything, then your managed C++ wrapper must have either a bug or lack a security authorization or is not probing where needed or can't find what it wants for some wierd reason.

       What I'd be really looking at is specifying manually all the folders with all the dlls needed by the app to the appdomain when creating it (not after), including any associated ocx files for unmanaged calls. If nothing works, try to copy everything in your system =
folder, try again. If it still doesn't work, I can't help you cause I have no other ideas.
       --
       Sebastien Lambla
       http://thetechnologist.is-a-geek.com/blog/

         "Matt Davey" <matt.davey@finetix.com> a écrit dans le message de news: uhichMDtDHA.3532@TK2MSFTNGP11.phx.gbl...
         Sorry, more info:

         If I run in the debugger, breaking at the exception show no source and no disassembler.  Running www.sysinternals.com FileMon doesn't show any strange DLL's being requested.  Performing a CreateDomain with the CurrentDomain.Evidence and CurrentDomain.AppDomainSetup doesn't help either.  Using CLRSpy just shows a loada pinvoke calls to ReadFile and that is about it.

         Hence kinda lost as the why the code runs ok in the default domain, but not in a created domain

         Later

           "Matt Davey" <matt.davey@finetix.com> wrote in message news:O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
           If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

           AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
           And run the same code, I get:

           Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

           But no stack trace and no idea what it can't find.  Any ideas or help would be useful

           later
Matt Davey - 28 Nov 2003 11:07 GMT
Sorry, the GCHandle exception is a red herring, the real issue is further up the call stack

later

 We are using the C++ TIBCO RV class, and have wrappered them in Managed C++, hence no COM.  

 It looks to me like the TIBCO RV OTibrvCmMsgCallback::OnMsg C++ method callback is call from the wrong domain.  Once can possibly assume that the OnMsg is called when a message is received on a subject in a similar fashion to the MFC class CAsyncSocket::OnReceive.  Assuming this is a good guess, then CAsyncSocket::OnReceive appear to be called in the wrong domain.

 later

   "Dave" <noSpamdlevineNNTP2@wi.rr.com> wrote in message news:etQwzuZtDHA.1764@TK2MSFTNGP10.phx.gbl...
   This may be some COM related callback problem that occurs when an event fires. I'd get Adam Nathan's book on COM interop. On his blog he also has an interceptor program that looks at transitions between managed and unmanaged code. If your problem lies in that area this might help.

   It sounds like the problem is related to marshalling an object across appdomain boundaries within a callback. When a failure occurs the exception is reflected back into the unmanaged wrapper, probably by translation into an error code, where it is then passed back again into the managed world as a COM error, where it is translated back again into an exception. This managed-unmanaged-managed transition is losing context data along the way.

   One possible means of checking if this is the problem is configuring your debugger to break on first-chance exceptions. You will probably get loads of breaks due to exceptions that you don't care about and will want to ignore but eventually you should see the one you are interested in (and can then add filters so you don't have to deal with all the other exceptions). (A 1st chance exception is delivered to attached debuggers by the OS before the app processes it with SEH).

     "Matt Davey" <Matt.Davey@finetix.com> wrote in message news:eKFei%23QtDHA.1224@TK2MSFTNGP09.phx.gbl...
     Sorry, forgot the last bit of info.  The GCHandle exception is from our RV wrapper, which is good and bad.  Good since it get into our code when run on the Longhorn CLR, bad because we should not get the exception

     Later
       "Matt Davey" <matt.davey@finetix.com> wrote in message news:exC3RXQtDHA.2244@TK2MSFTNGP09.phx.gbl...
       Hi,

       Tried all that.  The code works fine in the new domain until a message comes over RV, at which point I am guessing that TIBCO's RV library recrive a message on a socket, and invokes a callback, which we get via a function pointer in C++, and then fire the message into C# via a managed event.  However, when the get the exception as detailed below, none of our code has been hit, and there is no callstack in the debug showing the TIBCO dll - there is no call stack full stop.

       Interesting, if one run the same code compiled on VS 2003, on a Longhorn machine with Whidbey install, we get a completely different exception - System.ArgumentException: Can not pass a GCHandle across appDomains.  What is strange is that we are not passing anything across appdomains.  The main app just creates an appdomain and says ExecuteAssembly.

       Later
         "Sebastien Lambla" <sebastien.lambla@6sens.com> wrote in message news:u9f5S7PtDHA.2060@TK2MSFTNGP10.phx.gbl...
         This is really wierd behavior... If you have a managed dll loading problem, and fusion loader doesn't show you anything, then your managed C++ wrapper must have either a bug or lack a security authorization or is not probing where needed or can't find what it wants for some wierd reason.

         What I'd be really looking at is specifying manually all the folders with all the dlls needed by the app to the appdomain when creating it (not after), including any associated ocx files for unmanaged calls. If nothing works, try to copy everything in your system folder, try again. If it still doesn't work, I can't help you cause I have no other ideas.
         --
         Sebastien Lambla
         http://thetechnologist.is-a-geek.com/blog/

           "Matt Davey" <matt.davey@finetix.com> a écrit dans le message de news: uhichMDtDHA.3532@TK2MSFTNGP11.phx.gbl...
           Sorry, more info:

           If I run in the debugger, breaking at the exception show no source and no disassembler.  Running www.sysinternals.com FileMon doesn't show any strange DLL's being requested.  Performing a CreateDomain with the CurrentDomain.Evidence and CurrentDomain.AppDomainSetup doesn't help either.  Using CLRSpy just shows a loada pinvoke calls to ReadFile and that is about it.

           Hence kinda lost as the why the code runs ok in the default domain, but not in a created domain

           Later

             "Matt Davey" <matt.davey@finetix.com> wrote in message news:O91GbHDtDHA.1088@tk2msftngp13.phx.gbl...
             If I run some code in the default domain of a console applicaiton, all works fine, if I create a new domain:

             AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
             And run the same code, I get:

             Unhandled Exception: System.DllNotFoundException: Exception from HRESULT: 0x80131524

             But no stack trace and no idea what it can't find.  Any ideas or help would be useful

             later
Conrad Zhang - 28 Nov 2003 01:06 GMT
Be sure to read Suzanne's blog before asking. It is probably already
answered there.

http://blogs.gotdotnet.com/suzcook/

If I run some code in the default domain of a console applicaiton, all works
fine, if I create a new domain:

AppDomain newDomain = AppDomain.CreateDomain("New"+FriendlyName)
And run the same code, I get:

Unhandled Exception: System.DllNotFoundException: Exception from HRESULT:
0x80131524

But no stack trace and no idea what it can't find.  Any ideas or help would
be useful

later
Matt Davey - 28 Nov 2003 05:55 GMT
Read it, and no its not answered as far as I can see

Later

> Be sure to read Suzanne's blog before asking. It is probably already
> answered there.
[quoted text clipped - 14 lines]
>
> later

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.