473,382 Members | 1,357 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,382 software developers and data experts.

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 1354
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*******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.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
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...
1
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...
4
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: ...
7
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,...
3
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...
2
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...
6
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...
5
by: volvox | last post by:
hi, is it possible to access protected mode registers (EAX , EBX,ECX...) via assembly in C .
2
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...
2
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",...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.