Anybody installed DNN on 1and1 hosting?
Last Post 12/02/2011 8:40 AM by SCMAO. 13 Replies.
Author Messages
SCMAO
Nuke Ace
Nuke Ace
Posts:56


--
11/20/2011 12:34 AM
    Hello,

    Anybody successfully installed DNN under 1and1 hosting?
    It seems for me that I have problems accessing my database and the wizard gives errors.

    Thank you,
    Steven
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/20/2011 10:07 AM
    Could you be a little bit more specific about the errors?

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    SCMAO
    Nuke Ace
    Nuke Ace
    Posts:56


    --
    11/21/2011 10:50 PM
    Hi Joe,

    Thanks for your help.

    I just talked to 1and1 support and they told me to put all the website files under a subfolder.
    They told me to go under Webfiles and select the folder conaining the DNN installation, select File/Application Settings and click Add - I guess this would create an IIS application on their hosting.
    After that, go to my domains and point the domain destination to the subfolder holding the DNN site.

    I did all that now and accessed again my domain name, which started the wizard.
    At the step where it asks for the SQL connection, when I click on the SQL server option, it tries to reload the page (probably for the additional options) and it throws an error:

    Title = Scurity Exception
    Content:
    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Security Exception
    Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    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:


    [SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
    System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
    System.Security.CodeAccessPermission.Demand() +61
    System.Environment.get_MachineName() +66
    ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.GetXmlMapPath() +31
    ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.Initialize(HttpContextBase http) +114
    ClientDependency.Core.Config.ClientDependencySettings.LoadDefaultFileMapConfig(ClientDependencySection section, HttpContextBase http) +124
    ClientDependency.Core.Config.ClientDependencySettings.LoadProviders(ClientDependencySection section, HttpContextBase http) +411
    ClientDependency.Core.Config.ClientDependencySettings..ctor() +94
    ClientDependency.Core.Config.ClientDependencySettings.get_Instance() +78
    ClientDependency.Core.Module.ClientDependencyModule.LoadFilterTypes() +37
    ClientDependency.Core.Module.ClientDependencyModule.System.Web.IHttpModule.Init(HttpApplication app) +55
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +406
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
    System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231

    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/22/2011 5:40 AM
    I've not used a 1and1 account. But, the error seems to indicate that they require the site to run under medium trust. There is a line in web.config that sets this. Set the trust level to medium.

    Their support folks ought to be able to help with that.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    SCMAO
    Nuke Ace
    Nuke Ace
    Posts:56


    --
    11/23/2011 9:28 PM
    Hi Joe,

    > ... the error seems to indicate that they require the site to run under medium trust. There is a line in web.config that sets this. Set the trust level to medium.

    Where is that setting in web.config?

    I found this section, but commented out:
    <!-- set code access security trust level - this is generally set in the machine.config

    -->

    Does it mean that is should be somewhere in the machine.config, and I don't have access to it?
    So I need to ask 1and1 to set that for me to medium? But on a shared hosting would that affect all the .NET applications?

    Thanks,
    Steven
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/23/2011 10:32 PM
    This is pushing the limits of my knowledge.

    I think that you can uncomment that line in web.config. I think that is is there for those who don't have access to machine.config. In a shared hosting environment, you would not generally have access.

    If 1and1 hosting can't get this fixed for you, then it might be time to find a different host. It's not obvious to me from a few minutes of looking that 1and1 supports DotDetNuke in any big way. There are hosts who do, and there are some inexpensive ones. There are also some very good hosting companies who support DotNetNuke and even brag about their capabilities. Being able to get knowledgeable and reliable tech support sometimes is worth the extra money.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    SCMAO
    Nuke Ace
    Nuke Ace
    Posts:56


    --
    11/25/2011 9:53 PM
    Hi Joe,

    I uncommented that line that you suggested:
    < trust level = "Medium" originUrl=".*" / >

    but now I get this error, and it highlights the line 143:

    I contacted 1and1 and they said that the shared hosting package that I have ("1&1 MS Business Package") will never work with DotNetNuke.
    They advised me to switch to 1&1 Virtual Server package. But that one costs approximately 3 times more, it is $29 /month.

    Do you know other cheaper hostings which support DNN? Are there any shared hostings which support it, or it has to be a virtual private server kind of package?

    Here is the error for now. I guess is no way to fix this, right?

    Thanks,
    Steven


    Server Error in '/' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using from an inherited configuration file.

    Source Error:

    Line 141: <!-- set code access security trust level - this is generally set in the machine.config
    Line 142: -->
    Line 143:
    Line 144: <!-- set debugmode to false for running application -->
    Line 145:


    Source File: E:\kunden\homepages\2\d345227739\www\sites\systeminnovations.info\web.config Line: 143

    Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420
    SCMAO
    Nuke Ace
    Nuke Ace
    Posts:56


    --
    11/25/2011 9:54 PM
    It looks like the forum cut off the line 143 from my error, but it looked like this:
    < trust level = "Medium" originUrl=".*" / >
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/25/2011 10:24 PM
    Well, if you read my signature line, I am a bit partial to PowerDnn. They have a special going now for $60/year.

    I'm afraid that I don't have other experience with other companies. If I were looking, though, I might look at DNN4Less and Applied Innovations.


    Joe Craig, Patapsco Research Group
    Complete DNN Support
    SCMAO
    Nuke Ace
    Nuke Ace
    Posts:56


    --
    11/26/2011 9:36 PM
    Finally I signed up with DNN4Less and they already installed a fresh DotNetNuke 6.1 on the website.
    However I still have some problem. My domain is in another registrar and I pointed the DNS to this host, so it took a while to replicate through Internet, but I got a temporary address where I could access my site.
    Now it looks like the domain is already replicated, because the site comes up and I can login at my domain name, but when I go to Host and click on Host settings, it takes me again to the temporary url (and asks me to log in again at the first time)
    The temporary domain url is < domain >.dnntempurl.com

    I have seen some settings under Host/Site Management/Site Aliases
    The default alias was the temporary domain, so I changed to the other one, but it looks like the temp url cannot be edited, but the real one I can edit or delete. So the temp one looks still more important.
    What else should I change in DotNetNuke to stay on the same domain?

    Thanks,
    Steven
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/26/2011 10:40 PM
    A DotNetNuke portal can have more than one "portal alias." You should add one for the actual URL, but leave the "temporary" one in place. When you are logged into the site with your desired alias, you can delete the other, but there is no real need to do so.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    SCMAO
    Nuke Ace
    Nuke Ace
    Posts:56


    --
    11/27/2011 7:54 PM
    I can see the actual URL under Admin/Site Settings/Site Aliases, but the long temporary one is there too.
    The actual URL alias has an Edit option on the left, but the temporary one doesn't have it, so I cannot delete it.
    The Admin and Host links are wrong from the Control panel on top (control bar?). They take me to the temp URL.
    In the DNN4Less control panel I also had "Domain Aliases" and I deleted the temp URL from there now, and since then I cannot access the Admin and Host pages normally from the top menu. I can still access them if I correct manually the address to domain/Admin.aspx

    Do I need to look in the database somewhere and correct the links, or there is still another way from control panel? If in the database, which table I should look at?

    Thanks,
    Steven
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    11/27/2011 9:12 PM
    Besides pointing DNS to the correct IP address, you will need to have "Host Headers" in IIS set so that it responds to the URL.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    SCMAO
    Nuke Ace
    Nuke Ace
    Posts:56


    --
    12/02/2011 8:40 AM
    The site is running now on DNN4Less shared hosting, so I don't have access to IIS.
    I called their customer service and they fixed for me.


    Thank you


    ---