Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Assembly Registration - C# Beginner
|
Posted: Mar 25, 2004 11:14 PM
|
|
Oh, this is ASP.NET. I was thinking .NET application programming. I haven't done any ASP.NET programming. My web server runs Linux and supports cgi/Perl or PHP, so I've started learning the latter. Beacuse of this I don't have much incentive to learn (or opportunity to practice) ASP.NET, other than for fun.
Nevertheless, just in case someone who really knows what their talking about doesn't post an answer, I'll offer some ideas: If the assembly is in the same directory as the asp page, I think you can simply use imports (not "inherits", as far as I know) and I guess the web server does reflection on every file in that directory to find if the namespace you are after is in one of the assemblies there. It might also automatically look in the GAC, if you've strong named your assembly and installed it there (I'm not sure about this though). Additionally, if you want to have a reference to some assembly that is not in that directory, you need to edit your web.config (I think -- whatever the config file is called, which you probably know better than I) and add a line something like this:<add assembly="d:\path\to\the\assembly\TheAssembly.dll"/> I've probably not got these details right (what would be the odds of that?), but maybe this will help point in the direction of the solution.
|
|