No project templates are compiling with Visual Studio 2017 RC - msbuild

On clean a Windows 10 64 machine, I have installed Visual Studio 2017 RC (along with ALL components) and no projects are building at all. They are all failing with this error:
Child node "2" exited prematurely. Shutting down. Diagnostic
information may be found in files in the temporary files directory
named MSBuild_*.failure.txt.
When i investigate the log file it mentions it says:
UNHANDLED EXCEPTIONS FROM PROCESS 7300:
===================== 07/01/2017 19:30:19 System.IO.FileNotFoundException: The system cannot find the file
specified. (Exception from HRESULT: 0x80070002) at
Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance() at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.ReadApplicationConfiguration()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.get_ConfigurationSection()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.<get_ToolsVersions>d__8.MoveNext()
at
Microsoft.Build.Evaluation.ToolsetReader.ReadEachToolset(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties) at
Microsoft.Build.Evaluation.ToolsetReader.ReadToolsets(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties, String&
msBuildOverrideTasksPath, String& defaultOverrideToolsVersion) at
Microsoft.Build.Evaluation.ToolsetReader.ReadAllToolsets(Dictionary`2
toolsets, ToolsetRegistryReader registryReader,
ToolsetConfigurationReader configurationReader, PropertyDictionary`1
environmentProperties, PropertyDictionary`1 globalProperties,
ToolsetDefinitionLocations locations) at
Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetRegistryReader
registryReader, ToolsetConfigurationReader configReader) at
Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2
globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers,
ToolsetDefinitionLocations toolsetDefinitionLocations, Int32
maxNodeCount, Boolean onlyLogCriticalEvents) at
Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection()
at
Microsoft.Build.Execution.OutOfProcNode.HandleNodeConfiguration(NodeConfiguration
configuration) at
Microsoft.Build.Execution.OutOfProcNode.HandlePacket(INodePacket
packet) at Microsoft.Build.Execution.OutOfProcNode.Run(Boolean
enableReuse, Exception& shutdownException) at
Microsoft.Build.CommandLine.MSBuildApp.StartLocalNode(CommandLineSwitches
commandLineSwitches) at
Microsoft.Build.CommandLine.MSBuildApp.ProcessCommandLineSwitches(CommandLineSwitches
switchesFromAutoResponseFile, CommandLineSwitches
switchesNotFromAutoResponseFile, String& projectFile, String[]&
targets, String& toolsVersion, Dictionary`2& globalProperties,
ILogger[]& loggers, LoggerVerbosity& verbosity, List`1&
distributedLoggerRecords, Boolean& needToValidateProject, String&
schemaFile, Int32& cpuCount, Boolean& enableNodeReuse, TextWriter&
preprocessWriter, Boolean& debugger, Boolean& detailedSummary, Boolean
recursing) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String
commandLine) at Microsoft.Build.CommandLine.MSBuildApp.Main()
=================== 07/01/2017 19:30:19 System.IO.FileNotFoundException: The system cannot find the file
specified. (Exception from HRESULT: 0x80070002) at
Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance() at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.ReadApplicationConfiguration()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.get_ConfigurationSection()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.<get_ToolsVersions>d__8.MoveNext()
at
Microsoft.Build.Evaluation.ToolsetReader.ReadEachToolset(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties) at
Microsoft.Build.Evaluation.ToolsetReader.ReadToolsets(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties, String&
msBuildOverrideTasksPath, String& defaultOverrideToolsVersion) at
Microsoft.Build.Evaluation.ToolsetReader.ReadAllToolsets(Dictionary`2
toolsets, ToolsetRegistryReader registryReader,
ToolsetConfigurationReader configurationReader, PropertyDictionary`1
environmentProperties, PropertyDictionary`1 globalProperties,
ToolsetDefinitionLocations locations) at
Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetRegistryReader
registryReader, ToolsetConfigurationReader configReader) at
Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2
globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers,
ToolsetDefinitionLocations toolsetDefinitionLocations, Int32
maxNodeCount, Boolean onlyLogCriticalEvents) at
Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection()
at
Microsoft.Build.Execution.OutOfProcNode.HandleNodeConfiguration(NodeConfiguration
configuration) at
Microsoft.Build.Execution.OutOfProcNode.HandlePacket(INodePacket
packet) at Microsoft.Build.Execution.OutOfProcNode.Run(Boolean
enableReuse, Exception& shutdownException) at
Microsoft.Build.CommandLine.MSBuildApp.StartLocalNode(CommandLineSwitches
commandLineSwitches) at
Microsoft.Build.CommandLine.MSBuildApp.ProcessCommandLineSwitches(CommandLineSwitches
switchesFromAutoResponseFile, CommandLineSwitches
switchesNotFromAutoResponseFile, String& projectFile, String[]&
targets, String& toolsVersion, Dictionary`2& globalProperties,
ILogger[]& loggers, LoggerVerbosity& verbosity, List`1&
distributedLoggerRecords, Boolean& needToValidateProject, String&
schemaFile, Int32& cpuCount, Boolean& enableNodeReuse, TextWriter&
preprocessWriter, Boolean& debugger, Boolean& detailedSummary, Boolean
recursing) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String
commandLine) at Microsoft.Build.CommandLine.MSBuildApp.Main()
===================
I have repaired the installation and done a full uninstall/install that doesnt make a difference.
Tried turning logging on under Tools -> Options to diagnostic but it doesnt show me which file it is refering to in the error message in the log file.
This works with existing projects and new projects. Any ideas?
NOTE: I did originally install VS on a non default non system drive but removed this and re did it to the default installation.

