|
-
Jan 20th, 2004, 05:46 PM
#1
Referencing another assembly [RESOLVED]
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.p...hreadid=273815
Any advice?
Last edited by Edneeis; Jan 21st, 2004 at 01:52 PM.
-
Jan 20th, 2004, 11:26 PM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|