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

Notification

Icon
Error

SolsticeNext
#1 Posted : Monday, November 17, 2008 3:40:29 PM(UTC)
SolsticeNext

Rank: Member

Joined: 11/17/2008(UTC)
Posts: 6

I am having some errors, that I have seen a couple of times on the Forums, but the answers are mixed. For now and for my own future reference Does BVCommerce Require a Full Trust Server Environment? or can it run in Medium Trust that does not need to be altered.

Trying to use Authorize.net
nsoftware.IBizPayWeb Error
I hade to remove CyberSource.dll as well

Receive this error:
Code:


Required permissions cannot be acquired.

Stack Trace:

[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2770052
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 'nsoftware.IBizPayWeb, Version=3.3.2837.0, Culture=neutral, PublicKeyToken=cdc168f89cffe9cf' 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) +54
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32
Matt Hunt
Principal Consultant
SolsticeNext
www.solsticenext.com
Andy Miller
#2 Posted : Monday, November 17, 2008 4:52:25 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Prior to SP4, BVC5 would not run with the Medium Trust configuration that Microsoft installs with .NET. I don't know if that changed in SP4 (probably not though).
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
SolsticeNext
#3 Posted : Monday, November 17, 2008 5:01:11 PM(UTC)
SolsticeNext

Rank: Member

Joined: 11/17/2008(UTC)
Posts: 6

Your probably right I just received this error trying to clone a product, looks like I'll be requesting a server transfer...

Code:

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:


Line 28: If product IsNot Nothing Then
Line 29: If product.Bvin <> String.Empty Then
Line 30: Dim newProduct As Catalog.Product = product.Clone(ProductChoicesCheckBox.Checked, ImagesCheckBox.Checked)
Line 31: If InactiveCheckBox.Checked Then
Line 32: newProduct.Status = Catalog.ProductStatus.Disabled



Source File: D:\Inetpub\ergonomicsalifestyle\BVAdmin\Catalog\ProductClone.aspx.vb Line: 30

Stack Trace:


[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.SpecialDemand(PermissionType whatPermission, StackCrawlMark& stackMark) +0
System.Security.CodeAccessPermission.DemandInternal(PermissionType permissionType) +20
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +60
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +131
BVSoftware.Bvc5.Core.Catalog.InternalProduct.Clone(Boolean cloneProductChoicesAndInputs, Boolean cloneProductImages) in InternalProduct.vb:1442
BVSoftware.Bvc5.Core.Catalog.Product.Clone(Boolean cloneProductChoicesAndInputs, Boolean cloneProductImages) in Product.vb:908
BVAdmin_Catalog_ProductClone.Save() in D:\Inetpub\ergonomicsalifestyle\BVAdmin\Catalog\ProductClone.aspx.vb:30
BVAdmin_Catalog_ProductClone.CloneButton_Click(Object sender, ImageClickEventArgs e) in D:\Inetpub\ergonomicsalifestyle\BVAdmin\Catalog\ProductClone.aspx.vb:22
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.bvadmin_catalog_productclone_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




Matt Hunt
Principal Consultant
SolsticeNext
www.solsticenext.com
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