473,385 Members | 1,311 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,385 software developers and data experts.

Could not load type


Hi,

I have built an application using ASP.NET. I can compile and run this
application fine on a development machine, and on another development
machine.

I tried to then run the same application on yet another development machine
(were trying to get a new revision control system up and running on this
project) but the application always reports 'Could not load type' when we
try and run a page.

The problem can be solved by modifying the codebehind and re-building, but
that would take a very long time!. Why does this happen?

I've read about Windows XP caching files at compile time, could this be
something to do with it? I know for sure that there is absolutely nothing
wrong with the code, and I'll be damned if anyone can prove otherwise - it
works fine... if I add a single comment char to the codebehind!

Below is the output that I get when I run the application for the first time
on a new development machine (the 'default' page).

Can anyone shed any light on this - it's most frustrating!

Neil Ramsbottom
Server Error in '/Capture' Application.
----------------------------------------------------------------------------
----

Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type
'Cencion.Disney2003.Capture.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="Cencion.Disney2003.Capture.Global" %>

Source File:
N:\Development\Projects\Cencion\Disney\Disney2003\ Capture\global.asax
Line: 1
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Nov 17 '05 #1
4 67167

I'm at the end of my tether with this.We are trying to develop a large
application, but we are constantly having to spend time rebuilding
individual files because of this damn stupid bug. If time were not a factor,
we would be switching this project to Java.

In light of the apparent lack of assistance that Microsoft appear to want to
give regarding this, I will be considering Java over .NET for future
projects.

I'm not normally one to have a pop at Microsoft, but this really is taking
the p**s. The one KB article on it (that I could fine) is no help
whatsoever.
Neil Ramsbottom
"Neil Ramsbottom" <ne*************@cencion.net> wrote in message
news:eX**************@TK2MSFTNGP12.phx.gbl...

Hi,

I have built an application using ASP.NET. I can compile and run this
application fine on a development machine, and on another development
machine.

I tried to then run the same application on yet another development machine (were trying to get a new revision control system up and running on this
project) but the application always reports 'Could not load type' when we
try and run a page.

The problem can be solved by modifying the codebehind and re-building, but
that would take a very long time!. Why does this happen?

I've read about Windows XP caching files at compile time, could this be
something to do with it? I know for sure that there is absolutely nothing
wrong with the code, and I'll be damned if anyone can prove otherwise - it
works fine... if I add a single comment char to the codebehind!

Below is the output that I get when I run the application for the first time on a new development machine (the 'default' page).

Can anyone shed any light on this - it's most frustrating!

Neil Ramsbottom
Server Error in '/Capture' Application.
-------------------------------------------------------------------------- -- ----

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error
details and modify your source file appropriately.

Parser Error Message: Could not load type
'Cencion.Disney2003.Capture.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="Cencion.Disney2003.Capture.Global" %>

Source File:
N:\Development\Projects\Cencion\Disney\Disney2003\ Capture\global.asax
Line: 1
-------------------------------------------------------------------------- -- ----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Nov 17 '05 #2
Neil hi,

I'm willing to help, if you want.

When you got this error if you create new file in the bin directory does
it stop the error message. Can you send me the code of the global class?
Until now every time that I saw that error it was related to the code.

Cheer up, I participate in very large and complex .net projects and
although there where problems we manage to solve them all.

If you want e-mail me to na***@dao2com.com.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
bcheng
1
Neil,
The problem is that the ASP.NET version for the web page in IIS properties
is not compatible with your application. If you use VS.NET 2003, then
ASP.NET framework needs to be 1.1 or above. For VS.NET 2005, ASP.NET
needs to be 2.0. So just make sure that your server machine has ASP.NET
2.0. If not, download from here
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en
and set the ASP.NET version to 2.0 for your web page in IIS.
Hope that helps,
Bill
Jul 10 '06 #4
ssing
1
bcheng,
You are right on the mark with your diagnosis. I had the same issue and after reading your post, I corrected the error.

I don't know why the conversion of my Web service project from 1.1 to 2.0 did not set this property correctly. It must be a "feature".

Thanks!
Jul 18 '06 #5

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

Similar topics

0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
4
by: Bogosian | last post by:
I am working on an asp.net project.There is a subdir called OSearch,with a few aspx pages in it which as all other pages on the website use some controls.These controls are stored in a another...
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...
1
by: Chriss | 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: z f | last post by:
hi, I have a vb.net asp.net web app. suddenly after working for long time, I get this error message in my app: Could not load type when trying to show a web form. what can be the error? the...
0
by: qiang | last post by:
Hi everyone, Could you please take a look at an exception for ASP.NET application? My ASP.NET application is using Infragistics WebChart control. I encounter an exception below when...
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: 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...
8
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
3
by: =?Utf-8?B?SGVyYg==?= | last post by:
I've developed an ASP.NET website that runs fine on my local WinXP IIS and on my server's IIS, both are IIS6.0 The site uses a master page that has the following declaration: <%@ Master...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.