Related

Error when using CefSharp.OffScreen in an ASP.Net Web Application - Could not load file or assembly CefSharp.BrowserSubprocess.Core.DLL

Is it possible to run CefSharp.OffScreen in an ASP.Net Web application? When I try this error happens right away and is before any code that I can put a breakpoint on. To get this error just create a new project, add the CefSharp.Offscreen package and then F5. I'm guessing I need to add some references or maybe it requires a STA thread? I realize this is probably not the typical use of this library but I am just experimenting.
Server Error in '/' Application.
Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL' or one of its dependencies. The specified module could not be found.
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.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL' or one of its dependencies. The specified module could not be found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL' or one of its dependencies. The specified module could not be found.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +37
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +159
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +80
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +22
System.Reflection.Assembly.Load(String assemblyString) +29
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +39
[ConfigurationErrorsException: Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL' or one of its dependencies. The specified module could not be found.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +777
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +229
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +140
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +176
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +99
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +310
System.Web.Compilation.BuildManager.ExecutePreAppStart() +165
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +590
[HttpException (0x80004005): Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL' or one of its dependencies. The specified module could not be found.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10080656
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0

Visual studio 2015 problems with UWP debbuger and Designer

I'm new to Universal Windows Platform, and look like I've messed something up, probably with App.g.i.cs file. Designer isn't working throws something like this:
System.Runtime.InteropServices.COMException
The app didn't start. (Exception from HRESULT: 0x8027025B)
at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage.AppPackageNativeMethods.IApplicationActivationManager.ActivateApplication(String appUserModelId, String activationContext, ActivateOptions options, Int32& processId)
at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage.DesignerWrtUtility.ActivateApplication(String appUserModelId, String activationContext, Object site, Boolean isRunningElevated)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.ActivateApplicationInternal(String appUserModelId, String activationContext, Object site)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, IIsolationTarget isolationTarget, String baseDirectory)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.<StartTask>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
And debugging on x86 localMachine throws something like this, debugging on ARM Device (my phone) works fine.
Any ideas? Already tried reinstaling VS with UWP Tools and repairing VS too.

Missing reference to Microsoft.scripting.ExtensionAttrribute.dll

We intermittently get this error on our .net 4 web forms web site. Recycling the app pool seems typically resolves it.
The only references i can find to it seem to be related to either using Umbraco, or the Dynamic language Runtime. Neither of which applies to us.
The only useful link I have found is this: http://support.frozenmountain.com/entries/23667761-Compatibility-issue-using-ASP-Net-4-0-Extensions-and-ScriptManager
Any other solutions, other than adding the unnecesary reference?
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting.ExtensionAttribute, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Scripting.ExtensionAttribute, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean isDecoratedTargetSecurityTransparent) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) at System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) at System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() at System.Web.UI.ScriptManager..ctor() at ASP.masterpages_safarinow_master.__BuildControlMasterScriptManager() at ASP.masterpages_safarinow_master.__BuildControlfrmMain() at ASP.masterpages_safarinow_master.__BuildControlmasterBodyTag() at ASP.masterpages_safarinow_master.__BuildControlTree(masterpages_safarinow_master __ctrl) at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) at System.Web.UI.Page.ApplyMasterPage() at System.Web.UI.Page.PerformPreInit() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Although you said that you're not using the DLR, that's the only place this file exists. The error message strongly suggests that you're using an older version of IronPython (or IronRuby or some other DLR-based thing) which was built for .NET 2.0-3.5. Somewhere, there are files with names like "Microsoft.Dynamic.dll", "Microsoft.Scripting.Core.dll", and "Microsoft.Scripting.dll". Whatever is using this should be updated with a version of the DLR which was built specifically for .NET 4.0.

