Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Adding a control library to the GAC and using it... some problems .


Message #1 by "Oliver, Wells" <WOliver@l...> on Fri, 27 Sep 2002 11:05:23 -0700
Created a new web control library, added a Web Control item, called it
"Header.cs":
namespace intranetUI
{
	public class Header : System.Web.UI.Control
	{
		protected override void Render(HtmlTextWriter output)
		{
			output.Write("This is the header.");
		}
	}
}

That's all.

Then compiled a DLL, added it to the GAC via MMC, and it's listed as
installed, "intranetUI", under Assembly Cache. Locale is neutral.

Fired up a new ASP.Net Web App project under http://localhost/TestApp and
put this Register tag:
<%@ Register TagPrefix="intranet" Namespace="intranetUI"
Assembly="intranetUI" %>

Didn't work: Parser Error Message: File or assembly name intranetUI, or one
of its dependencies, was not found.

I also tried:
<%@ Register TagPrefix="intranet" Namespace="intranetUI" Assembly="Header"
%> (the CS file is called Header, and the class is Header, made sense to
me). Same error.

Any tips here? Pulling hairs! Thanks :)

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com


  Return to Index