chiarissimo, grazie ancora...
ho dunque provato a fare come mi hai indicato.
in locale gira correttamente nel debug (poi proverò stand-alone con IIS)
mentre su hosting Aruba mi da
Server Error in '/' Application.ho aggiunto
<customErrors mode="Off"/>
per visualizzare l'errore
e mi torna:
[SecurityException: Request failed.]
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +96
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +80
System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +288
System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, RuntimeAssembly asm, SecurityAction action) +70
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +40
System.Type.GetType(String typeName) +30
System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +12
System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +2045
System.Web.Configuration.CompilationSection.get_RecompilationHash() +107
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDateInternal(Int64 cachedHash) +458
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(Int64 cachedHash) +51
System.Web.Compilation.BuildManager.ExecutePreAppStart() +135
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +549
ho quindi cercato
[SecurityException: Request failed.]
ma trovo più che altro problemi relativi a connessioni a DB.
io ho solo la app di base.
ho commentato
<system.codedom>
...
</system.codedom>
come visto qui:
http://forum.aspitalia.com/forum/post/415266/Sito-Asp.net-MVC5-Trasferimento-Aruba.aspx?pageIndex=2
girando vedo che Aruba ha qualche problema non avendo Full Trust.
che non ho risolto neanche con qualche tag relativo.
ho dunque provato anche con un new project senza la selezione di "Change authentication" che ho pensato potesse avere qualche riferimento a qualche database.
cosa posso cercare per questo caso basico?
mi consigli di cambiare hosting?
vorrei solo far girare una banalità prima di passare sicuramente come mi dici ad un bel manuale.
per ora ho tolto il commento e l'errore è quello sopra.
grazie ancora
Modificato da jackIT il 05 marzo 2018 22.43 -