Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exception Block Problem When GAC

6 views
Skip to first unread message

Jesse Napier

unread,
Jul 11, 2003, 9:25:54 PM7/11/03
to
I am having a problem trying to use a custom publisher
with the Exception Block when i place the Excpetion
Management and Inteface assemblies in the GAC. If I move
the assemblies into the private Bin directory, everything
works fine.

The error that the exception manager logs is:

Event Type: Error
Event Source: ExceptionManagerInternalException
Event Category: None
Event ID: 0
Date: 7/11/2003
Time: 6:51:27 PM
User: N/A
Computer: LSTWEB01
Description:


1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: File or assembly name
Microsoft.ApplicationBlocks.ExceptionManagement, or one of
its dependencies, was not found.
(D:\Solutions\WebSolutions\NGSolutions\ProvidersDirectorySo
lution\ProvidersDirectorySolution\ProvidersDirectory\web.co
nfig line 4)
BareMessage: File or assembly name
Microsoft.ApplicationBlocks.ExceptionManagement, or one of
its dependencies, was not found.
Filename:
D:\Solutions\WebSolutions\NGSolutions\ProvidersDirectorySol
ution\ProvidersDirectorySolution\ProvidersDirectory\web.con
fig
Line: 4
TargetSite:
System.Configuration.IConfigurationSectionHandler
GetFactory(System.String)
HelpLink: NULL
Source: System.Web

StackTrace Information
*********************************************
at
System.Web.Configuration.HttpConfigurationRecord.GetFactory
(String configKey)
at
System.Web.Configuration.HttpConfigurationRecord.Evaluate
(String configKey, SectionRecord section)
at
System.Web.Configuration.HttpConfigurationRecord.GetConfig
(String configKey, Boolean cacheResult)
at
System.Web.Configuration.HttpConfigurationRecord.GetConfig
(String configKey, Boolean cacheResult)
at
System.Web.Configuration.HttpConfigurationRecord.get_Item
(String configKey)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBase.System
.Configuration.IConfigurationSystem.GetConfig(String
configKey)
at System.Configuration.ConfigurationSettings.GetConfig
(String sectionName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionMa
nager.Publish(Exception exception, NameValueCollection
additionalInfo)

2) Exception Information
*********************************************
Exception Type: System.IO.FileNotFoundException
Message: File or assembly name
Microsoft.ApplicationBlocks.ExceptionManagement, or one of
its dependencies, was not found.
FileName: Microsoft.ApplicationBlocks.ExceptionManagement
FusionLog: === Pre-bind state information ===
LOG: DisplayName =
Microsoft.ApplicationBlocks.ExceptionManagement
(Partial)
LOG: Appbase =
file:///D:/Solutions/WebSolutions/NGSolutions/ProvidersDire
ctorySolution/ProvidersDirectorySolution/ProvidersDirectory
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time
(private, custom, partial, or location-based assembly
bind).
LOG: Post-policy reference:
Microsoft.ApplicationBlocks.ExceptionManagement
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporar
y ASP.NET
Files/providersdirectory/faee83aa/fa594347/Microsoft.Applic
ationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporar
y ASP.NET
Files/providersdirectory/faee83aa/fa594347/Microsoft.Applic
ationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks
.ExceptionManagement.DLL.
LOG: Attempting download of new URL
file:///D:/Solutions/WebSolutions/NGSolutions/ProvidersDire
ctorySolution/ProvidersDirectorySolution/ProvidersDirectory
/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL
file:///D:/Solutions/WebSolutions/NGSolutions/ProvidersDire
ctorySolution/ProvidersDirectorySolution/ProvidersDirectory
/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Micros
oft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporar
y ASP.NET
Files/providersdirectory/faee83aa/fa594347/Microsoft.Applic
ationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporar
y ASP.NET
Files/providersdirectory/faee83aa/fa594347/Microsoft.Applic
ationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks
.ExceptionManagement.EXE.
LOG: Attempting download of new URL
file:///D:/Solutions/WebSolutions/NGSolutions/ProvidersDire
ctorySolution/ProvidersDirectorySolution/ProvidersDirectory
/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL
file:///D:/Solutions/WebSolutions/NGSolutions/ProvidersDire
ctorySolution/ProvidersDirectorySolution/ProvidersDirectory
/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Micros
oft.ApplicationBlocks.ExceptionManagement.EXE.

