Click here to Skip to main content
15,883,834 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i am uploading the (aspx and aspx.cs) files on server i get this error.
can anybody help me to solve this error?
thanks in advance.

Error :
error on line 1 at column 2: StartTag: invalid element name Below is a rendering of the page up to the first error.
Posted
Updated 14-Apr-21 5:27am
v2
Comments
Mehdi Gholam 13-Sep-11 5:27am    
What is your error?
sahabiswarup 13-Sep-11 5:28am    
error on line 1 at column 2: StartTag: invalid element name Below is a rendering of the page up to the first error.
OriginalGriff 13-Sep-11 5:40am    
What does line one of the file look like?
sahabiswarup 13-Sep-11 5:51am    
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="_Default" %>
Pravin Patil, Mumbai 13-Sep-11 7:07am    
Are you able to compile you web application..?

Here[^]'s the very first Google search result. Have you checked it?
 
Share this answer
 
Comments
sahabiswarup 13-Sep-11 6:22am    
yes i did that; but don't get exact solution.
Timberbird 13-Sep-11 7:07am    
Clearly something's wrong with ASP.NET settings. Which IIS and .NET version do you use?
sahabiswarup 14-Sep-11 1:03am    
Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
sahabiswarup 14-Sep-11 1:05am    
http://i53.tinypic.com/30wwi1s.jpg
here is the screenshot of the error
sahabiswarup 14-Sep-11 1:10am    
in which server i am updating my code already IIS configured because other websites are running without creating any problem; but now i have created a new directory called "test" under the "wwwroot" directory. So why do i get this error? please someone suggest me any strong solution.
Finally i get the solution.
When anyone upload any website; please confirm that virtual directory is configured properly in cpanel and put your total code files in a wwwroot folder under the directory which is configured in your cpanel virtual directory.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900