Issue:
You have done a standalone installation of SharePoint 2010 on a Windows 7 machine. This machine will be mostly used as a development machine. No error messages are received during the set up or while running the configuration wizard. In Central Administration website, when you click on links like "Services on server, Manage service applications, or when you try to navigate to the Web Application's general settings, etc, you get the following error.
The error comes intermittently, but, mostly on the links mentioned above.
Error:
An error occurred during the compilation of the requested file, or one of its dependencies.
Following error is logged in the ULS logs:
Error from ULS Logs of the server:
System.Web.HttpCompileException: External component has thrown an exception. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert...
Cause:
Compatibility issue between SharePoint 2010 and Windows 7.
Resolution:
Restart the machine where you have installed SharePoint 2010.
Just a restart of the machine should usually resolve the issue for you. In case, the issue rises again after few days, you need to restart the machine. Also, we should not that SharePoint 2010 on Windows 7 is not supported, so we have to live with this work-around for now.
You have done a standalone installation of SharePoint 2010 on a Windows 7 machine. This machine will be mostly used as a development machine. No error messages are received during the set up or while running the configuration wizard. In Central Administration website, when you click on links like "Services on server, Manage service applications, or when you try to navigate to the Web Application's general settings, etc, you get the following error.
The error comes intermittently, but, mostly on the links mentioned above.
Error:
An error occurred during the compilation of the requested file, or one of its dependencies.
Following error is logged in the ULS logs:
Error from ULS Logs of the server:
System.Web.HttpCompileException: External component has thrown an exception. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert...
Cause:
Compatibility issue between SharePoint 2010 and Windows 7.
Resolution:
Restart the machine where you have installed SharePoint 2010.
Just a restart of the machine should usually resolve the issue for you. In case, the issue rises again after few days, you need to restart the machine. Also, we should not that SharePoint 2010 on Windows 7 is not supported, so we have to live with this work-around for now.
Update (20-September-2011)
If you have a standalone installation on Windows 7 machine, delete the "User Profile Synchronization" service applications from your farm and do an "iisreset". This should take care of the problem and a reboot may not be required everytime.
you can just restart SharePoint services like timer, trace ... it worked for me.
ReplyDelete