HomeHome Product Discus... Product Discus...SmithCartSmithCartZip2Tax Upload ErrorZip2Tax Upload Error
Previous
 
Next
New Post
10/13/2011 12:55 PM
 

I am trying to upload the Tax Table for GA, and I get the following error...

A critical error has occurred.Could not load file or assembly 'FileHelpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e0c08d59cc3d657' or one of its dependencies. The system cannot find the file specified.

Any help would be greatly appreciated.

 
New Post
10/13/2011 1:38 PM
 
The filehelpers.dll is included in the SmithCart install zip which can then be copied to your \bin folder. The reason its not copied during the install is because it requires full trust.

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/20/2011 6:55 AM
 

Thanks for the responce.

I RDP into the server and copied the file into the DNN\Bin folder.  When I do that I get the following results.  How do I load the filehelpers.dll file?

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) +7606231
   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 'FileHelpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e0c08d59cc3d657' 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 'FileHelpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e0c08d59cc3d657' 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) +125
   System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304

[HttpException (0x80004005): Could not load file or assembly 'FileHelpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e0c08d59cc3d657' 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 'FileHelpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e0c08d59cc3d657' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8909915
   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.5448; ASP.NET Version:2.0.50727.5420

 
New Post
10/20/2011 4:07 PM
 
Hi Randy,

The reason the filehelpers.dll is not copied during the install is because it requires a full trust environment. Are you running the Cart in a full trust or shared environment?

Thanks,
 
New Post
10/26/2011 8:28 AM
 

We have installed DNN on our dedicated Server that we control.  It is a Windows 2008 Server, and we just did a standard install of DNN.  When I look at the “.NET Trust Level” in IIS it shows “Full (Internal)”  So I am not sure if that says we are running in Full Trust.  But I believe so.  Again, when I copy the filehelpers.dll file into the Bin directory.  The whole sites craps out, until I move the file back out.  I have looked at the Windows Security settings on the DLL, it is the same as any other file in that directory.  Is there something I am missing that I need to do?

 
New Post
10/26/2011 10:18 PM
 

Check your web config and make sure you have the following line for full trust:

 

<!-- set code access security trust level - this is generally set in the machine.config -->
<trust level="Full" />

At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
11/7/2011 11:06 AM
 

I'm having the same issue:

1) initially received error "A critical error has occurred.Could not load file or assembly 'FileHelpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e0c08d59cc3d657' or one of its dependencies. The system cannot find the file specified."

2) after copying FileHelpers.dll to /bin folder it received following error:

 

Server Error in '/' Application.


Request timed out.

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.Web.HttpException: Request timed out.

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: 



[HttpException (0x80004005): Request timed out.]


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

Our DNN is hosted with PowerDNN.

What should we do next?

 
New Post
11/7/2011 8:13 PM
 
Hi Mike,

The reason the filehelpers.dll is not copied during the install is because it requires a full trust environment. Are you running the Cart in a full trust or shared environment?

Thanks,
 
New Post
11/9/2011 8:26 AM
 

So do I need to reinstall Smith Cart after making that change?  Because if I copy FileHelpers.dll to the bin directory, I get the same blow up message as Dave.  Also, if I reinstall Smith Cart, what will happen to the information I have loaded into our shopping cart?

 
New Post
11/9/2011 1:08 PM
 
Hi Randy,
No need to reinstall SC, I recommend one of the following to options:

1. If you need to use the tax import you will need to configure your site for full trust, the reason your getting that error is because your site is not running full trust required by the filehelpers dll

2. Remove the filehelpers dll from your bin folder but you wont be able to use the built in sc tax import. As an alternate solution if you are unable to configure full trust you could use the ssms import wizard to import your tax data/


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartZip2Tax Upload ErrorZip2Tax Upload Error