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 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
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
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
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
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
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.
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.
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
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> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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>
|
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...
|
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
|
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
| |
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...
|
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.
|
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'....
|
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...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |