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 / December 2007

Tip: Looking for answers? Try searching our database.

Can't load 'namespace.type'. File or executable not found?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy B - 13 Dec 2007 18:42 GMT
I have 2 web applications: ParentApp and ChildApp. The ChildApp root folder
is setup like this: ParentApp/ChildApp. I set the output folder of the
ChildApp under the build section in VS2005 properties for the project to the
ParentApp/bin folder. Everything builds ok, but when I run a page in the
ChildApp, I get something like: Can't load 'namespace.type'. The file
ChildApp could not be found. Is there any way to fix something like this?
bruce barker - 13 Dec 2007 18:55 GMT
asp.net applications only look in /bin and the windows folder for dlls.
change the build to output to the correct bin

if the parent needs a reference to the child, then add a ref, which will
copy the child bin to the parent bin.

-- bruce (sqlwork.com)

> I have 2 web applications: ParentApp and ChildApp. The ChildApp root folder
> is setup like this: ParentApp/ChildApp. I set the output folder of the
> ChildApp under the build section in VS2005 properties for the project to the
> ParentApp/bin folder. Everything builds ok, but when I run a page in the
> ChildApp, I get something like: Can't load 'namespace.type'. The file
> ChildApp could not be found. Is there any way to fix something like this?
Patrice - 13 Dec 2007 18:59 GMT
Looks expected to me. The destination for the compiled code for ChildApp is
the parent bin folder... So when you run the ChildApp, it can't find its own
code as this is located somewhere else than in its own bin folder...

Though you could change the web.config file to change the default bin
folders or just let the ChildApp code goes in the ChildApp bin folder, your
best bet could be to explain what you are trying to do in case someone would
have a better way to achieve your goal (or are you trying to create a class
library ??)

--
Patrice

>I have 2 web applications: ParentApp and ChildApp. The ChildApp root folder
>is setup like this: ParentApp/ChildApp. I set the output folder of the
>ChildApp under the build section in VS2005 properties for the project to
>the ParentApp/bin folder. Everything builds ok, but when I run a page in
>the ChildApp, I get something like: Can't load 'namespace.type'. The file
>ChildApp could not be found. Is there any way to fix something like this?
Andy B - 13 Dec 2007 21:18 GMT
I am trying to put all of the dll/code files in the "whole" application in
the parent bin folder because it would reduce the size of the application by
not having bin folders for each application. The other thing is, if I have
ChildApp.dll in ChildApp/bin, but ParentApp needs to make a reference to it,
the whole application now has 2 copies of ChildApp.dll in it (this is what I
am trying to avoid for the most part). Any ideas how to do this? I would
rather not use the GAC since I have no access to it on the live server.
> Looks expected to me. The destination for the compiled code for ChildApp
> is the parent bin folder... So when you run the ChildApp, it can't find
[quoted text clipped - 17 lines]
>>file ChildApp could not be found. Is there any way to fix something like
>>this?
Patrice - 14 Dec 2007 08:18 GMT
And the size of this file ?

Try :
http://www.codinghorror.com/blog/archives/000131.html
The probing tag should allow to specify another directory in whihc case you
could perhaps left the dll file at its place and just ask the parent
application to saerach also the other bin folder for assemblies.

My personal preference would be likely rather to create a class library that
would contain ony the common code reducing the file size and having them at
both places.

Another option if those two sites are closely linked one with the other
would be to handle them as a single site with two "subsites"...
--
Patrice

>I am trying to put all of the dll/code files in the "whole" application in
>the parent bin folder because it would reduce the size of the application
[quoted text clipped - 25 lines]
>>>file ChildApp could not be found. Is there any way to fix something like
>>>this?

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.