Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN Application does not start properly, but works on refreshDNN Application does not start properly, but works on refresh
Previous
 
Next
New Post
4/12/2011 4:43 AM
 
Hi,

When my DNN installation starts (DNN Community Edition 5.6.1) I receive an error related to loading BoneSoft.CSS.DLL, as follows:

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

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.Runtime.InteropServices.COMException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

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:

[COMException (0x8000ffff): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
System.Security.Policy.PolicyLevel.GenericResolve(Evidence evidence, Boolean& allConst) +6223344
System.Security.Policy.PolicyLevel.Resolve(Evidence evidence, Int32 count, Byte[] serializedEvidence) +224
System.Web.Hosting.AspNetHostSecurityManager.ResolvePolicy(Evidence evidence) +353
System.Security.CodeAccessSecurityEngine.TryResolveGrantSet(Evidence evidence, PermissionSet& grantSet) +133
System.Security.CodeAccessSecurityEngine.ResolveGrantSet(Evidence evidence, Int32& specialFlags,
    Boolean checkExecutionPermission) +62

[FileLoadException: Could not load file or assembly 'BoneSoft.CSS, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=null' or one of its dependencies.
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase,
    Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark,
    Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity,
    StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity,
    StackCrawlMark& stackMark, Boolean forIntrospection) +192
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +118

[Configurati sException: Could not load file or assembly 'BoneSoft.CSS, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=null' or one of its dependencies.
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11392147
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +484
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +127
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization,
    String outputAssemblyName) +231
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir,
    CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +11381434
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType,
    String assemblyName, StringSet excludedSubdirectories) +175
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +629

[HttpException (0x80004005): Could not load file or assembly 'BoneSoft.CSS, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=null' or one of its dependencies.
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +80
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1126
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost,
IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters,
PolicyLevel policyLevel, Exception appDomainCreationException) +1129

[HttpException (0x80004005): Could not load file or assembly 'BoneSoft.CSS, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies.
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11524352
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +11356670 


----
On refreshing the browser, or otherwise making a subsequent request from another browser, the system works correctly.

This looks to me like some soft of permissions issue that effects the first request, but what is it likely to be? I note from the event log, that this DNN installation is operating in Medium trust, does DNN have to run in full trust?

Any help would be appreciated.

Best Regards,

Mark
 
New Post
4/12/2011 5:29 AM
 
this sounds very strange, did you check the css file mentioned for any anomaly?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/12/2011 5:42 AM
 
The file is not CSS, it's "BoneSoft.CSS.DLL" in the bin folder - I don't really know what it does, a quick search on Google suggests that it is a simple CSS parser.

I'm going to look at the user identities that are used for the App Pool, and then as a final step, I don't really have a problem with making the application "Full Trust" - I just need to refresh my memory on how to do that! My concern is that the inner exceptions revolve around "PermissionSet" parameters, and then there is a COM exception.

I wonder if the underlying COM object is 32 bit, which wouldn't be instantiable from a 64 bit environment!

I don't really have a clue what's wrong at present.
 
New Post
4/12/2011 6:09 AM
 
Hi,

It would appear that the problem occured because my Application pool was configured to operate as the system administrator account, but the user identity for the site was configured to be a much more restrictive account. Clearly this was wrong, when I changed my App Pool to use the same account as the website, the DNN first request started working!

Mark
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN Application does not start properly, but works on refreshDNN Application does not start properly, but works on refresh


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out