ASP.NET Error Upload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deliasuzan
    New Member
    • Jun 2015
    • 1

    ASP.NET Error Upload

    Hi,
    I am new in web development. I have little problem. Could you help me please? For your information, I'm using asphostportal.c om hosting and I have windows account that supports .NET 4.5. I did publish to a local file on my computer. When I tried to upload the files Compiled to my hosting using FileZilla, the project uploaded successfully but i get an error on the first page as below:

    Code:
    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 the assembly 'App_Web_tuwlsmxq'. Make sure that it is compiled before accessing the page.
    Source Error: 
    Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="welcome, App_Web_tuwlsmxq" %>
    Line 2:  
    Line 3:  <!DOCTYPE html>
    Thank you.
  • BeastGeek
    New Member
    • Apr 2015
    • 6

    #2
    It seems that you haven't published your files properly. Please follow this steps to publish your files to online server

    1. Open your project via Visual Studio tool

    2. On the Solution Explorer window, right click your project and select "Publish Website"

    3. Please publish your website to your local folder, such as C:\Project

    4. You will see all the files and subfolders on C:\Project, however, you will not see any code-behind files

    5. Please upload whatever you see on C:\Project to the server via FTP

    Please note that if your website does not even work on your local PC, it will never ever work on the server. This is why it is important to ensure that your site works on your local PC first

    Also, please kindly add a customError tag on your web.config so that you can view the error message directly (if in case there is an error). This can be something like:

    <customErrors mode="RemoteOnl y" defaultRedirect ="GenericErrorP age.htm">
    <error statusCode="403 " redirect="NoAcc ess.htm" />
    <error statusCode="404 " redirect="FileN otFound.htm" />
    </customErrors>

    Comment

    Working...