TargetSite: System.Type GetType(System.String, Boolean)
HelpLink: NULL
Source: mscorlib

StackTrace Information
*********************************************
at System.Type.GetType(String typeName, Boolean
throwOnError)
at
System.Web.Configuration.HttpConfigurationRecord.GetFactory
(String configKey)

Roman Kiss

unread,
Jul 14, 2003, 1:13:57 AM7/14/03
to
There is a bug in the source code. You can use my workaround described
early in this group ~2 months ago.

Roman

"Jesse Napier" <jna...@remotenet.com> wrote in message news:<6c6401c34814$89d8abd0$7d02...@phx.gbl>...

Jesse Napier

unread,
Jul 14, 2003, 12:23:46 PM7/14/03
to
Actually I have solved this problem by specifying the
version of the assembly to use. So web.config should look
something like this.

<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagement.Excep
tionManagerSectionHandler,
Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=e79354ccc5b5f013"/>
</configSections>


<exceptionManagement>
<publisher mode="off"
assembly="Microsoft.ApplicationBlocks.ExceptionManagement,V
ersion=1.0.0.0, Culture=neutral,
PublicKeyToken=e79354ccc5b5f013"
type="Microsoft.ApplicationBlocks.ExceptionManagement.Defau
ltPublisher" logName="PhysiciansDirectoryLog"
applicationName="PhysiciansDirectory" />
<publisher mode="on"
assembly="RNCExceptionPublishers,Version=1.0.0.0,
Culture=neutral, PublicKeyToken=1889573826e9b10c"
type="RemoteNet.Components.Exceptions.EventLogPublisher"
logName="PhysiciansDirectoryLog"
applicationName="PhysiciansDirectory" verbose="True"/>
<publisher mode="on"
assembly="RNCExceptionPublishers,Version=1.0.0.0,
Culture=neutral, PublicKeyToken=1889573826e9b10c"
type="RemoteNet.Components.Exceptions.SMTPEmailPublisher"
applicationName="PhysiciansDirectory" verbose="True"
fromEmailAddress="PhysiciansDirectory"
toEmailAddress="jna...@remotenet.com"/>
</exceptionManagement>

This solved the problem and now everything works as
expected.

>> /bin/Microsoft.ApplicationBlocks.ExceptionManagement/Mic


ros
>> oft.ApplicationBlocks.ExceptionManagement.DLL.
>> LOG: Attempting download of new URL
>>
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporar
>> y ASP.NET
>>
Files/providersdirectory/faee83aa/fa594347/Microsoft.Applic
>> ationBlocks.ExceptionManagement.EXE.
>> LOG: Attempting download of new URL
>>
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporar
>> y ASP.NET
>>
Files/providersdirectory/faee83aa/fa594347/Microsoft.Applic
>>
ationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks
>> .ExceptionManagement.EXE.
>> LOG: Attempting download of new URL
>>
file:///D:/Solutions/WebSolutions/NGSolutions/ProvidersDire
>>
ctorySolution/ProvidersDirectorySolution/ProvidersDirectory
>> /bin/Microsoft.ApplicationBlocks.ExceptionManagement.EXE
.

>> LOG: Attempting download of new URL
>>
file:///D:/Solutions/WebSolutions/NGSolutions/ProvidersDire
>>
ctorySolution/ProvidersDirectorySolution/ProvidersDirectory

>> /bin/Microsoft.ApplicationBlocks.ExceptionManagement/Mic


ros
>> oft.ApplicationBlocks.ExceptionManagement.EXE.
>>
>> TargetSite: System.Type GetType(System.String, Boolean)
>> HelpLink: NULL
>> Source: mscorlib
>>
>> StackTrace Information
>> *********************************************
>> at System.Type.GetType(String typeName, Boolean
>> throwOnError)
>> at
>>
System.Web.Configuration.HttpConfigurationRecord.GetFactory
>> (String configKey)

>.
>

0 new messages