Unable to view restored site pages

I made a prototype of the SharePoint 2010 site in via the VirtualBox machine. I have successfully made a backup of the entire farm (all elements are backuped without errors).
After that I have restored the backup on another VirtualBox snapshot and on a real machine without errors (all elements were restored successfully).
However, when browsing some SubSites and their page, I receive the following error:
Server Error in '/' Application.
<nativehr>0x80070012</nativehr><nativestack>stswel.dll: (unresolved symbol, module offset=00000000000CADB7) at 0x000007FEEEB6ADB7
stswel.dll: (unresolved symbol, module offset=00000000000F7F3F) at 0x000007FEEEB97F3F...
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[
COMException (0x80070012): <nativehr>0x80070012</nativehr><nativestack>stswel.dll: (unresolved symbol, module offset=00000000000CADB7) at 0x000007FEEEB6ADB7
stswel.dll: (unresolved symbol, module offset=00000000000F7F3F) at 0x000007FEEEB97F3F
stswel.dll: (unresolved symbol, module offset=00000000000F945B) at 0x000007FEEEB9945B
owssvr.dll: (unresolved symbol, module offset=00000000000B460F) at 0x000007FEEE2C460F
owssvr.dll: (unresolved symbol, module offset=00000000000C07CC) at 0x000007FEEE2D07CC
mscorwks.dll: (unresolved symbol, module offset=00000000002BF827) at 0x000007FEF76AF827
Microsoft.SharePoint.Library.ni.dll: (unresolved symbol, module offset=00000000000E6D39) at 0x000007FEEEA16D39
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001A4F67D) at 0x000007FEF2F6F67D
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001A1E9B6) at 0x000007FEF2F3E9B6
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C0779E) at 0x000007FEF312779E
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C080E4) at 0x000007FEF31280E4
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F22EAC) at 0x000007FEF3442EAC
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FD0545) at 0x000007FEF34F0545
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FD2FBE) at 0x000007FEF34F2FBE
System.Web.ni.dll: (unresolved symbol, module offset=00000000002C467F) at 0x000007FEF08C467F
System.Web.ni.dll: (unresolved symbol, module offset=00000000002C447B) at 0x000007FEF08C447B
System.Web.ni.dll: (unresolved symbol, module offset=00000000002C432A) at 0x000007FEF08C432A
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FCFE7A) at 0x000007FEF34EFE7A
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F21816) at 0x000007FEF3441816
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F22D20) at 0x000007FEF3442D20
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FCFF46) at 0x000007FEF34EFF46
Micros</nativestack>]
Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +0
Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +589
[SPException]
Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +27254482
Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +27641455
Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, Int32 pageVersion, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId) +1750
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes) +26195281
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformation(HttpContext context, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& level, String& masterpageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData) +388
Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureContentFetched(HttpContext context, SPRequestModuleData requestData) +364
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String virtualPath, Boolean fetchContent) +101
Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetFile(String virtualPath) +78
System.Web.Hosting.VirtualPathProvider.GetFileWithCheck(String virtualPath) +31
System.Web.UI.DependencyParser.ParseFile(String physicalPath, VirtualPath virtualPath) +219
System.Web.UI.DependencyParser.GetVirtualPathDependencies() +10955063
Some resource files imported via the SharePoint designer are unavailable as well.
This issue is caused by the fact that the v4.master Master Page of a specific SubSite is corrupted (and was missing after restoration... for some reason).
When opening a restored SubSite in the SharePoint Designer, the corresponding Design Time error message occurs.

