Reply to topic
Missing an Assembly Reference
KyleGobel


Joined: 02 Jun 2006
Posts: 8
Reply with quote
How do I add an Assembly Reference?

I can do it fine in Visual Web Developer Express by simply going to 'Website' on the menu bar ...and then ...'Add Reference'..and browse to the assembly...but how do I do this when it's on the web?

I am getting the famous

Code:

The type or namespace name 'FooBar' could not be found (are you missing a using directive or an assembly reference?)


Thanks,
Kyle
jraybould


Joined: 29 Apr 2006
Posts: 46
Reply with quote
You should be able to just upload the required dll into your bin folder on the site. Find out which dll is referenced when you 'Add Reference' and just upload it.
Hrmmm
KyleGobel


Joined: 02 Jun 2006
Posts: 8
Reply with quote
Thanks for the reply jraybould

It Just happened again,
Tried creating a whole new Project, added my reference (KLib.dll) and the using directive (using KLib.dll;) and it works great when I test it on my local machine. It creates the Bin Directory and everything for me. Then as soon as I copy the whole directory to the HMS.com webserver, it gives me that same error again...

Have any of you added your own Library in the form of a .dll, and then uploaded it? I'm not even sure what to try anymore....
App Directory
KyleGobel


Joined: 02 Jun 2006
Posts: 8
Reply with quote
It seems everything was cleared up once the Directory was made into an Application Directory (or IIS Virtual Directory...or what have you).

I'm wondering how you build an application with VS.net and get it to work without making an application directory, I know VS.net does this automatically, but that really sucks, I have another host right now, that had no idea what I was talking about when I told them that they needed to make my directory an Application directory....Really Upsetting...makes me want to stop using asp.net all together
Re: App Directory
MBMunday


Joined: 06 Apr 2004
Posts: 76
Location: Dallas/Fort Worth
Reply with quote
KyleGobel wrote:
I have another host right now, that had no idea what I was talking about when I told them that they needed to make my directory an Application directory....


I'm amazed that your other host didn't know what an "Application" directory was.............anyone who has worked directly with IIS before, particularly a web host provider, should know what a freagin application directory is and how to set it within IIS.

No knock on you.........so please don't take it the wrong way...

Regards,

MB
jraybould


Joined: 29 Apr 2006
Posts: 46
Reply with quote
You should be able to precompile it locally then just upload the bin folder along with all the .aspx files. In this scenario, the .NET framework doesn't need the source code (.aspx.vb or .aspx.cs) and will not need an application directory in which to compile. I've actually never done this myself, but it should work fine I think.
Missing an Assembly Reference
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic