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 / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Global.asax not checking the GAC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bizint@newsgroup.nospam - 11 Mar 2008 15:48 GMT
Hi,
I have some code in the global.asax which needs to use a dll in the GAC.
I've included the page directive <%@ Assembly Name="myDll" %>  in the
global.asax but I get the following error:

"Could not load file or assembly 'myDll' or one of its dependencies. The
system cannot find the file specified."

When I switch on the fusion assembly logging I can see  that the GAC is not
even being searched for the dll.
Does anyone know how I can force the GAC to be checked? (This only seems to
be a problem with global.asax, all other pages can find the dll without a
problem.)

Thanks,

Nick
Steven Cheng - 12 Mar 2008 02:41 GMT
Hi Nick,

If your assembly has been strong-named and put in GAC, you can always
reference it via its Full qualified assembly name(with Name, Version,
Culture and Public Key Token). e.g.

System.data, version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089

Here is the MSDN reference about Assembly Name:

#Assembly Names
http://msdn2.microsoft.com/en-us/library/k8xx4k69(VS.71).aspx

BTW, for most .net configuration section that require you put type info, if
you do not put Full assembly name, it will treat it like a normal
un-strong-named assembly.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response

from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take

approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution.

The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump

analysis issues. Issues of this nature are best handled working with a
dedicated Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: <bizint@newsgroup.nospam>
>Subject: Global.asax not checking the GAC
[quoted text clipped - 17 lines]
>
>Nick
Steven Cheng - 14 Mar 2008 10:49 GMT
Hi Nick,

Have you resolved this problem or does the suggestion in previous message
help some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

>Content-Transfer-Encoding: 7bit
>From: stcheng@online.microsoft.com ("Steven Cheng")
>Organization: Microsoft
>Date: Wed, 12 Mar 2008 01:41:36 GMT
>Subject: RE: Global.asax not checking the GAC

>Hi Nick,
>
[quoted text clipped - 30 lines]
>
>====>

Rate this thread:







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.