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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...1and1 DotNetNuke 4.3.51and1 DotNetNuke 4.3.5
Previous
 
Next
New Post
10/20/2006 7:31 PM
 
I have not tried 4.x yet, but following the FAQ that 1and1 has regarding setting up version 3.x, it works fine.

I followed their instructions and got it to work in about 5 minutes last night.  I've heard that 4.x has issues, so I wanted to try something that has no problems.

These may hold true for 4.x as well, check it out...
http://faq.1and1.com/scripting_languages_supported/asp_net/dotnetnuke/3.html
 
New Post
10/20/2006 9:40 PM
 

IF not 1and1 for hosting dotnetnuke, then who?

JR

 
New Post
10/21/2006 10:12 AM
 
1und1 (as it's named in it's home of Germany) is the pits.        Never have I have been made to look like such a fool to my clients as when I had relied on 1und1, and never will I again.

I personally can't see why people can't strategize turning enough of a buck enough to pay for their own dedicated server, webhosting is such a problematic thing - especially when you're trying to do anything but simplistic PHP scripts. Pay the extra money for a dedicated, and then get everyone you know in your immediate circle of friends and family to move their websites onto your server. Unless you live in a University belltower, this alone should foot the bill for an OK server. 

Especially given the DNN framework that is the focus here, rolling out enough sites to make it a worthwhile expense should be no big chore.

Then you can never have to answer to anyone but yourself when it comes time to tweak things.
 
New Post
10/24/2006 11:42 AM
 

All,

Sorry I've been away so long... My real job is keeping me busy.  But I do have some updates...  I am totally convinced that the problem lies with the machine.config settings on the 1and1 servers coupled with some sort of problem with the 2.0 Framework.  DNN 4.3.5 must run with high or at the least medium trust, and the 1and1 servers do NOT allow you to override the machine.config settings.  I too am very frustrated with this.  Throughout the entire DNN baseline, any time a configuration setting is accessed from the web.config, you run the chance of a security error.  What baffles me is the completely random nature of the error.  For some reason, it seems that the 2.0 Framework loses the context of the current application domain (for all of you .Net guru's, you know what I mean).  Hence, when the framework tries to access anything on the harddrive (web.config, etc...), it believes that the code is trying to access something outside of the current application's root directory.  Therefore, you get the security error.  I don't believe this is a problem with DNN , 1and1, or the 2.0 framework..but the combination of the 3.

1. The lockdown of 1and1 servers for .Net 2.0

2. A bug or problem in the .Net framework when accessing anything under your root.

3. The configuration of the subdirectories on 1and1 servers for your website.

Here's what I have modified to date:

1. Modified the Global.asax.vb file as outlined in my first post.

2.  Modified the admin\skins\currentdate.ascx.vb file to put a try catch around getting the date format as I believe that this comes out of some sort of configuration parameter in the web.config:

Try

   'FTC 09/27/2006 - ADDED TRY CATCH

   Dim objUserTime As New UserTime

   If DateFormat <> "" Then

      lblDate.Text = Format(objUserTime.CurrentUserTime, DateFormat)

   Else

      lblDate.Text = objUserTime.CurrentUserTime.ToLongDateString

   End If

   Catch ex As Exception

   End Try

3. In the DNN\Library\Components\Shared\Config.vb file I added a try catch around the methods that access the

web.config file to gracefully exit (via a try-catch) if an error is generated.  This leads to unpredictable results especially

with logging into the portal however.

Public Shared Function GetSetting(ByVal setting As String) As String

'FTC 09/27/2006 - ADDED TRY CATCH

Try

   Return WebConfigurationManager.AppSettings(setting)

Catch exc As Exception

   ' the file may be read-only or the file permissions may not be set properly

   Return Nothing

End Try

End Function

Public Shared Function GetSection(ByVal section As String) As Object

'FTC 09/27/2006 - ADDED TRY CATCH

Try

   Return WebConfigurationManager.GetSection(section)

Catch exc As Exception

   Return Nothing

End Try

End Function

4. In the DNN\Library\HttpModules\DNNMembership\DNNMembershipModule.vb file I added a try catch around the methods that access the cookies because in 2.0, it looks for the cookie options in the web.config file.  This is a deal killer.  I can't fix

this.  I added a try-catch around the accessing of the cookies, but then you get unpredictable results after you log in because it can't tell if you are logged in or not when the security exception decides to rear it's ugly head.  I'm out of options.

 

 


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
10/26/2006 10:01 AM
 

More Info.. 

