Click here to Skip to main content
15,914,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a problem with my asp.net web site. I developed a project from visual studio. It works succesfully on visual studio. But when i published it to a folder and then to ftp it gives me this error.

Server Error in '/' 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 'BerksanWebSite.Site1'.

Source Error: 


Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="BerksanWebSite.Site1" %>
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: /webdeneme/Site1.Master    Line: 1 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440


can anybody help me
Posted
Updated 4-Aug-14 23:34pm
v2
Comments
Kornfeld Eliyahu Peter 10-Jun-14 8:42am    
Look for your Site1.Master.cs file it should have a Site1 class inside BerksanWebSite namespace...
enoua 10-Jun-14 8:47am    
here is my Site1.Master.cs file

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BerksanWebSite
{
public partial class Site1 : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
}
Kornfeld Eliyahu Peter 10-Jun-14 8:56am    
It seems that you forgot to publish your dll file...
enoua 10-Jun-14 8:57am    
right click then publish . I selected file system and i uploaded the file on to web is there any problem ? @kornfeld
Kornfeld Eliyahu Peter 10-Jun-14 9:04am    
With the publishing part should be no problem, however when manually uploading to the web (ftp?) you may forgot the bin folder!?

There Must Be a Bin Folder which contains the dll of each page& user Control & App Code.
 
Share this answer
 
i tried to config my master page's location then it works
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900