Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could not load type ... w/MS App Exception Block
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Could not load type ... w/MS App Exception Block
Miscellaneous
Thread ID:
00812864
Message ID:
00812864
Views:
44
I have attempted to incorporate the Microsoft ApplicationBlocks ExceptionManagement DLL into my 2002 ASP.Net application.

I downloaded the application and installed it into c:\program files\microsoft application blocks\... directory. Rebuilt the Project.

I've developed my own exception class (RSACommon.EmVFP) in a new C# project (RSACommon). This project is located under my main solution directory (c:\documents and settings....)

When an exception is fired in my ASP.net application and the framework tries to launch my custom class.
IExceptionPublisher Publisher = (IExceptionPublisher)Activate(publisher.AssemblyName, publisher.TypeName);

I get the error given below. The research I've done on the web indicates that the problem could be a namespace issue, the project not being rebuilt, a security issue with the DLL (need to have Read and Execute rights) or a DLL Version issue.

I've rebuilt the Application block, removed the references from my projects and re-added them, verified the security on the DLL's, and verified that the version number it's trying to load (see error message below) matches the DLL version in my web application virtual\bin directory.

I'm wondering if I need to move the Application Block DLL into the GAC or maybe under my application directory. When I build the project, the MS Application Block DLL's get copied into the correct BIN directories under my application, so I don't think that's it.

Anyone got any ideas? I'm just about at the end of my rope.
"System.TypeLoadException: 
Could not load type RSACommon.EmVFP from assembly RSACommon, Version=1.0.1299.21866, Culture=neutral, PublicKeyToken=null.
   at System.Reflection.Assembly.GetTypeInternal(
                String typeName, Boolean throwOnError, 
                Boolean ignoreCase, Boolean publicOnly)
   at System.Activator.CreateInstance(
                String assemblyName, String typeName, Boolean ignoreCase, 
                BindingFlags bindingAttr, Binder binder, Object[] args, 
                CultureInfo culture, Object[] activationAttributes, 
                Evidence securityInfo, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(String assemblyName, String typeName)
   at System.AppDomain.CreateInstance(String assemblyName, String typeName)
   at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName)
   at Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Activate
      (String assembly, String typeName) in 
           C:\Program Files\Microsoft Application Blocks for .NET\Exception 
             Management\Code\CS\Microsoft.ApplicationBlocks.
             ExceptionManagement\ExceptionManager.cs:line 313
   at Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.PublishToCustomPublisher(
          Exception exception, NameValueCollection additionalInfo, 
          PublisherSettings publisher) in C:\Program Files\Microsoft 
               Application Blocks for .NET\Exception 
               Management\Code\CS\Microsoft.ApplicationBlocks.
                   ExceptionManagement\ExceptionManager.cs:line 261"
Reply
Map
View

Click here to load this message in the networking platform