an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Installation > Installation on GoDaddy.com
Last Post 4/14/2009 2:39:37 PM By lukezy. 6 replies.
4/13/2009 1:22:14 PM
khotrahul
Posts: 5
Joined: 2/3/2009
Installation on GoDaddy.com
I am installing DotShoppingCart open source version 2.0 on GoDaddy Shared hosting.
I copied the web-site from my local machine to GoDaddy. I still need to configure the Database completely.
 
When I access the web-site it throws an exception

<Server Error in '/' 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) +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 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' 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

[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +211
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +185
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +350
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
   System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +644

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279

 
 

I understand this could be because of the FULL trust bug in enterprise library.
I found this article which explains how to solve the issue and make it work in MEDIUM trust.
 
My Question is :
Can I build the DLLs based on the Patch 2554 and just replace the Enterprise DLLs in DotShopping cart with the new DLLs ??
Will it work? Or do I need to make any change to the source code of Enterprise Library (to make it work in DotShopping cart environment??)
 
4/13/2009 1:41:55 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Installation on GoDaddy.com
We are on track to upgrade to EntLib 4.1 in the next release (open source edition V3). In the meantime you can try this thread.
DotShoppingCart Staff
4/13/2009 1:46:40 PM
khotrahul
Posts: 5
Joined: 2/3/2009
Re: Installation on GoDaddy.com
Thanks for your quick reply.
 
I cannot find "ConfigurationSourceFactory.cs" in my version 2 source.
 
Anyway, I have downloaded Ent. Library 4.1, my question is
=> Should I just replace the old DLLs v 2.1 with this v 4.1. Will it work as is? or do I need to make any change to DotShoppping Source?
 
 
Also the thread still seems unresolved...
 
4/13/2009 1:56:09 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Installation on GoDaddy.com
It would work as is mostly. I recall there was one or two issues that I fixed in EntLib 2.1. Try replacing the old dlls with the 4.1 ones and report back if you have any issues. I should give you solution to work around these issues.
DotShoppingCart Staff
4/14/2009 12:24:28 AM
khotrahul
Posts: 5
Joined: 2/3/2009
Re: Installation on GoDaddy.com
Now I am getting following error
All I did was
1. Copied the Ent. lib 4.1.0.0 DLLs over Ent. Lib 2.0.0.0 files
2. Changed the Ent. Lib version from 2.0.0.0 to 4.1.0.0 in web.config
 
Please help....
 
 
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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. 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
 
Stack Trace:

[FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   DotShoppingCart.OpenSource.HttpModules.UrlRewriterHttpModule.get_DynamicPages() in UrlRewriterHttpModule.cs:51
   DotShoppingCart.OpenSource.HttpModules.UrlRewriterHttpModule.BeginRequest(Object sender, EventArgs e) in UrlRewriterHttpModule.cs:89
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
 
 
 
4/14/2009 2:17:48 PM
khotrahul
Posts: 5
Joined: 2/3/2009
Re: Installation on GoDaddy.com
Any help ...please? I just want to test the concept but having hard time configuring on GoDaddy.com
4/14/2009 2:39:37 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Installation on GoDaddy.com
I think you will have to recompile the solution. It seess that dlls in web\bin directory are still referencing the V2 EntLib. Try updating the references in the projects and recompile.
DotShoppingCart Staff