The problem with the roslyn, it contains executable files that consumes a lot of server resources that effect the performance of the installation. (I have a dedicated server and have experienced high cpu as seen in the task manager)
I have an installation that was upgraded from version 4.x.x and there is a lot of redundant entries, deleting the roslyn will cause an exception as follows:
=================================================================================================================== Server Error in '/' Application.
Could not find a part of the path 'C:\inetpub\Clone\bin\roslyn\vbc.exe'.
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.DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\Clone\bin\roslyn\vbc.exe'.
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:
[DirectoryNotFoundException: Could not find a part of the path 'C:\inetpub\Clone\bin\roslyn\vbc.exe'.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +490 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +833 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +127 Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.get_CompilerName() +128 Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames) +830 Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +192 System.Web.Compilation.AssemblyBuilder.Compile() +1960 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +323 System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +658 System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +173 System.Web.Compilation.BuildManager.CompileCodeDirectories() +443 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +312
[HttpException (0x80004005): Could not find a part of the path 'C:\inetpub\Clone\bin\roslyn\vbc.exe'.] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +73 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +668 System.Web.Compilation.BuildManager.CallAppInitializeMethod() +39 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +897
[HttpException (0x80004005): Could not find a part of the path 'C:\inetpub\Clone\bin\roslyn\vbc.exe'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0
===================================================================================================================
To resolve the exception, one will have to delete the following entry in the web.config, and please be patient it will take around 10 mins, to recompile.
After deleting the roslyn folder and the below web.config entry, have noticed a considerable;e improvement in the DNN performance
|