473,406 Members | 2,371 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,406 software developers and data experts.

Could not load type 'xxxxxx.yyyyy' - A solution

This is not a generic solution but one that worked for me due to the
way I work and create applications under my localhost IIS.

Problem:
* I created a new server extension web under my localhost in IIS
management console called 'snippets'.
* Connected to it using VS.NET and connected to it using 'New Project
in Existing Folder'.
* Added a webform and built the solution.
* Browsed the webform in my browser and got the error:

Parser Error Message: Could not load type 'snippets.WebForm1'

It seems it couldn't find the snippets namespace assembly.

Solution to the problem:
* Copy the dll from where it was built ('localhost/snippets/bin') to a
bin folder of the root web ('localhost/bin')

That's it. The .NET framework does not look in the applications bin
folder for the assembly dll!

My Questions:
Does the framework not recognise the application is a subweb?
Is there any way to add a 'path' to the Frameworks assembly search
criteria?

I really don't want to be copying files from subwebs to the root apps
bin folder everytime I rebuild a solution. Any suggestions?

Many Thanks, in advance..

Paul Davis
Nov 17 '05 #1
0 1891

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

Similar topics

1
by: Ahmadf | last post by:
Hi I need to load a DB2 (MVS mainframe V6) partition table - partition by partition. Load is a standard IBM load (not BMC). How do I edit my loadcards (standard IBM loadcards) to specify the...
1
by: Blue Frog | last post by:
Hey, Have a weird problem - been looking for a solution for 2 days solid now. I am developing my first asp.net site and everything was going fine while I developed on my XP laptop but I copied...
8
by: Sharon | last post by:
Hi to all. My IIS has kicked the bucket. When i try to load an aspx page i get this: Server Application Error The server has encountered an error while loading an application during the...
5
by: Asa Monsey | last post by:
I am having a problem that the page load event fires twice in reponse to an autopostback. The first time, the IsPostBack property is true, and the second time it it false. This is causing many...
1
by: heromull | last post by:
Here's what we did to resolve the Could not load type 'Namespace.Global' issue... the setup: asp.net app, iis 6, home directory is a share located on another computer. our solution: ymmv...
5
by: Alain | last post by:
Hi, I am trying to figure out why I get the following error when I try to send a mail from an ASP.NET (1.1) application. When I use the same code from a Windows exe then the code works...
0
by: yashgt | last post by:
I have a web application which has two projects in one solution. The proper build order and dependencies have been set. The solution compiles and builds properly. But when I invoke any URL from the...
2
by: AB | last post by:
Hi, I have this error "could not load type *****", and I don't know why. I have tryed the microsoft solution of rebuilding (http:// support.microsoft.com/kb/306155) but it doesn't work. If I try...
4
hemantbasva
by: hemantbasva | last post by:
We have designed an aspx page having five ajax tab in it. the data of first four are designed on page whereas for the fifth tab it renders a user control named MYDOMAIN. in the tab container's even...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.