As I suspected, putting DNN in a subfolder off your root on 1and1 is the problem.  It seems that for some unkown reason it loses the applications base directory path System.AppDomain.CurrentDomain.BaseDirectory gets "confused" and it defaults to using the parent's path, which is your root (i.e. / instead of /dnn or whatever your subfolder is).  It then thinks you are trying to access a path outside of the appdomain for the dotnetnuke application, and you get the dreaded system.security.fileiopermissions error. This also eliminates the need for a redirect at your root directory to redirect the user to a subfolder.  I spent all day yesterday and I got DNN 4.3.5 to work on the root of my 1and1 account.  Guess What?   No security errors.  The logs for dotnetnuke have NO MORE EXCEPTIONS!  I removed all of my hacks from the dotnetnuke modules as noted in my previous post and still no exceptions.  I've been pounding the site and have not gotten the security error. 

Here's what I would suggest and if someone can give it a go on their 1and1 account, that would be great.  Follow the instructions exactly.

1.  Create a directory called dnn off your root.    Also..VERY IMPORTANT:

CLEAN UP ANY PREVIOUS INSTALLS OF DOTNETNUKE INCLUDING ANY TABLES THAT EXIST IN YOUR SQL SERVER DATABASE.  I can't stress this enough... START FRESH!!! 

2.  Set up your web.config file and FTP it along with the dnn INSTALL files to the dnn directory created above with the correct connectionstring settings, etc... as outlined in the DNN installation guide.  I did not upload the ZIP file then unzip it using 1and1 webfiles.  I ftp'd the extracted DNN Install zip file from my localcomputer to the DNN Directory above. Give the network service and IUSR account modify and write permissions for now to this directory after you ftp the files using the 1and1 webfiles application.  I know some people said don't do this, but permissions don't mean anything if your portal doesn't work.  You can come back later and remove these permissions later if you like (I haven't yet..so do it at your own peril). Then create an application using the 1and1 webfiles app called dnn that points to the directory called dnn you created off the root.

3. Create your portal site just like the DNN Install Guide instructions tell you.  You WILL MOST LIKELY GET ERRORS DURING THE INSTALL.  Some have to do with not being able to write to the web.config file to add the code subdirectory for the reports or the survey modules or insert the machine key, etc..  You can fix these later (i.e. add these directory paths for the code subdirs). At the very least, it should create your portal site.  If it doesn't get that far, something else is wrong (bad connection strings, leftover database tables from a previous install, etc...).  I can only tell you when I started fresh, the install worked except for the writing of the code subdir to the web.config file.

4.  Now we start hacking.  USE THE WEBFILES APPLICATION.  DO NOT USE YOUR FTP PROGRAM TO MOVE THE DIRECTORIES.   Using the 1and1 webfiles application, move all of the subdirectories that are contained in the dnn folder you created in step 1 up to your root folder.  Select a folder, select move, then move it to the root (/).  Repeat this for every folder (the webfiles application will move all subfolders) in the dnn folder.  You cannot move the whole DNN Folder to the root.  Don't try.  YOU CAN'T.  You have to select a subfolder (i.e. admin) and move it. Remember to also move all of the FILES contained in the dnn subfolder.   In other words, the dnn folder should be completely EMPTY after you are done and all of the subdirs and files should now life at the root (/).

5.  Open up your portalalias table in your SQL Server Database and edit the 1 record that is in there.  You should see a record with a PortalID column of 0 (thats ZERO) AND an HTTPAlias column of www.yourdomainname.com/dnn.  Change this to www.yourdomainname.com.  VERY IMPORTANT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (Have I got your attention?) DO NOT PUT A TRAILING SLASH ON THE URL IN THE HTTPAlias column.  AND NO HTTP:// in front of it.  It should just be your domain name.  My domain is www.raiseepilepsy.org.  And that's all that's in my HTTPAlias column.

6.  VERY IMPORTANT.  DO NOT ACCESS YOUR SITE RIGHT NOW.   YOU NEED TO RECYCLE YOUR APP first.  Open up your web.config file at the root of your site (which should be in the /) and modify it.  You can add spaces after a tag or whatever.  It just needs to be written back to the webserver so .Net will fire the Application_Start event.

7.  Your dnn folder you created in step 1 should be totally empty.  You can delete it and the application you created that points to this folder using the 1and1 webfiles app.

8.  Now...I did notice something.. It took awhile for the site to work.  So I suggest you walk away from your computer for 10 minutes.  I'm not so sure that changes you make in webfiles are really immediate on 1and1 servers.   I think it takes some time.  If things aren't working, try modifying your web.config file again.

9.  I had to fix the following modules because of bugs in these modules.  THIS HAS NOTHING TO DO WITH 1AND1 OR THE SERVERS.  They are documented bugs in the DNN Baseline.  Google the errors and you will find forum posts that show you how to fix them by re-running certain SQL scripts:

   Announcements

   Links

   Surveys

   Events

   Adding code subdirectories for the reports and survey modules to the web.config file.

 

GOOD LUCK FOLKS...


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...1and1 DotNetNuke 4.3.51and1 DotNetNuke 4.3.5


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