PDA

View Full Version : Deploying ASP.NET application


JRusty15
01-26-2010, 07:56 PM
I'm having trouble getting my asp.net 3.5 application working on the server. I created a SQL 2008 database to manage membership and roles, and my app can connect to it fine. I can run the code fine on my local machine, but when I upload it (via the Publish feature in VS2008), I get errors. I set up the directories to be applications on the server.

I have a login.aspx in the root folder and upon successful login it takes you to default.aspx in a MemberPages folder that is protected using the asp.net membership and roles mechanism. On my local machine it works fine, but on the server I get the following error:

Server Error in '/RDMTime/MemberPages' 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 'ASPSerialize.Default'.

Source Error:

Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASPSerialize.Default" %>

Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: /RDMTime/MemberPages/Default.aspx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082


Default is the namespace in the C# code file. Can anyone help me out? Thank you,
~Jeff

Ramses
01-27-2010, 07:34 AM
The error "Could not load type" usually refers to a missing file/DLL that was not uploaded or isn't found. did you make sure you uploaded this missing DLL?

JRusty15
01-27-2010, 08:51 AM
The error "Could not load type" usually refers to a missing file/DLL that was not uploaded or isn't found. did you make sure you uploaded this missing DLL?

Well I used the "Publish" functionality in VS2008 which just uploads "what is needed" to run the site. I think the DLL is created in the Bin folder, is this correct? If so I can check to see if it's there.

JRusty15
01-27-2010, 03:57 PM
I uploaded the DLL that was in the BIN folder to the server. I get the same error.

I also noticed that my access rules don't seem to stick. I'll change them one day, save it, and then the next day I go to edit/view them and they are all gone.

I really need some help, and it would be nice if some of the guys that work for DASP.net would help. They refuse to give me any advice via email and there is nobody to call.

JRusty15
01-28-2010, 06:33 AM
Nevermind, I figured it out.