473,769 Members | 5,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assembly directive not working

I wrote and deployed a control with the assembly name of GP to the GAC of
another dev box via drag and drop. a web page using this control has:
<%@ Register TagPrefix="cc1" Namespace="GP" Assembly="GP" %>

The docs and books I have say that this should be enough for the page to
find the assembly in the GAC at run time but it does not find it. I am
having to put a copy of my GP.dll in the ASP.NET application Bin directory
for it to work.

Why doesn't it find it in the GAC?
Thanks,
G
Nov 19 '05 #1
2 1379
Hi,
At least you have to add reference of that dll to ur application. The
simple example is of the assemblies, the .NET framework provides us. We have
these assemblies in GAC but yet we have to add their reference to our
application.
Assembly keeps the list of referenced assemblies. To add external
assembly to this list you have to add reference of that assembly to your
project and need to build it.
While deploying the assembly, you dont have to take care of location of
assembly.
CLR will load the assemblies refered by ur application from local directory,
if not found then from GAC.
"G Dean Blake" wrote:
I wrote and deployed a control with the assembly name of GP to the GAC of
another dev box via drag and drop. a web page using this control has:
<%@ Register TagPrefix="cc1" Namespace="GP" Assembly="GP" %>

The docs and books I have say that this should be enough for the page to
find the assembly in the GAC at run time but it does not find it. I am
having to put a copy of my GP.dll in the ASP.NET application Bin directory
for it to work.

Why doesn't it find it in the GAC?
Thanks,
G

Nov 19 '05 #2
But.... GP is in the GAC and when I go to add a reference it won't let me
include GP in the GAC. I have to point it to the .dll file somewhere else
on the machine. How do I add the reference?

G
"i9arcanes" <i9*******@disc ussions.microso ft.com> wrote in message
news:9D******** *************** ***********@mic rosoft.com...
Hi,
At least you have to add reference of that dll to ur application. The
simple example is of the assemblies, the .NET framework provides us. We
have
these assemblies in GAC but yet we have to add their reference to our
application.
Assembly keeps the list of referenced assemblies. To add external
assembly to this list you have to add reference of that assembly to your
project and need to build it.
While deploying the assembly, you dont have to take care of location of
assembly.
CLR will load the assemblies refered by ur application from local
directory,
if not found then from GAC.
"G Dean Blake" wrote:
I wrote and deployed a control with the assembly name of GP to the GAC of
another dev box via drag and drop. a web page using this control has:
<%@ Register TagPrefix="cc1" Namespace="GP" Assembly="GP" %>

The docs and books I have say that this should be enough for the page to
find the assembly in the GAC at run time but it does not find it. I am
having to put a copy of my GP.dll in the ASP.NET application Bin
directory
for it to work.

Why doesn't it find it in the GAC?
Thanks,
G

Nov 19 '05 #3

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

Similar topics

3
1391
by: Bruce D | last post by:
Hi all. I'm working on debugging someone else's code. The .NET application is a mess...I can't open the project or solution files, so I've started over...creating new projects and such. I'm working on a form that gives me the following error when I try to build the project: The type or namespace name 'ogi' could not be found (are you missing a using directive or an assembly reference?) Here is the line it's having problems with:...
1
1641
by: Jim Heavey | last post by:
I am trying to figure out the @Assembly directive. I have an application which uses "codebehind" and only uses source code, so I am using the "src=" option of the @Page directive. So I have something that looks like the following: ASPX Files ASPX.VB Files Page1.aspx Page1.aspx.vb
4
6110
by: Bruce W. Roeser | last post by:
All, I'm reading a book by Charles Petzold (Programming VS.Net). Pretty good content but am confused about the difference. From the text: ---------------------------------------------------------------------------------------------------------------------------------------------------------- The @ Import Directive Next to @ Page, the directive that ASP.NET programmers use the most is @ Import. The @ Import directive is ASP.NET's...
7
1724
by: Steve Richter | last post by:
When I build a C# class and install it in the GAC, my code works as it should, my .aspx code finds the DLL and can run a static method: <%@ Assembly Name="AutoCoder, Culture=neutral, Version=1.0.1922.22245, PublicKeyToken=0a4067d718757385" %> <%@ Import Namespace="AutoCoder" %> Trace.Write( "AutoCoder", AutoCoder.Common.GetConnectionString( )) ; But I cant locate the assembly in its directory using the src= property.
3
5252
by: Jim | last post by:
Hi, I have an assembly and it's satellite in my GAC. I have referenced the DLLs in my project (from the same location where I added it to the GAC). CopyLocal is set false. When I run the project I get our old friend: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error
2
4064
by: Andy Fish | last post by:
Hi, I have a single-file aspx file (no codebehind). when I try to do this: <%@ Import Namespace="MySql.Data.MySqlClient" %> I get this: CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
6
3834
by: ewolfman | last post by:
Hi, I've read many posts in several news groups, but can't figure out how to publish my website. The specific error I'm getting (on the "successfully published website") is "Could not load the assembly 'App_Web_vxfyglsm'. Make sure that it is compiled before accessing the page". I checked - The assembly DOES exist in the target web folder.
5
2583
by: volvox | last post by:
hi, is it possible to access protected mode registers (EAX , EBX,ECX...) via assembly in C .
2
1680
by: Ebbe Kristensen | last post by:
Hi All I am trying to get access to an assembly in an ASPX project. I have added the assembly to GAC using gacutil and added an "%@Import namespace = "MyNamespace" %" to the .aspx file but this is seemingly not enough since the using directive in the .aspx.cs file gives the error: "The type or namespace name "MyNamespace" could not be found (are you missing a using directive or an assembly reference?)"
2
11767
by: Paul | last post by:
Hi, I have experience in Java and C++ but I am rather new to C# and just started learning it. I am using Visual C# 2005 Express Edition and I found that there is a file called "AssemblyInfo.cs", which is something like I attached below. Would anyone please let me know what is the purpose of this file? Or are there any equivalent stuff I can imagine in C++ or Java? Thanks a lot.
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9414
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,...
0
10197
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9977
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
8860
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
6661
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
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
5432
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2810
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.