1
Vote

Problem on the server

description

After i have created a new cloud service and i have deployed the worker to it, it's failed to run
i did some tracing and debugging and i found the following error:
Application: WaWorkerHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Xml.XmlException
Stack:
at System.Xml.XmlTextReaderImpl.Throw(System.Exception)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlLoader.Load(System.Xml.XmlDocument, System.Xml.XmlReader, Boolean)
at System.Xml.XmlDocument.Load(System.Xml.XmlReader)
at System.Xml.XmlDocument.LoadXml(System.String)
at WorkerRole.WorkerRole.BackupSQLAzureDatabase()
at WorkerRole.WorkerRole.Run()
at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal()
at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<StartRole>b__1()
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

any help please?

comments

jaafar_abusair wrote Oct 3, 2013 at 12:51 PM

I have found the root of the problem,
backupFileName = Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + @"\", databaseInfo.DatabaseName + "_" + System.DateTime.Now.ToString("dd-MMM-yyyy hhmmss") + ".bacpac");

System.Reflection.Assembly.GetExecutingAssembly().Location

this cause a problem, how i can update the source code ?