PDA

Click to See Complete Forum and Search --> : Referencing another assembly [RESOLVED]


Edneeis
Jan 20th, 2004, 04:46 PM
In one project I have everytime I reference another assembly, which I put in the bin folder, I get a Parser Error on the only line in the Global.asax file:
<%@ Application Codebehind="Global.asax.vb" Inherits="isharecode.web.Global" %>

http://www.isharecode.com

I tried strong naming it and adding it to the GAC, didn't help. Then I read an MS KB article about not putting strong named assemblies in the bin folder or it causes trouble with some other things. So I moved it, but that didn't help so I went back to the non-strong named bit. The wierd thing is that in another web application I have referenced and am using 2 external assemblies and there is no trouble there. I can't figure out whats different about this one. The one that works is on a different server but they are both the same OS and setup.

In a previous post hellswraith mentioned something similiar which leads me to believe I'm not the only one with this problem.
http://www.vbforums.com/showthread.php?s=&threadid=273815

Any advice?

Edneeis
Jan 20th, 2004, 10:26 PM
Ok I figured it out. If the referenced assembly shares part of the same namespace with the namespace of the web application then it screws up. For instance the namespace for my web app was IShareCode.Web and the root namespace of the assembly was IShareCode.Framework and it didn't like that. If I changed one of them not to start with IShareCode then it worked fine. I think I'm going to report this to MS as a bug.