By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,152 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,152 IT Pros & Developers. It's quick & easy.

Global Assembly Cache Issue

P: n/a
I have a dll that I use in several projects, that I placed in the Global
Assembly Cache. This dll is references in each of my projects.

This Dll is referenced by a type= declaration in my web.config as follows.

<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.ExceptionManagerSectio
nHandler,Microsoft.ApplicationBlocks.ExceptionMana gement" />
</configSections>
<exceptionManagement mode="on">
<publisher mode="on"
assembly="Microsoft.ApplicationBlocks.ExceptionMan agement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.DefaultPublisher" />
</exceptionManagement>

The issue I am having is that since this dll is in the GAC, ASP.NET doesn't
know where the actuall DLL file is. I get an exception when ASP .NET is
trying to do a Type.GetType on
Microsoft.ApplicationBlocks.ExceptionManagement.

This is because it's trying to locate the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l in several places (as
you can see in the Exception below).

ASP .NET won't find the Microsoft.ApplicationBlocks.ExceptionManagement.dl l
because it's in the GAC, not in any of the places it's looking for.

If I change the Copy Local property of the reference to True, this is a non
issue. This is because the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l is copied to the bin
directory of the website.

But isn't the whole point of the GAC that I don't have to have a copy of a
dll (that's in the GAC) in every application's bin directory?

Event Type: Error
Event Source: ExceptionManagerInternalException
Event Category: None
Event ID: 0
Date: 5/28/2004
Time: 6:48:27 AM
User: N/A
Computer: GDURZI-XP
Description:
1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: Exception creating section handler.
(c:\inetpub\wwwroot\lrwintranet\web.config line 4)
BareMessage: Exception creating section handler.
Filename: c:\inetpub\wwwroot\lrwintranet\web.config
Line: 4
TargetSite: System.Configuration.IConfigurationSectionHandler
GetFactory(System.String)
HelpLink: NULL
Source: System.Web

StackTrace Information
*********************************************
at System.Web.Configuration.HttpConfigurationRecord.G etFactory(String
configKey)
at System.Web.Configuration.HttpConfigurationRecord.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IC
onfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc
eption 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:///c:/inetpub/wwwroot/lrwintranet
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:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.

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.G etFactory(String
configKey)

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
George,

Try adding the version, culture, and public key information to the assembly
attribute. See
http://groups.google.com/groups?hl=e...280a%40phx.gbl
for examples.

HTH,
Nicole
"George Durzi" <gd****@hotmail.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
I have a dll that I use in several projects, that I placed in the Global
Assembly Cache. This dll is references in each of my projects.

This Dll is referenced by a type= declaration in my web.config as follows.

<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.ExceptionManagerSectio
nHandler,Microsoft.ApplicationBlocks.ExceptionMana gement" />
</configSections>
<exceptionManagement mode="on">
<publisher mode="on"
assembly="Microsoft.ApplicationBlocks.ExceptionMan agement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.DefaultPublisher" />
</exceptionManagement>

The issue I am having is that since this dll is in the GAC, ASP.NET
doesn't
know where the actuall DLL file is. I get an exception when ASP .NET is
trying to do a Type.GetType on
Microsoft.ApplicationBlocks.ExceptionManagement.

This is because it's trying to locate the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l in several places (as
you can see in the Exception below).

ASP .NET won't find the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l
because it's in the GAC, not in any of the places it's looking for.

If I change the Copy Local property of the reference to True, this is a
non
issue. This is because the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l is copied to the bin
directory of the website.

But isn't the whole point of the GAC that I don't have to have a copy of a
dll (that's in the GAC) in every application's bin directory?

Event Type: Error
Event Source: ExceptionManagerInternalException
Event Category: None
Event ID: 0
Date: 5/28/2004
Time: 6:48:27 AM
User: N/A
Computer: GDURZI-XP
Description:
1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: Exception creating section handler.
(c:\inetpub\wwwroot\lrwintranet\web.config line 4)
BareMessage: Exception creating section handler.
Filename: c:\inetpub\wwwroot\lrwintranet\web.config
Line: 4
TargetSite: System.Configuration.IConfigurationSectionHandler
GetFactory(System.String)
HelpLink: NULL
Source: System.Web

StackTrace Information
*********************************************
at System.Web.Configuration.HttpConfigurationRecord.G etFactory(String
configKey)
at System.Web.Configuration.HttpConfigurationRecord.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IC
onfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc
eption 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:///c:/inetpub/wwwroot/lrwintranet
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:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan
agement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.

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.G etFactory(String
configKey)

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

Nov 18 '05 #2

P: n/a
Thank you so much Nicole!!
"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
George,

Try adding the version, culture, and public key information to the assembly attribute. See
http://groups.google.com/groups?hl=e...280a%40phx.gbl for examples.

HTH,
Nicole
"George Durzi" <gd****@hotmail.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
I have a dll that I use in several projects, that I placed in the Global
Assembly Cache. This dll is references in each of my projects.

This Dll is referenced by a type= declaration in my web.config as follows.
<configSections>
<section name="exceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.ExceptionManagerSectio nHandler,Microsoft.ApplicationBlocks.ExceptionMana gement" />
</configSections>
<exceptionManagement mode="on">
<publisher mode="on"
assembly="Microsoft.ApplicationBlocks.ExceptionMan agement"
type="Microsoft.ApplicationBlocks.ExceptionManagem ent.DefaultPublisher" /> </exceptionManagement>

The issue I am having is that since this dll is in the GAC, ASP.NET
doesn't
know where the actuall DLL file is. I get an exception when ASP .NET is
trying to do a Type.GetType on
Microsoft.ApplicationBlocks.ExceptionManagement.

This is because it's trying to locate the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l in several places (as you can see in the Exception below).

ASP .NET won't find the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l
because it's in the GAC, not in any of the places it's looking for.

If I change the Copy Local property of the reference to True, this is a
non
issue. This is because the
Microsoft.ApplicationBlocks.ExceptionManagement.dl l is copied to the bin
directory of the website.

But isn't the whole point of the GAC that I don't have to have a copy of a dll (that's in the GAC) in every application's bin directory?

Event Type: Error
Event Source: ExceptionManagerInternalException
Event Category: None
Event ID: 0
Date: 5/28/2004
Time: 6:48:27 AM
User: N/A
Computer: GDURZI-XP
Description:
1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: Exception creating section handler.
(c:\inetpub\wwwroot\lrwintranet\web.config line 4)
BareMessage: Exception creating section handler.
Filename: c:\inetpub\wwwroot\lrwintranet\web.config
Line: 4
TargetSite: System.Configuration.IConfigurationSectionHandler
GetFactory(System.String)
HelpLink: NULL
Source: System.Web

StackTrace Information
*********************************************
at System.Web.Configuration.HttpConfigurationRecord.G etFactory(String
configKey)
at System.Web.Configuration.HttpConfigurationRecord.E valuate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.G etConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
System.Web.Configuration.HttpConfigurationSystemBa se.System.Configuration.IC onfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConf ig(String
sectionName)
at
Microsoft.ApplicationBlocks.ExceptionManagement.Ex ceptionManager.Publish(Exc eption 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:///c:/inetpub/wwwroot/lrwintranet
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:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan agement.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan agement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DL L. LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DL L. LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan agement.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/lrwintranet/2701740a/e67690c7/Microsoft.ApplicationBlocks.ExceptionMan agement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EX E. LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/lrwintranet/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EX E.
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.G etFactory(String
configKey)

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.