• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

roxannez
#1 Posted : Wednesday, October 13, 2010 1:35:32 PM(UTC)
roxannez

Rank: Member

Joined: 8/28/2009(UTC)
Posts: 29

Hi,

We're moving our shopping cart from being co-located to a web hosting environment. After doing the steps below, I'm not able to access the store to login. I'm wondering what I could be missing?

Steps taken so far:

1. Database copied to web host
a. Login, password, and database name changed.
2. Web files moved to web host
a. Database connection updated in web.config file for new database server, login and password.

This is the error received when trying to access the store:
Server Error in '/store' Application.
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) +7606579
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 'Avalara.AvaTax.Adapter, Version=5.3.1.33, Culture=neutral, PublicKeyToken=34e4ef76d6267205' 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 'Avalara.AvaTax.Adapter, Version=5.3.1.33, Culture=neutral, PublicKeyToken=34e4ef76d6267205' 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.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
System.Web.Compilation.BuildManager.CompileWebRefDirectory() +31
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +312

[HttpException (0x80004005): Could not load file or assembly 'Avalara.AvaTax.Adapter, Version=5.3.1.33, Culture=neutral, PublicKeyToken=34e4ef76d6267205' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly 'Avalara.AvaTax.Adapter, Version=5.3.1.33, Culture=neutral, PublicKeyToken=34e4ef76d6267205' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897503
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333


Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209
roxannez
#2 Posted : Wednesday, October 13, 2010 1:36:43 PM(UTC)
roxannez

Rank: Member

Joined: 8/28/2009(UTC)
Posts: 29

I forgot to mention that the license file ".lic" was not moved to the web host as I'm unsure where to place it. I was hoping to register it using the admin tool, but can't do that since I'm receiving an error. THanks.
shanplourde
#3 Posted : Wednesday, October 13, 2010 1:45:58 PM(UTC)
shanplourde

Rank: Member

Joined: 9/19/2010(UTC)
Posts: 104

Could it be a hosting security issue? I just recently learned that the shopping cart software will not work in a medium trust asp.net hosting environment...full code trust is required. The hosting provider may have a hosting option that allows it. Apparently the shared hosting providers that are affiliated to BV Software run the shopping cart software in their shared hosting environments
Best regards,
Shan Plourde
www.pahsah.com
+1 (416) 628-1280
--------------------------------
Kman
#4 Posted : Wednesday, October 13, 2010 3:53:50 PM(UTC)
Kman

Rank: Member

Joined: 11/25/2003(UTC)
Posts: 370

Regards,
Kim(Kman) Rossey
www.toocoolwebs.com
BVSoftware - MerchantTribe Programming/Design, Database Programming and Business Applications
[email protected]
roxannez
#5 Posted : Friday, October 15, 2010 1:07:08 PM(UTC)
roxannez

Rank: Member

Joined: 8/28/2009(UTC)
Posts: 29

Thanks for the responses. Has anyone been able to get the Avalara.AvaTax.Adapter.dll to work on a Medium Trust hosted environment?
shanplourde
#6 Posted : Friday, October 15, 2010 1:51:17 PM(UTC)
shanplourde

Rank: Member

Joined: 9/19/2010(UTC)
Posts: 104

No experience with it but if the DLL is installed into the web server's global assembly cache, then it may work. See http://help.ablecommerce...tins/avatax_service.htm.
Best regards,
Shan Plourde
www.pahsah.com
+1 (416) 628-1280
--------------------------------
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012