WCF Service on Azure Driving Me Crazy

A few days ago i decided to write a WCF Service which takes some data and inserts into a MongoDB.

Having done it back in Aug I had thought it would be a breeze..but was i mistaken or what !!!

Biggest difference is that i renamed the WCFWebRole1 to a different name…

Now the service throws a 500 error.

Locally i see the errors in the EventLog as

The worker process for application pool ‘a67e9be4-84c6-4291-8ca1-xxxx’ encountered an error ‘Cannot read configuration file
‘ trying to read global module configuration data from file ‘\\?\x:\xxx\xxx\AppData\Local\dftmp\Resources\a1797f74-b505-441b-9961-a3d0xxxxx\temp\temp\RoleTemp\applicationHost.config’, line number ‘0’. Worker process startup aborted.

 

Failed to initialize the AppDomain:/LM/W3SVC/1273337584/ROOT

Exception: System.Configuration.ConfigurationErrorsException

Message: Exception of type ‘System.Configuration.ConfigurationErrorsException’ was thrown.

StackTrace: at System.Web.Configuration.ErrorRuntimeConfig.ErrorConfigRecord.System.Configuration.Internal.IInternalConfigRecord.GetLkgSection(String configKey)
at System.Web.Configuration.RuntimeConfigLKG.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_HostingEnvironment()
at System.Web.Hosting.HostingEnvironment.StartMonitoringForIdleTimeout()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)

What could be going on i wonder???

Leave a comment