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

Referencing assembly from GAC using @assembly fails

I have strong named an assembly and installed it into the GAC. I have
copied the same assembly to a local folder and made reference to it
and set 'Copy Local' to false in the VS IDE, so that my code compiles.

Then I put the @assembly directive in the html code like this:
<%@ Assembly Name="MPCommon"%>

When I try to run the page, I get a parser error saying:

"File or assembly name MPCommon, or one of its dependencies, was not
found."

Why is this occurring and how can this be fixed?
Nov 18 '05 #1
1 1283
I finally figured this out.

I took the '@ assembly' reference out from the .aspx page and put it
into the web.config page. However, it threw an error and so I put it
into machine.config and it worked. However, when I would change the
assembly it didn't download the right one to the calling application.
Later, I found out that the aspnet_wp.exe (worker process) would have
to be killed and then reloaded to serve up the right one from the GAC.
On a production server I simply cannot afford to do this as session
state would be lost and I'd get fired. So, I tinkered again with
web.config and discovered that I didn't place the '<add assembly...'
reference in the right spot on the page, under '<compilation...>'. Now
it works fine and downloads changes.
Nov 18 '05 #2

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

Similar topics

2
by: vinoth | last post by:
Hi, I want to create an Instance of Class using Assembly.CreateInstance method. I have loaded my assmbly Assembly exeAssmb = Assembly.LoadWithPartialName"CommonStructures"); //Assembly...
2
by: Alexander | last post by:
I use same assembly in Application and in Web. How can i determine - assembly using in Application or in Web? (Some feautures i cant use in Web)
3
by: D Witherspoon | last post by:
I'd like to reference a compiled .NET dll assembly using a string in my application. In VB 6.0 this could be done similariliy using CreateObject(sString) instead of referencing the object type...
0
by: eheinsen | last post by:
I've converted a multi-project application from VS2003 to VS2005. The solution has a WinForm project and a WebForm project. Both projects reference SQL Server Reporting Services (SSRS). The Winform...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
3
by: venomleviathan | last post by:
I have a problem in comparing string in assembly using nasm.... Here is the example: Input: String1 : gtaghgrjgnbkjhugtajghygta String2 : gta Output: There are 3 "gta" string in String1, in...
3
by: timnels | last post by:
I would like to create a routine that loads an assembly only knowing it's name (like abc.dll) which I know is in the same directory as the executing assembly. Do all methods require an absolute...
3
by: Peter | last post by:
Hi I can create types from dynamic loaaded assemblies (Assembly.Load) with Assembly.GetTyp( <typename) - OK I need a reference to the assembly (just Type.GetType() do not work ) now my...
2
by: =?Utf-8?B?QWJoaQ==?= | last post by:
I am trying to read c# sytle comment (///) from assembly using reflection? Is it possible to do so.
2
by: kiranrajmane9859 | last post by:
I have three dlls ProjBL.dll , ProjDL.dll and ProjMC.dll. ProjBL.dll is Business object dll ProjDL.dll is Data Access layer method dll ProjMC.dll is Master Class dll contains Properties ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.