Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1038
  • Last Modified:

DotNetNuke Installation

I have setup a DotNetNuke site as I have done many times before, but this time I get an error on the two settings pages.  I can use all other admin pages and the rest of the site just fine.  I have done clean reinstalls about 5 time, I have reset folder permissions over and over.  If anyone is fimilar with this, please let me know what I could try.

Here is the error:
An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) at System.Reflection.Assembly.get_CodeBase() at System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly) at System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly) at System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) at System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) at System.Web.Handlers.ScriptResourceHandler.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) at System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) at System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) at System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.UI.WebControls.ValidatorCompatibilityHelper.RegisterClientScriptResource(Control control, Type type, String resourceName) at System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript() at System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Open in new window

0
CoulterTech
Asked:
CoulterTech
  • 4
  • 3
1 Solution
 
jangeadorCommented:
A friend of mine had this very same problem a while back. He is using godaddy as his hosting provider. I am looking into the cause of this problem, but in his case the solution was to cancel the hosting account and recreate a new one.
0
 
jangeadorCommented:
Since we both have godaddy, I am just wondering if our apps are on the same server and the server itself has problems. You can get your server name by going to the "Event Viewer" and look at the bottom of any particular event. Mine is P3NW3SH007.

Please let me know. Thanks.
0
 
CoulterTechAuthor Commented:
P3NW8SH002, I'm going to try the cancel hosting and resetup to see if that helps.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
jangeadorCommented:
I cancelled and tried again, but I was placed back on the same server. Please let me know what happens. I will do the same.
0
 
CoulterTechAuthor Commented:
P3NW8SH001, ok different server, same results.
0
 
jangeadorCommented:
I got the same deal. Switched servers twice and still the same results. Hopefully someone will figure out what is going on.
0
 
CoulterTechAuthor Commented:
ok I have a solution. FINALLY! It sucks you have to do it this way but it works and is the only solution I've found.


  • Start with a clean hosting account (if you have already tried to setup something up delete everything) - Make sure everything is gone including the database before you go on.  GoDaddy says wait 30 minutes after the deletion but I say that is bogus.  just make sure the database is gone (takes a couple of minutes).
  • in the Content tab go to "GoDaddy Hosting Connection"
  • go to the Content Management section and select DNN
  • Click the install button
  • Continue through the little wizard they have.  I use the subdirectory dnn for my install.  
  • After the install is complete (takes a few minutes - status can be found in the hosting connection under My Applications) navigate in a web browser to that direcotry (www.yourdomain.com/dnn)
  • go through the setup as you normally would.  Godaddy fills in most fields for you.
  • Once the site is setup go back to the hosting control panel (not connection) and go to the File Manager under content.
  • navigate into your dnn sub directory.  
  • change the number of items shown from 25 to 50
  • use the select all check mark to select all items in the list
  • click the copy button and select the html folder (your root) from the directory tree on the left then click ok
  • the copy will take a little while (go get a drink)
  • once the copy is done go to your sql database and login to the manager
  • Find the PortalAlias table and click browse
  • Click the edit pencil next to the 1 entry that should be in there.
  • in the HTTPAlias column remove the /dnn and save the changes
  • navigate to your new site www.yourdomain.com
This is pieced together from a couple different installation solutions given to me by godaddy, and also a couple installation posts for different issues from the DNN Forums.  One post that showed me what needed to be changed for the database suggested to take your site offline by creating a app_offline.htm file at the root of the DNN installation.  If you do that step don't forget to remove it before you nagivate to your new site.  I didn't do that step since I knew no one would be looking at the site while I did this.  

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now