473,386 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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?

Dec 13 '07 #1
4 1521
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)
"Andy B" wrote:
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?

Dec 13 '07 #2
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

"Andy B" <a_*****@sbcglobal.neta écrit dans le message de news:
%2****************@TK2MSFTNGP02.phx.gbl...
>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?

Dec 13 '07 #3
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.
"Patrice" <http://www.chez.com/scribe/wrote in message
news:e4**************@TK2MSFTNGP03.phx.gbl...
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

"Andy B" <a_*****@sbcglobal.neta écrit dans le message de news:
%2****************@TK2MSFTNGP02.phx.gbl...
>>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?


Dec 13 '07 #4
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

"Andy B" <a_*****@sbcglobal.neta écrit dans le message de news:
eP*************@TK2MSFTNGP06.phx.gbl...
>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.
"Patrice" <http://www.chez.com/scribe/wrote in message
news:e4**************@TK2MSFTNGP03.phx.gbl...
>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

"Andy B" <a_*****@sbcglobal.neta écrit dans le message de news:
%2****************@TK2MSFTNGP02.phx.gbl...
>>>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?



Dec 14 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
1
by: Benny Raymond | last post by:
I'm working on adding plugin capability to my application and would like to do it something like this: System.Type myType = System.Type.GetType( "namespace.classname, assembly_name" ); object...
13
by: bonk | last post by:
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. All the managed stuff shall be "wrapped out of sight". So that I would be able to...
1
by: Frank S | last post by:
I'm trying to write a custom handler for .rtf files on our website. Using the book "Essential ASP.Net C#" as a guide, I wrote the following and compiled to a dll (assembly named "rtf_cl": ...
1
by: Loane Sharp | last post by:
Hi there I have a Windows Forms application that contacts the server and retrieves particular files, if they exist. To the best of my knowledge, the .exe assembly is properly compiled, strongly...
2
by: Saqib Ali | last post by:
I trying to build a asp.net development env on my XP laptop to off-load the development from our Win2k3 IIS development server. I installed, ..net 2.0 SDK IIS for XP configured asp for net ...
5
by: Alias | last post by:
Hi - I'm trying to implement a custom RoleProvider based on the SqlRoleProvider. I keep receiving a an error that it can't load type 'MyRoleTest.MyRoleProvider' when trying to load my...
2
by: tshad | last post by:
I am using vb.net VS 2003 and can't seem to see my namespace. I have 2 files (form1.vb and DBTypes.vb). My DBTypes.vb is: ************************************************ ' Create to new...
11
by: =?Utf-8?B?UGFycm90?= | last post by:
I get an error when trying to add a reference to a DLL program from a Realia COBOL program that is 32 bit. The error message says "Please make sure the file is accessible and that it is a valid...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.