1
Error on Login.aspx page regarding AppConfig file not loading
Problem reported by Todd Gordon - 1/24/2014 at 11:43 AM
Resolved
Around the same time we discovered low hard drive space on our server (Windows 2008 R2 - 64bit - smarterstats 8.x) we also realized that we were getting:
 

Page:
/Login.aspx

Message
The page or resource that you are accessing is unavailable or an error has occurred.

When you try to access the page.

If you look in application logs you see:

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          1/24/2014 12:31:44 PM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      AMAZONA-I4D4V1F
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/24/2014 12:31:44 PM
Event time (UTC): 1/24/2014 6:31:44 PM
Event ID: 55bc1064cf184667baaa9f520e0aa7cc
Event sequence: 21
Event occurrence: 2
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/2/ROOT-2-130350615744176392
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Program Files (x86)\SmarterTools\SmarterStats\MRS\
    Machine name: AMAZONA-I4D4V1F
 
Process information:
    Process ID: 1860
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: XmlException
    Exception message: Unexpected end of file has occurred. The following elements are not closed: Guid, EventReminder, EventReminders, Settings, SmarterStatsApplicationSettings. Line 330, position 24.
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadData(XmlReader reader)
   at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
   at System.Data.DataSet.ReadXml(String fileName)
   at SmarterStats.Config.XmlFileCacheEntry.Load()
   at SmarterStats.Config.XmlFileCacheEntry..ctor(String XmlFilenameIn, String XsdFilenameIn, Boolean WatchFile, Boolean LoadXMLFromResourceIn)
   at SmarterStats.Config.XmlFileCache.Load(String XmlFilename, String XsdFilename, Boolean UseFSW, Boolean LoadXMLFromResource)
   at SmarterStats.Config.AppConfigFile.Load()
   at SmarterStats.Config.AppConfigFile.get_Settings()
   at SSWeb.Login.Page_Load(Object sender, EventArgs e)
   at SSWeb.HelperClasses.CustomPage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Request information:
    Request URL: http://newstats.nologyinteractive.com:8181/Login.aspx
    Request path: /Login.aspx
    User host address: 50.194.81.126
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 12
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadData(XmlReader reader)
   at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
   at System.Data.DataSet.ReadXml(String fileName)
   at SmarterStats.Config.XmlFileCacheEntry.Load()
   at SmarterStats.Config.XmlFileCacheEntry..ctor(String XmlFilenameIn, String XsdFilenameIn, Boolean WatchFile, Boolean LoadXMLFromResourceIn)
   at SmarterStats.Config.XmlFileCache.Load(String XmlFilename, String XsdFilename, Boolean UseFSW, Boolean LoadXMLFromResource)
   at SmarterStats.Config.AppConfigFile.Load()
   at SmarterStats.Config.AppConfigFile.get_Settings()
   at SSWeb.Login.Page_Load(Object sender, EventArgs e)
   at SSWeb.HelperClasses.CustomPage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 4.0.30319.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-01-24T18:31:44.000000000Z" />
    <EventRecordID>3714384</EventRecordID>
    <Channel>Application</Channel>
    <Computer>AMAZONA-I4D4V1F</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>1/24/2014 12:31:44 PM</Data>
    <Data>1/24/2014 6:31:44 PM</Data>
    <Data>55bc1064cf184667baaa9f520e0aa7cc</Data>
    <Data>21</Data>
    <Data>2</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/2/ROOT-2-130350615744176392</Data>
    <Data>Full</Data>
    <Data>/</Data>
    <Data>C:\Program Files (x86)\SmarterTools\SmarterStats\MRS\</Data>
    <Data>AMAZONA-I4D4V1F</Data>
    <Data>
    </Data>
    <Data>1860</Data>
    <Data>w3wp.exe</Data>
    <Data>NT AUTHORITY\NETWORK SERVICE</Data>
    <Data>XmlException</Data>
    <Data>Unexpected end of file has occurred. The following elements are not closed: Guid, EventReminder, EventReminders, Settings, SmarterStatsApplicationSettings. Line 330, position 24.
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadData(XmlReader reader)
   at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
   at System.Data.DataSet.ReadXml(String fileName)
   at SmarterStats.Config.XmlFileCacheEntry.Load()
   at SmarterStats.Config.XmlFileCacheEntry..ctor(String XmlFilenameIn, String XsdFilenameIn, Boolean WatchFile, Boolean LoadXMLFromResourceIn)
   at SmarterStats.Config.XmlFileCache.Load(String XmlFilename, String XsdFilename, Boolean UseFSW, Boolean LoadXMLFromResource)
   at SmarterStats.Config.AppConfigFile.Load()
   at SmarterStats.Config.AppConfigFile.get_Settings()
   at SSWeb.Login.Page_Load(Object sender, EventArgs e)
   at SSWeb.HelperClasses.CustomPage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
</Data>
    <Data>http://newstats.nologyinteractive.com:8181/Login.aspx</Data>
    <Data>/Login.aspx</Data>
    <Data>50.194.81.126</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>NT AUTHORITY\NETWORK SERVICE</Data>
    <Data>12</Data>
    <Data>NT AUTHORITY\NETWORK SERVICE</Data>
    <Data>False</Data>
    <Data>   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Data.XmlDataLoader.LoadColumn(DataColumn column, Object[] foundColumns)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadTable(DataTable table, Boolean isNested)
   at System.Data.XmlDataLoader.LoadData(XmlReader reader)
   at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
   at System.Data.DataSet.ReadXml(String fileName)
   at SmarterStats.Config.XmlFileCacheEntry.Load()
   at SmarterStats.Config.XmlFileCacheEntry..ctor(String XmlFilenameIn, String XsdFilenameIn, Boolean WatchFile, Boolean LoadXMLFromResourceIn)
   at SmarterStats.Config.XmlFileCache.Load(String XmlFilename, String XsdFilename, Boolean UseFSW, Boolean LoadXMLFromResource)
   at SmarterStats.Config.AppConfigFile.Load()
   at SmarterStats.Config.AppConfigFile.get_Settings()
   at SSWeb.Login.Page_Load(Object sender, EventArgs e)
   at SSWeb.HelperClasses.CustomPage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
</Data>
  </EventData>
</Event>
 
Any idea where I should start?  I don't have the installer any more so if that's a place to go, can you tell me where to find it??

3 Replies

Reply to Thread
0
Employee Replied
Employee Post
We recommend that you run SmarterStats in IIS instead of the default web server.  The default web server is designed for installation and configuration only.  IIS is more robust.  Here is a knowledge base article on how to set that up.
 
http://portal.smartertools.com/kb/a2479/set-up-smarterstats-as-an-iis-site-iis-7_07_5
0
Todd Gordon Replied
Thanks for the reply. We are running SS via IIS and the default SS web server is off/disabled. I did go ahead and run through the KB article to ensure we were not missing anything. 
 
Additionally, we managed to locate our installer. We have run through the repair and also have removed and re-installed. 
 
Any additional thoughts? The above error still remains.
0
Grady Werner Replied
Employee Post
The error you're getting is saying that the file appconfig.xml in the [Install]\MRS\App_Data\Config folder is corrupted somehow.  Probably, the system tried to write it and the drive was full. 
 
My recommendation would be to take a look at that file.  If you don't have a lot of sites configured, the easiest thing to do is to delete that file, then restart IIS.  You may also have to follow the instructions in http://portal.smartertools.com/kb/a2474/secure-link-broken-issues
Grady Werner SmarterTools Inc. www.smartertools.com

Reply to Thread