Ho installato la rel 1.0.7 Microsoft.CodeDom.Providers.DotNetCompilerPlatform, e modificato il web.config per avere un accesso non Full Trust
Ora mi da errore su questa riga , la 14; VS non segnala come errata questa configurazione, l'Hosting Aruba si.
a meno che non manchi il file
presente su C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config, ma dovrebbe essere presente nell'Hosting.
Questo l'errore
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
Source Error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: D:\inetpub\webs\efalcoit\test5\web.config Line: 14
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2106.0
<?xml version="1.0"?>
<!--
Per altre informazioni su come configurare l'applicazione ASP.NET, vedere
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
<customErrors mode="Off"/>
<securityPolicy>
<!-- <trustLevel name="Medium" policyFile="internal"/> -->
<trustLevel name="Medium" policyFile="web_mediumtrust.config"/>
</securityPolicy> <!-- linea 14 -->
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
</compilers>
</system.codedom>
</configuration>
Non segnala problemi di restrizioni di accesso, quanto a "roslyn", ho fatt oun test disintallando
- Microsoft.CodeDom.Providers.DotNetCompilerPlatform
- Microsoft.NetCompiler
Web.config variato
<?xml version="1.0"?>
<!--
Per altre informazioni su come configurare l'applicazione ASP.NET, vedere
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
<customErrors mode="Off"/>
<securityPolicy>
<!-- <trustLevel name="Medium" policyFile="internal"/> -->
<trustLevel name="Medium" policyFile="web_mediumtrust.config"/>
</securityPolicy>
</system.web>
</configuration>
ma stesso errore
Avere un livello Full Trust non credo sia la soluzione a tutto, ci sara' pure qualche WebApp che gira su aruba in Medium Trust, il problema deve essere altro.