Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Adriano Fabri 458 posts 1601 karma points
    May 02, 2016 @ 14:01
    Adriano Fabri
    0

    Not working on Umbraco 7.4.3

    Hi, there are some problems with Umbraco 7.4.3

    Server Error in '/' Application.
    
    Compilation Error
    
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
    
    Compiler Error Message: CS0234: Il tipo o il nome dello spazio dei nomi 'Helpers' non esiste nello spazio dei nomi 'Microsoft.Web'; probabilmente manca un riferimento a un assembly
    
    Source Error:
    
    
    Line 29:     using Umbraco.Core.Models;
    Line 30:     using Umbraco.Web.Mvc;
    Line 31:     using Microsoft.Web.Helpers;
    Line 32:     using umbraco;
    Line 33:     using Examine;
    
    Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1e4d3402\7a21bcf0\App_Web_dialogue.cshtml.19459672.l-axdi3s.0.cs    Line: 31 
    

    I tried to copy the Microsoft.Web.Helpers.dll (taken from Umbraco 7.2.1) but I received this error:

    Errore server nell'applicazione '/'.
    
    Tentativo di accesso al metodo SecurityCritical 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' da parte del metodo SecurityTransparent 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' non riuscito.
    
    Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere la traccia dello stack. 
    
    Dettagli eccezione: System.MethodAccessException: Tentativo di accesso al metodo SecurityCritical 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' da parte del metodo SecurityTransparent 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' non riuscito.
    
    Errore nel codice sorgente: 
    
    Durante l'esecuzione della richiesta Web corrente è stata generata un'eccezione non gestita. Per informazioni sull'origine e la posizione dell'eccezione, vedere la traccia dello stack dell'eccezione riportata di seguito.
    
    Traccia dello stack: 
    
    
    [MethodAccessException: Tentativo di accesso al metodo SecurityCritical 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' da parte del metodo SecurityTransparent 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' non riuscito.]
       Microsoft.Web.Helpers.PreApplicationStartCode.Start() +52
    
    [InvalidOperationException: Il metodo di inizializzazione del preavvio dell'applicazione Start sul tipo Microsoft.Web.Helpers.PreApplicationStartCode ha generato un'eccezione con il seguente messaggio di errore: Tentativo di accesso al metodo SecurityCritical 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' da parte del metodo SecurityTransparent 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' non riuscito..]
       System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +874
       System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +169
       System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +166
       System.Web.Compilation.BuildManager.ExecutePreAppStart() +176
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +882
    
    [HttpException (0x80004005): Il metodo di inizializzazione del preavvio dell'applicazione Start sul tipo Microsoft.Web.Helpers.PreApplicationStartCode ha generato un'eccezione con il seguente messaggio di errore: Tentativo di accesso al metodo SecurityCritical 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' da parte del metodo SecurityTransparent 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' non riuscito..]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712
    

    What can I do to use your project?

    Thank you Adriano

  • Kåre Petersen 5 posts 26 karma points
    May 06, 2016 @ 13:47
    Kåre Petersen
    0

    Have you remembered to copy the web.config file under /Views to the server although.

  • Adriano Fabri 458 posts 1601 karma points
    May 16, 2016 @ 09:21
    Adriano Fabri
    0

    What web.config? :-o

    I only installed your package and at the end of it I pushed the button to complete the installation.

    I didn't see nothing about the copy of web.config under /Views.

    Can you explain what do you mean?

    Thanks

  • Adriano Fabri 458 posts 1601 karma points
    May 16, 2016 @ 10:01
    Adriano Fabri
    0

    OK I found in App_Plugins\Dialogue\Themes\Default\Views your web.config. I copied it into \View folder, but I receive the same error.

    I tried to install in my project the Microsoft.Web.Helpers with Package Manager Console with this command:

    PM> Install-Package microsoft-web-helpers
    

    but I receive this compatibility error:

    Install-Package : Unable to resolve dependencies. 'Microsoft.AspNet.WebPages 3.2.3' is not compatible with 'microsoft-web-helpers 2.1.20710.2 constraint: Microsoft.AspNet.WebPages (≥ 2.0.0 && < 2.1.0)', 'Microsoft.AspNet.Mvc 
    5.2.3 constraint: Microsoft.AspNet.WebPages (≥ 3.2.3 && < 3.3.0)'.
    At line:1 char:1
    + Install-Package microsoft-web-helpers
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    

    What can I do now?

  • Kåre Petersen 5 posts 26 karma points
    May 16, 2016 @ 14:30
    Kåre Petersen
    0

    No.. There is a web.config in the View folder.

  • Adriano Fabri 458 posts 1601 karma points
    May 16, 2016 @ 14:44
    Adriano Fabri
    0

    I found a web.config file into \App_Plugins\Dialogue\Themes\Default\Views folder.

    where I must copy it?

  • John Bergman 483 posts 1132 karma points
    Jul 08, 2016 @ 05:59
    John Bergman
    0

    I have it running, though I have other problems I am still trying to resolve. Check this url out for a description of how to correct the compile issue.

    http://www.codeshare.co.uk/blog/getting-dialogue-forum-package-to-work-with-umbraco-743/

Please Sign in or register to post replies

Write your reply to:

Draft