Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inherits - Can someone Explain this

Status
Not open for further replies.

jward

MIS
Dec 21, 2000
57
US
I develope and test on my machine at home everything work fine- when I upload it to my server I receive

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

What does this mean ? the same app works fine on my local web server but not on my hosts?
 
1) are you sure the computer you are deploying your application has the .NET framework installed?

2) Check all your namespaces.

3) How are you deploying your application? Make sure you create a web setup and include the primary contents and the application contents

hth
 
My host is running the .Net framework, I guess where I'm confused is why it works on mine and not there's. I created
a folder at the root of my server (cheats) I built my application tested it and everything worked - I then copied
the whole folder up to my Hosts server and it doesn't work ?
Do I need to do something at the root?
 
Why not create a web setup project?
Make sure your hosting server has the virtual directory setup the right way and I would check (while I'm at it) that the ASPNET user has all the rights on that folder.

give me an idea of how the files in your project are located:

myproject
|
--WebForm1.apsx
--MyFolder
|
--WebForm2.aspx

etc...

 
I'll try to explain what I'm doing -

Currently I only have one page

|
|---cheats
|
default.aspx
default.aspx.vb
...
|
|---Bin
|
default.dll
default.cs

Basically what the page does is onload
populates a dropdown list with data from a
table in a database, then when you select
a Item it autoposts and populates the second dropdown
listbox and so on.

Using VB.NET I go through the steps to create a new web application - Pointing to a folder off the root off my Local web server. Build it / test it and upload it.

I guess what I need is a quick reference to building a simple web applications from start to finish, Is there
a function to publish to the web ?
 
Parser Error Message: Could not load type 'cheats.WebForm1'
The fact that you are having this error and no webform1.aspx[\b] page is the real problem.
You must have renamed a webform1 into default.aspx and forgot to do some things before deploying:

1) assign default.aspx as your starting page, sometimes the IDE deletes this value from the proper property (known bug in vs.net).

2) when you rename a file, make sure your class name has the same name of the file.

WebForm1.aspx

class WebForm1.aspx

This would cause an error:

default.aspx

class WebForm1.aspx


and be careful, default in the.net framework is a reserved word therefore when you rename the class of your default.aspx page make sure it has a '_' before (or after, I can't remember)

recompile the solution and then redeploy your application.

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top