Error: Invalid at the top level of the document
-
Hi, i have published website. At the time of running the site it through an error as follows, Invalid at the top level of the document. Error processing resource 'http://localhost/CompiledSite/SamplePage.aspx'. Line ... This is a marker file generated by the precompilation tool, and should not be deleted! ^ Error: Invalid at the top level of the document why it comes when i run my website at debug mode it runs well but after publishing it, it throughs an error.
-
Hi, i have published website. At the time of running the site it through an error as follows, Invalid at the top level of the document. Error processing resource 'http://localhost/CompiledSite/SamplePage.aspx'. Line ... This is a marker file generated by the precompilation tool, and should not be deleted! ^ Error: Invalid at the top level of the document why it comes when i run my website at debug mode it runs well but after publishing it, it throughs an error.
Check the web.config file to make sure it hasn't been corrupted.
I know the language. I've read a book. - _Madmatt
-
Check the web.config file to make sure it hasn't been corrupted.
I know the language. I've read a book. - _Madmatt
no yaar the web config is ok my website run well in debugger
-
no yaar the web config is ok my website run well in debugger
But you said the problem is when you publish it right? That is not the same as debug.
I know the language. I've read a book. - _Madmatt
-
But you said the problem is when you publish it right? That is not the same as debug.
I know the language. I've read a book. - _Madmatt
hmmm but i checked web.config file there no any problem then why this error comes actualy project get published successfully but when i run,it shows this error.
-
hmmm but i checked web.config file there no any problem then why this error comes actualy project get published successfully but when i run,it shows this error.
Then check SamplePage.aspx, make sure there are no extra characters at the begining. http://www.bing.com/search?q=asp.net+%22Error%3A+Invalid+at+the+top+level+of+the+document%22&form=QBRE&qs=n[^]
I know the language. I've read a book. - _Madmatt