473,569 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Could not load type 'psyche.admin.j ustdoit'.

Hi group,

I am getting the "could not load type" error and I'm not sure how to debug.
Obviously it's a namespace error but I don't see it. Below are code
snippets. Yes, the files sit in a subdirectory called "admin". The webpages
in the root directory, "psyche" do not have any errors. So it's something
with the name admin? But what? Yes, all of the webpages in the admin
directory have the same error with their respective webpages in the class
name.

The webpage admin/default.aspx shows this error
Parser Error Message: Could not load type 'psyche.admin.j ustdoit'.

The code behind (admin/default.aspx.cs ) has the following namespace
namespace psyche.admin
{
/// <summary>
/// Summary description for _default.
/// </summary>
public class justdoit : System.Web.UI.P age
{
private void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
}

Thanks for your help!

Andy
Nov 19 '05 #1
9 1984
Hi Andy,

The first thing I would do is make sure the compiled DLL in the BIN folder
does have that namespace and class in it.

A nice tool for investigating a .NET DLL is Reflector:

http://www.aisto.com/roeder/dotnet/

Ken
"Andy Sutorius" <an**@sutorius. com> wrote in message
news:fa******** ***********@twi ster.southeast. rr.com...
Hi group,

I am getting the "could not load type" error and I'm not sure how to
debug.
Obviously it's a namespace error but I don't see it. Below are code
snippets. Yes, the files sit in a subdirectory called "admin". The
webpages
in the root directory, "psyche" do not have any errors. So it's something
with the name admin? But what? Yes, all of the webpages in the admin
directory have the same error with their respective webpages in the class
name.

The webpage admin/default.aspx shows this error
Parser Error Message: Could not load type 'psyche.admin.j ustdoit'.

The code behind (admin/default.aspx.cs ) has the following namespace
namespace psyche.admin
{
/// <summary>
/// Summary description for _default.
/// </summary>
public class justdoit : System.Web.UI.P age
{
private void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
}

Thanks for your help!

Andy


Nov 19 '05 #2
Ken,

Here is the result from reflector:

public class justdoit : Page
Name:psyche.adm in.justdoit
Assembly:psyche , Version=1.0.186 8.26508

What would be the next step?

Andy

"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:ug******** *****@TK2MSFTNG P09.phx.gbl...
Hi Andy,

The first thing I would do is make sure the compiled DLL in the BIN folder
does have that namespace and class in it.

A nice tool for investigating a .NET DLL is Reflector:

http://www.aisto.com/roeder/dotnet/

Ken
"Andy Sutorius" <an**@sutorius. com> wrote in message
news:fa******** ***********@twi ster.southeast. rr.com...
Hi group,

I am getting the "could not load type" error and I'm not sure how to
debug.
Obviously it's a namespace error but I don't see it. Below are code
snippets. Yes, the files sit in a subdirectory called "admin". The
webpages
in the root directory, "psyche" do not have any errors. So it's something with the name admin? But what? Yes, all of the webpages in the admin
directory have the same error with their respective webpages in the class name.

The webpage admin/default.aspx shows this error
Parser Error Message: Could not load type 'psyche.admin.j ustdoit'.

The code behind (admin/default.aspx.cs ) has the following namespace
namespace psyche.admin
{
/// <summary>
/// Summary description for _default.
/// </summary>
public class justdoit : System.Web.UI.P age
{
private void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
}

Thanks for your help!

Andy

Nov 19 '05 #3
I take it there's no version/strong name issue and the file is in the /bin
directory?

"Andy Sutorius" <an**@sutorius. com> wrote in message
news:%3******** ***********@twi ster.southeast. rr.com...
Ken,

Here is the result from reflector:

public class justdoit : Page
Name:psyche.adm in.justdoit
Assembly:psyche , Version=1.0.186 8.26508

What would be the next step?

Andy


Nov 19 '05 #4
You are correct.

In trying to figure this out I created another web project inside of the
same solution. When I created the admin folder and then created a
webform1.aspx and typed in hello the webpage displayed correctly. When I
created webform2.aspx and typed in hello the webpage had a "could not load
type" error similar to the 'psyche.admin.j ustdoit'. Weird!
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
I take it there's no version/strong name issue and the file is in the /bin
directory?

"Andy Sutorius" <an**@sutorius. com> wrote in message
news:%3******** ***********@twi ster.southeast. rr.com...
Ken,

Here is the result from reflector:

public class justdoit : Page
Name:psyche.adm in.justdoit
Assembly:psyche , Version=1.0.186 8.26508

What would be the next step?

Andy

Nov 19 '05 #5
Expanding a bit...I created a new folder (manager) in the new project
(challenge) and created a new webpage (content.aspx). ..when I go to view the
page I see
Could not load type 'challenge.mana ger.content'.

If I build the project (challenge) the error goes away and the page displays
properly.

"Andy Sutorius" <an**@sutorius. com> wrote in message
news:ch******** ***********@twi ster.southeast. rr.com...
You are correct.

In trying to figure this out I created another web project inside of the
same solution. When I created the admin folder and then created a
webform1.aspx and typed in hello the webpage displayed correctly. When I
created webform2.aspx and typed in hello the webpage had a "could not load
type" error similar to the 'psyche.admin.j ustdoit'. Weird!
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
I take it there's no version/strong name issue and the file is in the /bin directory?

"Andy Sutorius" <an**@sutorius. com> wrote in message
news:%3******** ***********@twi ster.southeast. rr.com...
Ken,

Here is the result from reflector:

public class justdoit : Page
Name:psyche.adm in.justdoit
Assembly:psyche , Version=1.0.186 8.26508

What would be the next step?

Andy


Nov 19 '05 #6
So you're okay now or is something still messed up?

"Andy Sutorius" <an**@sutorius. com> wrote in message
news:LD******** ***********@twi ster.southeast. rr.com...
Expanding a bit...I created a new folder (manager) in the new project
(challenge) and created a new webpage (content.aspx). ..when I go to view
the
page I see
Could not load type 'challenge.mana ger.content'.

If I build the project (challenge) the error goes away and the page
displays
properly.


Nov 19 '05 #7
Ken,

The error still occurs with psyche.admin.ju stdoit

I just wanted to see if I could consistenly reproduce the problem with a new
project and I couldn't

I am going to publish the psyche files to my remote server and see if I get
any errors. Thanks for your help.

Andy
"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:OR******** ******@TK2MSFTN GP09.phx.gbl...
So you're okay now or is something still messed up?

"Andy Sutorius" <an**@sutorius. com> wrote in message
news:LD******** ***********@twi ster.southeast. rr.com...
Expanding a bit...I created a new folder (manager) in the new project
(challenge) and created a new webpage (content.aspx). ..when I go to view
the
page I see
Could not load type 'challenge.mana ger.content'.

If I build the project (challenge) the error goes away and the page
displays
properly.

Nov 19 '05 #8
Maybe something is messed up in the config file or the project's settings?
Rather than fight it, I'd just move the code into a new project. <grin>
"Andy Sutorius" <an**@sutorius. com> wrote in message
news:RX******** ***********@twi ster.southeast. rr.com...
Ken,

The error still occurs with psyche.admin.ju stdoit


Nov 19 '05 #9
For the group...a solution...it turns out that the .dll for the project had
become corrupted. I tried deleting the dll and pdb then building the project
again but to no avail I still received the error on select webpages. I
performed a google search on the keywords could not load type and the top
result was a kb article from MS, #306155: PRB: "Could not load type" error
message when you browse to .aspx page by using Visual C# .NET. Although this
wasn't the exact problem I was having, it was certainly related. I was able
to reproduce my problem if I did not build the project every time I added a
new webpage.

Regards,

Andy


"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Maybe something is messed up in the config file or the project's settings?
Rather than fight it, I'd just move the code into a new project. <grin>

Nov 19 '05 #10

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

Similar topics

10
705
by: Brent | last post by:
Hi, my asp.net c# app is trying to connect to an Access database with a password and am I getting the error.. Could not find installable ISAM. . If I connect to one without a password it works fine. I've looked at Q209805 but I don't think that helped. Oledb connection. Here is the one that works without a password. OleDbConnection connection...
2
11528
by: duncan | last post by:
Hi I an a mebie to XML / vb.net and I am struggling. I am developing a web base applcation using XML to link to its database so. Here is the XML I want to load into to a datagrid. The datagrid has the number of columns specified and is ready and waiting for its data. <Users>
4
10308
by: Mike S | last post by:
I'm hoping someone can explain the following. I have installed Visual Studio 2003. Setup several web application projects, compliled and ran them with no problem. All of this was accomplished with my local server. The default or root directory for my local IIS server is my "C:\" drive. (c:\inetpub\wwwroot) Now I would like to change my...
1
1694
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 1. start > control panel > admin tools > ms .net framework 1.1 configuration 2. runtime security policy > machine > code groups > all_code
1
1466
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 anything in the root folder then everything seems to be working fine, if I hit anything in the /root/admin folder I get an error message on
1
551
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 type name in the DLL. The permissions on the bin drectory look okay. In fact, the problem only occurs on a few machines. I have been unable to...
0
3006
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 deploying the application into a third-part host.
8
13181
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 compiles & runs fine locally, but when I copy to the production machine, I get this error: Parser Error Message: Could not load type 'Global'....
1
1198
by: notnorwegian | last post by:
anyone using psyche? how do you run it on Vista? what file do you click? there is no obvious file like psyche.py...
0
7694
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7921
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.