Changing the web.config takes the WCF service down?

I have a simple WCF service hosted on IIS. Anytime I change the web.config file the service goes down and shows the following error:
Could not load file or assembly
'AutoMapper, Version=1.1.0.188,
Culture=neutral,
PublicKeyToken=be96cd2c38ef1005' or
one of its dependencies. Logon
failure: unknown user name or bad
password. (Exception from HRESULT:
0x8007052E)
To correct it, I need to delete all existing files and re-publish the WCF service. Re-publishing without deleting old files doesn't work, and neither does restarting the iis server.
Does anyone know why this happens? Or if there is an alternative to republishing the service to bring it back up? I am using IIS on Windows Server 2003, which I think is 6.0, and .Net framework 4.0
Further Error Info...
Assembly Load Trace: The following
information can be helpful to
determine why the assembly
'AutoMapper, Version=1.1.0.188,
Culture=neutral,
PublicKeyToken=be96cd2c38ef1005' could
not be loaded.
WRN: Assembly binding logging is
turned OFF. To enable assembly bind
failure logging, set the registry
value
[HKLM\Software\Microsoft\Fusion!EnableLog]
(DWORD) to 1. Note: There is some
performance penalty associated with
assembly bind failure logging. To turn
this feature off, remove the registry
value
[HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load
file or assembly 'AutoMapper,
Version=1.1.0.188, Culture=neutral,
PublicKeyToken=be96cd2c38ef1005' or
one of its dependencies. Logon
failure: unknown user name or bad
password. (Exception from HRESULT:
0x8007052E)]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName
fileName, String codeBase, Evidence
assemblySecurity, RuntimeAssembly
locationHint, StackCrawlMark&
stackMark, Boolean
throwOnFileNotFound, Boolean
forIntrospection, Boolean
suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName
fileName, String codeBase, Evidence
assemblySecurity, RuntimeAssembly
locationHint, StackCrawlMark&
stackMark, Boolean
throwOnFileNotFound, Boolean
forIntrospection, Boolean
suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence
assemblySecurity, StackCrawlMark&
stackMark, Boolean forIntrospection,
Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(String
assemblyString, Evidence
assemblySecurity, StackCrawlMark&
stackMark, Boolean forIntrospection)
+144 System.Reflection.Assembly.Load(String
assemblyString) +28
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String
constructorString, Uri[]
baseAddresses) +208
System.ServiceModel.HostingManager.CreateService(String
normalizedVirtualPath) +1440
System.ServiceModel.HostingManager.ActivateService(String
normalizedVirtualPath) +44
System.ServiceModel.HostingManager.EnsureServiceAvailable(String
normalizedVirtualPath) +615
[ServiceActivationException: The
service
'/Services/ClientLoginService.svc'
cannot be activated due to an
exception during compilation. The
exception message is: Could not load
file or assembly 'AutoMapper,
Version=1.1.0.188, Culture=neutral,
PublicKeyToken=be96cd2c38ef1005' or
one of its dependencies. Logon
failure: unknown user name or bad
password. (Exception from HRESULT:
0x8007052E).]
System.Runtime.AsyncResult.End(IAsyncResult
result) +679246
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult
result) +190
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication
context, String
routeServiceVirtualPath, Boolean
flowContext, Boolean ensureWFService)
+234 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object
sender, EventArgs e) +355
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+148 System.Web.HttpApplication.ExecuteStep(IExecutionStep
step, Boolean& completedSynchronously)
+75