Learn More





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 ...Page load exception after copying sitePage load exception after copying site
New Post
4/14/2013 4:50 PM

Hi All;

I copied my DNN installation from another computer - I copied/restored the database, and also all of the installation files. 

The new site launches fine, and I log on as host. All the pages are there, but I get page load exceptions on the Site Management, ActivityFeed, and other core pages. Can anyone give a hint as to how to fix this?  I have tried a few things, and suspect it might have to do with the site settings->alias.

I'm stumped.  Please help.

Here is the log entry:

AssemblyVersion: 6.2.5

PortalID: 0

PortalName: Docent Prototype Website

UserID: 1

UserName: host

ActiveTabID: 17

ActiveTabName: Site Management

RawURL: /dotnetnuke install files/dotnetnuke_community_6.2.5/Host/SiteManagement/tabid/17/ctl/Edit/mid/321/pid/0/portalid/0/Default.aspx?popUp=true

AbsoluteURL: /DotNetNuke%20Install%20Files/DotNetNuke_Community_6.2.5/Default.aspx

AbsoluteURLReferrer: http://localhost/DotNetNuke%20Install%20Files/DotNetNuke_Community_6.2.5/Default.aspx?tabid=17&error=The+type+initializer+for+%27FormatterGenerator%27+threw+an+exception.

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: a20da950-5a04-4acb-bec9-b928050c46aa

InnerException: The type initializer for 'FormatterGenerator' threw an exception.


FileLineNumber: 0

FileColumnNumber: 0

Method: System.Web.CachedPathData.GetVirtualPathData


Message: DotNetNuke.Services.Exceptions.PageLoadException: The type initializer for 'FormatterGenerator' threw an exception. ---> System.TypeInitializationException: The type initializer for 'FormatterGenerator' threw an exception. ---> System.ArgumentException: The virtual path '/DotNetNuke%20Install%20Files/DotNetNuke_Community_6.2.5/Default.aspx' maps to another application, which is not allowed. at System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) at System.Web.HttpContext.GetFilePathData() at System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) at System.Web.HttpRequest.get_Browser() at System.Web.UI.Page.SetIntrinsics(HttpContext context, Boolean allowAsync) at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.Mvc.AntiForgeryDataSerializer.FormatterGenerator.TokenPersister.CreateFormatterGenerator() at System.Web.Mvc.AntiForgeryDataSerializer.FormatterGenerator..cctor() --- End of inner exception stack trace --- at System.Web.Mvc.AntiForgeryDataSerializer.get_Formatter() at System.Web.Mvc.AntiForgeryDataSerializer.Serialize(AntiForgeryData token) at System.Web.Mvc.HtmlHelper.GetAntiForgeryTokenAndSetCookie(String salt, String domain, String path) at System.Web.Mvc.HtmlHelper.AntiForgeryToken(String salt, String domain, String path) at DotNetNuke.Framework.ServicesFrameworkImpl.RegisterAjaxAntiForgery(Page page) at DotNetNuke.Framework.PageBase.OnPreRender(EventArgs e) at DotNetNuke.Framework.DefaultPage.OnPreRender(EventArgs evt) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---



New Post
4/15/2013 12:31 AM

Hi Folks;

I Googled around for this error, and found reports that spaces in one or more of the directories in the installation file path can throw this error.  I re-configured all the files to a direct sub-directory under wwwroot (no spaces) and now this problem seems to have been resolved.   I didn't have the problem with this on XP, but then I had set up a virtual directory as the site, with a physical path to the installation directory, The virtual directory had no spaces in any component of the path. 

Most of the issues I've had are with the initial set-up, before the fun part of building a terrific web site can begin!


New Post
4/17/2013 3:23 AM

Hi Rigel,

You can view the below link to know in detail, how to set up the dnn website from another server.

Hopefully, it will help you.

Avinash Kumar [ DNN Developer, Mindfire Solutions,India ]

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Page load exception after copying sitePage load exception after copying site

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?