Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Unable to find dll

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
T McDonald - 14 Mar 2008 16:44 GMT
I have a question that is probably simple to answer for many of you, but just
leaves me baffled.

If I publish a ASP.NET website to my webserver in a new directory, but don't
create a virtual directory for it - I simply attempt to access it from the
default web direcotry say www.myweb.net/myapp/Default.aspx I always get an
error indicating that I need to complie: "Could not load the assembly
'App_Web_3um03wt4'. Make sure that it is compiled before accessing the page."

If I create a virtual directory OR drop the contents of the application to
my default www driectory, everything works as per expected.

Can anyone enlighten me? Thank you.
Rick Strahl - 15 Mar 2008 21:00 GMT
ASP.NET dynamically compiles Web sites, so any source files in virtual
folder are automatically compiled and stored in a temp path.

The most important thing to realize is that ASP.NET is scoped to a virtual
directory (or root directory) and you have to ensure that somewhere along
the way up to the root there's a virtual directory configured in IIS. That
virtual - and its Bin directory and web.config - determine where and how
files are stored.

More importantly any code in your APP_CODE folder needs to reside below the
virtual directory. So if you just copied your files without creating a
virtual directory for the files your APP_CODE folder is not found - hence
the error you're seeing. You'll either need to make your directory a virtual
or move any code you have in APP_CODE (and any other of hte special folders
like APP_THEMES/APP_DATA) up to the virtual directory so the files can be
found.

Hope this helps,

+++ Rick ---

---
Rick Strahl
West Wind Technologies
www.west-wind.com/weblog

>I have a question that is probably simple to answer for many of you, but
>just
[quoted text clipped - 12 lines]
>
> Can anyone enlighten me? Thank you.
T McDonald - 17 Mar 2008 13:26 GMT
Thank you. It doesn't entirely make sense to me, but it certainly explains
it. Once I moved the bin directory from the directory below the virtual, back
up to the virtual it indeed worked as you suggested.

So given that, if I have multiple "utilities" on one server, I can't merely
drop them into folders below the defaul virtual directory and have them use
each of their own web.configs? I would need to create virtual directory for
each distinct web.confg?

Thanks for the info.

> ASP.NET dynamically compiles Web sites, so any source files in virtual
> folder are automatically compiled and stored in a temp path.
[quoted text clipped - 38 lines]
> >
> > Can anyone enlighten me? Thank you.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.