-
Type Load Exception Problem
Hi guys,
when I am using (I am new to this)
AppDomain.CurrentDomain.CreateInstanceAndUnwrap("Grapecity.Laser.Business",
"Grapecity.Laser.Business.customPublishers")
I am getting the error with following details
A first chance exception of type 'System.TypeLoadException' occurred in
mscorlib.dll
Additional information: Could not load type
Grapecity.Laser.Business.customPublishers from assembly
Grapecity.Laser.Business, Version=1.0.817.33194, Culture=neutral,
PublicKeyToken=null.
Can anyone suggest me the possible cause and solution for this
Will be thankful for any advice,
Regards
manish
-
system.loadtypeexceptio
Hi
I have a custom class ExceptionPublisher which implements IExceptionPublisher to log exception
Namespace QuickStartSamples
Public Class ExceptionPublisher
Implements IExceptionPublisher
Sub Publish(ByVal e As Exception, ByVal AdditionalInfo As NameValueCollection, ByVal ConfigSettings As NameValueCollection) Implements IExceptionPublisher.Publish
--code to log exception
end sub
and my web.config is like this
<configSections>
<section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Micro soft.ApplicationBlocks.ExceptionManagement,Version=1.0.2459.20567,Culture=neutral,PublicKe yToken=4d3273ef1361f6e8" />
</configSections>
<exceptionManagement mode="on">
<publisher assembly="QuickStartSamples" type="QuickStartSamples.ExceptionPublisher" fileName="D:\project\Error.txt" />
</exceptionManagement>
since the framework creates default namespace by defaullt which is same as assembly name we need not specify namespace
i commented Namespace QuickStartSamples from my assembly
Regards
Girish
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|