473,471 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.NET application and GAC

What is the deal with ASP.NET and signed assemblies? I have experienced
some weird behavior of my web application where it looked like my asp.net
application wasn't even looking into GAC. Then, I saw a brief mention on
the web "ASP.NET doesn't pick up signed assesmblies from GAC".

Does anyone who knows can give more explanation?

Thanks,
Amelyan
Nov 19 '05 #1
4 1672
ASP.NET picks up signed assemblies just fine, at least for me it does.

Are you dynamically loading the assembly? If you are, make sure that you're
using the fully qualified type i.e. Version, Culture and PublicKeyToken.

You'll also want to include this information (in the section element in the
configSections node) if the GAC'd assembly has a class that implements
IConfigurationSectionHandler.

"Amelyan" wrote:
What is the deal with ASP.NET and signed assemblies? I have experienced
some weird behavior of my web application where it looked like my asp.net
application wasn't even looking into GAC. Then, I saw a brief mention on
the web "ASP.NET doesn't pick up signed assesmblies from GAC".

Does anyone who knows can give more explanation?

Thanks,
Amelyan

Nov 19 '05 #2
I statically link the assembly to my project and it doesn't implement
IConfigurationSectionHandler. Usually, GAC is the first place where .net
application searches for its assemblies. However, this doesn't seem to be
the case with ASP.NET applications.

Do you know why?

Thanks,
Amelyan

"Brad Quinn" <Br*******@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
ASP.NET picks up signed assemblies just fine, at least for me it does.

Are you dynamically loading the assembly? If you are, make sure that
you're
using the fully qualified type i.e. Version, Culture and PublicKeyToken.

You'll also want to include this information (in the section element in
the
configSections node) if the GAC'd assembly has a class that implements
IConfigurationSectionHandler.

"Amelyan" wrote:
What is the deal with ASP.NET and signed assemblies? I have experienced
some weird behavior of my web application where it looked like my asp.net
application wasn't even looking into GAC. Then, I saw a brief mention on
the web "ASP.NET doesn't pick up signed assesmblies from GAC".

Does anyone who knows can give more explanation?

Thanks,
Amelyan

Nov 19 '05 #3
I'm at a loss. Is this a problem when deploying the application?

You have gacutil'd the assemblies, right? I sometimes overlook this when
deploying new GAC'd assemblies.

Good luck.

"Amelyan" wrote:
I statically link the assembly to my project and it doesn't implement
IConfigurationSectionHandler. Usually, GAC is the first place where .net
application searches for its assemblies. However, this doesn't seem to be
the case with ASP.NET applications.

Do you know why?

Thanks,
Amelyan

"Brad Quinn" <Br*******@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
ASP.NET picks up signed assemblies just fine, at least for me it does.

Are you dynamically loading the assembly? If you are, make sure that
you're
using the fully qualified type i.e. Version, Culture and PublicKeyToken.

You'll also want to include this information (in the section element in
the
configSections node) if the GAC'd assembly has a class that implements
IConfigurationSectionHandler.

"Amelyan" wrote:
What is the deal with ASP.NET and signed assemblies? I have experienced
some weird behavior of my web application where it looked like my asp.net
application wasn't even looking into GAC. Then, I saw a brief mention on
the web "ASP.NET doesn't pick up signed assesmblies from GAC".

Does anyone who knows can give more explanation?

Thanks,
Amelyan


Nov 19 '05 #4
No, this is not when I deploy the application.

1) I rebuild my strongly signed assemblies.
a) I have a post build step that automatically "gacutils" them after
every build. I verified that it works.
2) I rebuild my WebApplication and run it from Visual Studio.

However, VisualStudio picks up dlls, not from GAC, but from some special
directory C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
Files\ where it seems to cache them. The error I get, lists the version of
assembly that it is trying to load, and that is the version that resides
only in that Temporary ASP.NET Files folder, and nowhere else.

Moreover, sometimes, when I run my WebApplication from VisualStudio it picks
up WebApplication.dll, not from my project's bin, but from that same
temporary Asp.Net Files folder.

Amelyan
"Brad Quinn" <Br*******@discussions.microsoft.com> wrote in message
news:2E**********************************@microsof t.com...
I'm at a loss. Is this a problem when deploying the application?

You have gacutil'd the assemblies, right? I sometimes overlook this when
deploying new GAC'd assemblies.

Good luck.

"Amelyan" wrote:
I statically link the assembly to my project and it doesn't implement
IConfigurationSectionHandler. Usually, GAC is the first place where .net
application searches for its assemblies. However, this doesn't seem to
be
the case with ASP.NET applications.

Do you know why?

Thanks,
Amelyan

"Brad Quinn" <Br*******@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
> ASP.NET picks up signed assemblies just fine, at least for me it does.
>
> Are you dynamically loading the assembly? If you are, make sure that
> you're
> using the fully qualified type i.e. Version, Culture and
> PublicKeyToken.
>
> You'll also want to include this information (in the section element in
> the
> configSections node) if the GAC'd assembly has a class that implements
> IConfigurationSectionHandler.
>
> "Amelyan" wrote:
>
>> What is the deal with ASP.NET and signed assemblies? I have
>> experienced
>> some weird behavior of my web application where it looked like my
>> asp.net
>> application wasn't even looking into GAC. Then, I saw a brief mention
>> on
>> the web "ASP.NET doesn't pick up signed assesmblies from GAC".
>>
>> Does anyone who knows can give more explanation?
>>
>> Thanks,
>> Amelyan
>>
>>
>>


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
3
by: asadikhan | last post by:
Hi, I have written a windows application with a GUI (let's call it MENU). I own the code for this application and have access to it. We have another application that is a third-part windows...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.