473,779 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1205
Hi Bob,

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

<configuratio n>
<runtime>
<assemblyBindin g>

section and specifying all the references there:
"Bob" <bo*******@yaho o.com> wrote in message
news:ub******** ********@TK2MSF TNGP15.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
963
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 not match the assembly reference" I've searched the net for this error and I've read that this should be due to a version change of the referenced assembly (and thus it is suggested
4
2884
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 on the disk. Each plugin defines a class which implements an interface known to the app. The main app loads the plugin with Assembly.LoadFrom and then uses Assembly.GetTypes() and Type.FindInterface to find the concrete types in the plugin that...
3
2547
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 -- Referenced assembly 'xxxxx' does not have a strong name". The referenced assembly is a .NET assembly that does not have a strong name. It there a way to strong name it? I DO NOT have the source code for the referenced third party assembly.
3
2578
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 body) of the method? Does this occur when "Main" is build or does it happen when main is loaded and Jitted? Also is the linking achieved by the full method name( this is what is seen in the IL generated by ILDASM : e.g : call
4
4496
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: c:\pd\NET\Examples\AssRef\AssRef\bin\Debug\Mine.dll Referenced class 'Mine.Fred' has base class or interface 'Theirs.Flintstone' defined in an assembly that is not referenced. You must add a reference to assembly 'Theirs'.
2
2308
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 business layer) I created a class which inherits from a base class in the first assembly....so far so good. If I create a third assembly (my UI layer) and add reference in it to the business layer and I access a public variable in the business...
1
1226
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 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...
14
2669
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 reference the same BLL in a separate assembly, and I have all three projects in a single solution file for development, with the two UI's each having a project reference to the BLL assembly. I created a Setup and Deployment package for the winform app...
2
6927
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, PublicKeyToken=null' could not be found Saving assembly to Windows temp directory for referencing only creates huge amout of temporary
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10074
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5373
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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 we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.