0

I create one website in 3 tire architecture and its working local but when I publish and upload in .net server in live it gives error

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 'urprofessional.Clients.index'.

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="urprofessional.Clients.index" %>
Govinda Rajbhar
  • 2,926
  • 6
  • 37
  • 62
Lingraj Gowda
  • 159
  • 1
  • 1
  • 12

1 Answers1

0

Try it:-

change CodeBehind="OutReport.aspx.cs" to CodeFile="OutReport.aspx.cs"

or

for me, the fix was to change the output path in the build tab.

I changed the output path to bin\ and the error went away.

refer here

Refer this link: Could not load type

or

refer this link stackoverflow here was same problem.

or

refer could not load type

or

Project Deployment Overview

I hope it may will help you.

Community
  • 1
  • 1
Govinda Rajbhar
  • 2,926
  • 6
  • 37
  • 62
  • I upload only aspx and dll i dont have aspx.cs file in server it convert in dll arser Error Message: The file '/urprofessional/Clients/index.aspx.cs' does not exist. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="urprofessional.Clients.index" %> – Lingraj Gowda Feb 27 '14 at 09:25
  • Have you set output path='\bin'?refer here to understand about problem http://blog.techdreams.org/2008/04/could-not-load-type-aspnet-20-error-and.html – Govinda Rajbhar Feb 27 '14 at 09:45
  • GovindaRajbhar any other help – Lingraj Gowda Feb 27 '14 at 09:58
  • @LingrajGowda sorry friend I could not get solution.if i will get then i will help you. – Govinda Rajbhar Feb 27 '14 at 10:04