Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Does it show?

Author  Topic 

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2005-11-04 : 08:53:06
I'm sure I'm missing something very basic here but as I am a relative newbie to ASP.NET I hope someone will forgive me.

I have a little web app setup (called Photos) , it only consists of one page at the moment (if you ignore the forms authentication part which seems to work OK). When I go to the page I get the 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 'Photos.WebForm1'.

Source Error:


Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Photo.aspx.vb" Inherits="Photos.WebForm1" description="Lists the photos of people as held in the database"%>


My problem is that I don't really understand where WebForm1 comes from as it isn't obvious in my app which works fine on my desktop web server, just not when I try to move it onto a "real" web server.

Anyone have any clues/fixes?

Many thanks in advance

steve

-----------

Facts are meaningless. You could use facts to prove anything that's even remotely true!

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2005-11-04 : 09:51:39
Did you copy the bin folder to the web server as well? That is where the base classes that all user pages inherit from are defined.
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2005-11-04 : 11:36:12
Do you have a code-behind file for your page?

Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>
Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2005-11-07 : 03:52:28
OK I'm now seriously thinking I've done something I shouldn't have so would appreciate any comments.

I created a small application that manages some photo's and as a stand alone app on my box that works fine.

BUT

to put it into production I need it to use forms authentication. Additionally it will eventually be a small (relatively distinct) part of a much larger app which will use the same forms authentication.

SO

I took my "lets play about with Forms authentication" app and inserted the existing photos app into a folder in the forms authentication app, the idea being that this will impose forms authentication on the photo app but all the files needed for the photos app are easy to find and therefore update later should it be needed

Now of course it doesn't work at all (though the forms authentication does) as I get the error above. I've copied the bin folder over and I do have the code behind files but I'm not sure what my next step is.

Anyone have any suggestions?

thanks

steve



-----------

Facts are meaningless. You could use facts to prove anything that's even remotely true!
Go to Top of Page

elwoos
Master Smack Fu Yak Hacker

2052 Posts

Posted - 2005-11-07 : 04:26:38
Having excluded all the files that weren't really needed from the subfolder it now seems to work. Do'h!!

Many thanks guys

steve


-----------

Facts are meaningless. You could use facts to prove anything that's even remotely true!
Go to Top of Page
   

- Advertisement -