ASP.NET project deployment errors for remote host

I have an asp.net project that works very well on my machine (on the local host) ... But when I put it on the real host (put it online), I ran into a problem. I got this error:

Analyzer error

Description. An error occurred while parsing the resource required to service this request. Review the following parsing error details and modify the source file accordingly.

Parser error message: Failed to load type AWP_Project.Default.

Source Error:

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

there is a problem in the first line of this page (and on every other page when I try it) note: my project name is AWP_Project can anyone help me please?

+3
source share
2 answers

The usual โ€œtrapโ€ when it comes to transferring your (compiled or not) project to your web host from your local computer is that the web host may not have the same configuration as your project / local machine / development.

  • make sure you have all the assemblies in the / bin folder
  • - (dll) , , -.
  • - ( ) , . / Visual Studio, , -, , . , Visual Studio - web.config , " " - -.
  • , .Net 4 , , - . - VS 2010 right click "Add Deployable Dependencies" - DLL /bin. , , , , , , Visual Studio....
  • , - -, ASP.Net/.Net Framework . , , - , ( "" - , ) - ASP.Net 4 ( , ).

HTH

+1

/- - -.

, . , .

, : asp /bin/-

+1

All Articles