Uninstalling Nevron Chart for Sharepoint and Reinstall a new version


https://www.nevron.com/Forum/Topic4871.aspx
Print Topic | Close Window

By Wiewiek Sunarko - 9 Years Ago

I had Nevron Chart for Sharepoint installed on our MOSS server.  I wanted to install a newer version of the Nevron for Sharepoint on the server. 

The first thing I did is I uninstalled the existing Nevron for Sharepoint installation via Add/Remove Programs. 

Then I ran the installer for the new version and ran the Web Part Registration wizard for the same web application.

When I tried to pull up the site, it gave me the following error:

Required permissions cannot be acquired.

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.Security.Policy.PolicyException: Required permissions cannot be acquired.

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:

[PolicyException: Required permissions cannot be acquired.]   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7604211   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57[FileLoadException: Could not load file or assembly 'Nevron.Presentation, Version=10.5.31.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142   System.Reflection.Assembly.Load(String assemblyString) +28   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46[ConfigurationErrorsException: Could not load file or assembly 'Nevron.Presentation, Version=10.5.31.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54   System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +229   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Somehow it still has reference to the old assembly.  I do know there's a page on our site that has a Nevron chart web part. 

Then I tried uninstalling Nevron for Sharepoint (the one I just installed) to see if I can get the site back working again.  But I still get the same error.  Please advise how to fix this problem.

I attached the log files from the uninstall and install process.

By Wiewiek Sunarko - 9 Years Ago

This problem has been resolved.  I had some of the DLLs from the previous version sitting in the web application's bin folder for code injection so the site still had reference to those old dlls.  Once I removed them, the site is working again.

I also had to delete the Nevron webparts manually from the site collection's web part gallery as the uninstall process failed to delete them.  Then I re-added the web parts with the newer version.

Thanks!