I am working on site http://www.turnkey-solutions.net/ is working on local system. Its also work on live server but I click on any link its give the error. I don't know how to encounter that error can some one help me out from this problem.

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 'test.company'.

Source Error:

Line 1:  <%@ Page Language="C#" MasterPageFile ="~/trunkey.Master" AutoEventWireup="false" CodeBehind="company.aspx.cs" Inherits="test.company" %>
Line 2:  
Line 3:  <asp:Content ContentPlaceHolderID = "ContentLeftHolder" runat = "server">


Source File: /company.aspx    Line: 1

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

Thanks,
Farooq

Recommended Answers

All 2 Replies

Check your locigal file

Imports System
Imports System.data
Imports System.data.SqlClient
Imports System.Collections.Generic

Partial Class company

End Class

compare it with

<%@ Page Language="C#" MasterPageFile ="~/trunkey.Master" AutoEventWireup="false" CodeBehind="company.aspx.cs" Inherits="test.company" %>

Inherits="test.company" must be same with Partial Class

I have solved that problem. Only problem i find is did copy .dll file on web server.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.