Pages

Search This Blog

Sunday, August 19, 2007

Data at the root level is invalid. Line 1, position 1

I'm working on a ASP.Net (C#) project. The web application able to debug and built but when come to publish, error message "Data at the root level is invalid. Line 1, position 1" shown and the error list show that the error occur in page is in web.config. It's kind of confusing. Double click on the error file from the error list, i see message below.

vti_encoding:SRutf8-nl
vti_timelastmodified:TR20 Aug 2007 11:48:12 -0000
vti_extenderversion:SR4.0.2.7802
vti_cacheddtm:TX20 Aug 2007 11:48:12 -0000
vti_filesize:IR6248


After check for a while, i figure it out how to solve this problem. Go to the web project, find a folder name: _vti_cnf

example:
[Project]\_vti_cnf

Delete this folder and recompile again.

I'm able to solve this problem using this way.

No comments: