473,386 Members | 1,764 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.

Could not load type error

Hi,

I have created sub directories for my application, however, when I
try to access the aspx files in the subdirectory, I get the
following error : "Could Not Load A1.A2" where A1 is the name of my
project and A2 is the name of my subdirectory. It looks like the
program is looking for the bin folder in the subdirectory, not the
root directory; I know this because if I copy the bin directory from
the root directory to the subdirectory, it works fine. Is there any
way to tell IIS to use the root directory bin folder instead of
looking in the subdirectory??

Cheers
Sumit

Nov 18 '05 #1
1 1393
Sumit:

I believe this could happen if you created a new application virtual
directory instead of a vanilla sub directory. Go into the IIS MMC and
check the virtual directory settings for the sub directory. Under
Application Settings, if there is a "Remove" button, click remove.
This does not delete the directory - just removes its status as an
"application". ASP.NET always looks in the bin directory for the
application to find assemblies.

HTH,

--
Scott
http://www.OdeToCode.com

On Fri, 21 May 2004 15:08:51 +0530, "Sumit Thomas"
<su***@sherston-in.com> wrote:
Hi,

I have created sub directories for my application, however, when I
try to access the aspx files in the subdirectory, I get the
following error : "Could Not Load A1.A2" where A1 is the name of my
project and A2 is the name of my subdirectory. It looks like the
program is looking for the bin folder in the subdirectory, not the
root directory; I know this because if I copy the bin directory from
the root directory to the subdirectory, it works fine. Is there any
way to tell IIS to use the root directory bin folder instead of
looking in the subdirectory??

Cheers
Sumit


Nov 18 '05 #2

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

Similar topics

7
by: darrel | last post by:
What does that MEAN? I'm working on a VS project with another person. We keep our DLLs and files in sync with each other. Last week I hit a snag where i kept getting the 'could not load type'...
5
by: Paul Smith | last post by:
I am hoping this is a simple problem for someone. We have two development servers, DEVNET (a web server) and DEVSQL (a DB / File Server). We have recently moved all of our .NET source code from...
1
by: sling blade | last post by:
Hi, For some reason asp.net will not let me publish a new Webpage. I am able to create a new page however when I set it as the start page and hit run, I recieve "Could not load type" error...
1
by: JD | last post by:
Hello Everyone, I am working on a asp.net application and I have encountered an error that is confusing the heck out of me, this is the structure of the website /root /root/admin If I hit...
0
by: Curtiss | last post by:
I receive "could not load type" error message when trying to load aspx page. The DLL is built and is located in the correct bin directory. The type name in the "inherits" attribute matches the...
1
by: Jim | last post by:
Good Morning, I'm hoping someone can assist me. I have a web application, the application code and web pages are sitting on an application server. I have created a virtual directory on the web...
10
by: werdna.sivad | last post by:
I built an ASP site using the new Visual Studio 2005. The site uses a simple master page. On my local machine everything runs just fine. When I publish the site and FTP it to the server, it...
0
by: LU | last post by:
Using vs.net 2003 I have a website CPE. I have a virtual directory under this Projects (works fine) I created a new solution CPE/CENA/Needs and changed the directory into a virtual directory. I...
1
by: Kirk | last post by:
I followed the procedure at this site (http://www.devx.com/asp/Article/ 29256/0/page/1) to create a custom membership provider on a ASP.NET Web Site. However, when I try this same method on a...
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.