468,483 Members | 2,619 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,483 developers. It's quick & easy.

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.com 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:

Expand|Select|Wrap|Line Numbers
  1. Parser Error
  2. 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. 
  3. Parser Error Message: Could not load the assembly 'App_Web_tuwlsmxq'. Make sure that it is compiled before accessing the page.
  4. Source Error: 
  5. Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="welcome, App_Web_tuwlsmxq" %>
  6. Line 2:  
  7. Line 3:  <!DOCTYPE html>
Thank you.
Jun 3 '15 #1
1 2502
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="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
Jun 4 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by dave | last post: by
9 posts views Thread by Wayne Smith | last post: by
2 posts views Thread by Event Horizon | last post: by
5 posts views Thread by camphor | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.