Last post Jan 02, 2009 12:19 AM by chandradev1
Dec 27, 2008 02:57 AM|chandradev1|LINK
i have created one asp.net project. it is running properly on localhost ,but while uploading on server it is giving error like as shown below. where should i modify ? In this project i have used xml database.
Thanks in advance
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: Root element is missing.
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
2) Add the following section to the configuration file of your application:
AsP Net 2.0
Dec 27, 2008 04:32 AM|rami_nassar|LINK
please put your source code here....
Dec 27, 2008 05:16 AM|chandradev1|LINK
my project is correct. it is running on local server, but it is giving error while uploading on server. can u tell me, what is the proper method of web based project uploading ? is it necessary to do modification somewhere before uploading the server ?
Dec 27, 2008 05:28 AM|kinjalin|LINK
I can understand ur Exact problem, since i am working on it too. Check this maybe this mite be of any help.
Dec 27, 2008 12:13 PM|devcalpoly|LINK
From what you have given us, it seems like an exception in your source code. Open web.config file, and add the following:
After adding that, re-run your site and please provide us with some source code where this error is occurring.
BTW, XML is not a database.
Dec 28, 2008 11:27 PM|chandradev1|LINK
Thanks for reply
i solved the problem. While uploading on server, some .dll was adding on .dll folder. so i was getting the errors. Now i got new concept from this error.
Dec 29, 2008 03:20 AM|kinjalin|LINK
Can u provide more details abt the solution. Technically ur statement does not reveal any solution.
Jan 02, 2009 12:19 AM|chandradev1|LINK
while uploading on server, i comapre with "my old project which was running on local server". Then i only got differences,in bin folder. some extra .dll file was there. when i removed that file then it start to running on server. so i think that was the