DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Site fails to run on shared hosting

 3 Replies
 2 Subscribed to this topic
 28 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 33
Growing Member
MVP
MVP
You're an MVP!

I have built a small site locally and uploaded it to a shared hosting environment. I have a number of other DNN sites with the same hoster. None are DNN 9.x

This site is DNN 9.6.1 and I see the error below. I have spoken to the hosting provider and they have looked at it but cannot see what the problem is. Can any of the selective brain trust here give any pointers as to where I can look for a solution?

There are some entries in web.config that need to be removed for the shared hosting. Custom Headers and rewrite rules for example.

"File load" seems to be the problem suggesting permissions? I have checked permissions and they are the same as other sites running succesfully.

Google gives some strange suggestions for this error.

Declan

 

Server Error in '/' Application.


The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

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: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Source Error:

 

<code>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. </code>


Stack Trace:
 

<code>
&#91;FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)&#93;
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +96
   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +62
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +50

&#91;ConfigurationErrorsException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)&#93;
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +572
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +31
   System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +59
   System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +59
   System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +221
   System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1103
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo&#91;&#93; handlers) +122
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo&#91;&#93; handlers, IntPtr appContext, HttpContext context) +173
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +255
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +347

&#91;HttpException (0x80004005): The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)&#93;
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737
</code>

 


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

 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

This appears to be an artifact from a hosting plan that's highly locked down.  I assume this website ran fine locally?  Have you tried raising the trust level in the web.config?  I haven't seen this error before, by the way.  

Growing Member
Posts: 33
Growing Member
MVP
MVP
You're an MVP!

Thanks Will,

Yes the site is running fine locally.

I deleted the hosting instance and created a new webspace using server 2012. Taking it one step at a time I have arrived at:
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.HttpModules.OutputCaching.OutputCacheModule.OnResolveRequestCache(Object sender, EventArgs e) +675
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


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

I know access to the db is OK as the Event Log shows me an entry for application start followed by a General Exception
AbsoluteURLDefaultDataProviderDotNetNuke.Data.SqlDataProvider, DotNetNukeExceptionGUID2881f5b2-fb4c-4f58-a25a-ea6231c44acc

This does not tell me much, unfortunately, but the original error displayed above mentions output caching.

Declan

PS: The server does serve up a html page

Growing Member
Posts: 33
Growing Member
MVP
MVP
You're an MVP!
Bingo Will, your previous response at https://www.dnnsoftware.c...null-reference-error was the solution to my problem.

Thank you,
Declan

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved