473,387 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

assembly in GAC not referenced in scripted code

Bob
I have a common assembly installed into the GAC and is referenced by most of
my ASP.NET projects. This is fine for compiled web applications as the
reference to the assembly is added in the Visual Studio projects. I had a
need recently to create a couple of scripted ASPX pages (that is, there's no
code behind file), and unless I put the assembly in the application's bin
folder, it results in a namespace cannot be found error where the code uses
the classes in this assembly. What do I need to do in order for the
scripted pages to recognize my assembly in the GAC without putting it in the
local bin folder? It apparently recognizes all the .NET Framework
namespaces with those assemblies in the local bin folder.

Thanks
Bob
Jan 2 '06 #1
1 1190
Hi Bob,

In the web.config file, you can try putting the

<configuration>
<runtime>
<assemblyBinding>

section and specifying all the references there:
"Bob" <bo*******@yahoo.com> wrote in message
news:ub****************@TK2MSFTNGP15.phx.gbl...
I have a common assembly installed into the GAC and is referenced by most
of
my ASP.NET projects. This is fine for compiled web applications as the
reference to the assembly is added in the Visual Studio projects. I had a
need recently to create a couple of scripted ASPX pages (that is, there's
no
code behind file), and unless I put the assembly in the application's bin
folder, it results in a namespace cannot be found error where the code
uses
the classes in this assembly. What do I need to do in order for the
scripted pages to recognize my assembly in the GAC without putting it in
the
local bin folder? It apparently recognizes all the .NET Framework
namespaces with those assemblies in the local bin folder.

Thanks
Bob

Jan 6 '06 #2

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

Similar topics

0
by: Bob Rock | last post by:
Hello, I'm getting the following error when I update a referenced assembly, but not recompile my client application project: "The located assembly's manifest definition with name 'xxxxxx' does...
4
by: Arnaud Debaene | last post by:
Hello group. I have an app which can load "plugins" assemblies that are described in the registry (each registry entry gives the full path to the plugin ..dll file). The plugins may be anywhere...
3
by: Tony Jones | last post by:
I have a third party assembly that I need to strong name because the C# project I'm referencing it in will be strong named. Every time I compile my project I'm getting "Assembly generation failed...
3
by: Atul Godbole | last post by:
Suppose an assembly "Main" is using class "A" from another Assembly "Dep" as follows : A a = new A(); a.MethodOne(); At what time is the call to MethodOne linked to the actual MSIL (method...
4
by: .pd. | last post by:
Hello, I have a control derived from a 3rd party control. My control sits in a class library. I have an app referencing my class library. When I compile the app, I'm told: ...
2
by: Brad | last post by:
I have one of those seemingly simple questions that evades/confuses me. I've created an assembly with bass classes (classes meant to be inherited in other assemblys). In a secondary assembly (my...
1
by: Bob | last post by:
I have a common assembly installed into the GAC and is referenced by most of my ASP.NET projects. This is fine for compiled web applications as the reference to the assembly is added in the Visual...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
2
by: Andrus | last post by:
I need compile in-memory assembly which references to other in-memory assembly. Compiling second assembly fails with error Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.