วันศุกร์ที่ 3 กรกฎาคม พ.ศ. 2552

Invalid token 'Text' at root level of document.

Error 1 Invalid token 'Text' at root level of document. C:\Inetpub\wwwroot\TDCMktgWeb\_vti_cnf\web.config 1 1 Miscellaneous Files


Error 2 XML document must contain a root level element. C:\Inetpub\wwwroot\TDCMktgWeb\_vti_cnf\web.config 8 1 Miscellaneous Files


Error 3 Data at the root level is invalid. Line 1, position 1. C:\Inetpub\wwwroot\TDCMktgWeb\_vti_cnf\web.config 1



Problem solved. Solution is from previous reply link or at least deleting the web.config file in the front page server extensions "_vti_cnf" folder acording to http://forums.asp.net/thread/1270047.aspx.

I believe the cause is that I used Front Page 2003 to edit some generic html files used in the project that created the front page server extensions folders and files under the main project folder. When publishing with the pre-compile option, VS2005 was trying to read and compile the non-xml web.config file in the front page server extension "_vti_cnf" subfolder instead of the web.config in the main project folder.


http://forums.asp.net/p/956502/1406431.aspx#1406431

ไม่มีความคิดเห็น:

แสดงความคิดเห็น