Installing mojoPortal to 1and1 hosted space

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
8/5/2008 1:23:35 PM
Gravatar
Total Posts 6

Installing mojoPortal to 1and1 hosted space

I am having trouble setting up mojoPortal.  My provider, 1and1.com, doesn't allow full-trust, so I followed all, I think, of the instructions for setting up under Medium or reduced trust.  This includes using the medium-trust Web.config and adding to the user.config these items (with personal info obscured):

<!-- Running in reduced trust -->
<add key="RunningInMediumTrust" value="true" />

<!-- The database connection info -->
<add key="MSSQLConnectionString" value="server=mssql01.1and1.com; UID=***; PWD=***; database=***" />

<!-- Setup should be disabled during normal use -->
<add key="DisableSetup" value="false" />

<!-- This helps search function in medium trust -->
<add key="Lucene.Net.lockdir" value="E:\kunden\homepages\xx\xx\web\Data\Sites\1\index" />
 

I don't think I made any changes to the medium-trust Web.config, except to enter SMTP info.  On the recommendation of 1and1 FAQs I have set up the application one directory deep into the root, in a folder named web, and added a redirecting script to the root.  I can get to the front page, but when I click to sign in I wind up with a Security Exception:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, 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() +59
System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118
System.Reflection.Assembly.get_CodeBase() +32
System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly) +31
System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly) +36
System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +58
System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +59
System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +336
System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +115
System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +115
System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +9

 

Can mojoPortal be set up with a 1and1 MS Developer package at all, and if so, any hints on the next step?

 

Thank you.

8/5/2008 1:28:59 PM
Gravatar
Total Posts 18439

Re: Installing mojoPortal to 1and1 hosted space

Hi,

I don't have experience with 1and1 shared hosting, I've only used their VPS machines and dedicated servers.

They are wrong to advise you to put it one level deep and do this redirect, that sounds kooky to me.

Please move everything to the root and let me know if you still have trouble.

Also make sure you delete DotNetOpenId.dll from the bin folder.

Best,

Joe

8/5/2008 1:49:17 PM
Gravatar
Total Posts 6

Re: Installing mojoPortal to 1and1 hosted space

I did remove the DotNetOpenId.dll, but neglected to mention it.

I will try and arrange the installation as you suggest, but the issue is multiple domains using the same space.  I was at first very hopeful for mojoPortal's ability to host multiple sites, but now see that that will probably not work as I'd anticipated. 

Thanks for your quick reply, I'll try and get a single domain running from a single install into the root, and then see what next.

 

http://faq.1and1.com/scripting_languages_supported/asp_net/asp_net_2_0/1.html

8/5/2008 2:28:01 PM
Gravatar
Total Posts 6

Re: Installing mojoPortal to 1and1 hosted space

Running now from mojoPortal installation located in root folder, got identical error from original post when I clicked Sign In.

8/5/2008 2:30:45 PM
Gravatar
Total Posts 18439

Re: Installing mojoPortal to 1and1 hosted space

Are you sure the site is configured for ASP.NET 2.0 and not ASP.NET 1.1?

8/5/2008 3:00:25 PM
Gravatar
Total Posts 6

Re: Installing mojoPortal to 1and1 hosted space

I don't know if I follow your last question.  Is my host claiming to be running ASP.NET 2.0, yes:

http://faq.1and1.com/scripting_languages_supported/asp_net/1.html
 

It looks to me like 1and1 shared hosting won't work.  Here's what it says about DotNetNUKE:

"Which packages support DotNetNuke?


No shared hosting packages support DotNetNuke.
Only Windows VPS and Dedicated servers will run DotNetNuke."

 

I don't know why 1and1 sells a "Developer" package with 99% of the things a developer might want to try disabled. I'll take my problem up with them, thanks for your time.

8/5/2008 3:05:00 PM
Gravatar
Total Posts 18439

Re: Installing mojoPortal to 1and1 hosted space

Often, they support multiple versions of ASP.NET and you have to specify which version you want to use somewhere in your hosting control panel.

Best,

Joe

8/5/2008 4:04:16 PM
Gravatar
Total Posts 6

Re: Installing mojoPortal to 1and1 hosted space

Me again! While I wait for 1and1 support to get back to me, I'm still hoping to nudge this into working.  I see that the ASP.NET version is specified on the error page, so I know it's running 2.0.  Here's the full text:

 

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.FileIOPermission, 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.FileIOPermission, 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() +59
System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118
System.Reflection.Assembly.get_CodeBase() +32
System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly) +31
System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly) +36
System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +58
System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +59
System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +336
System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +114
System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +115
System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +9


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

Now, I have given NETWORK SERVICE and IUSR_XXX Modify permission on the Data folder and contents, using a tool from 1and1 that allows some limited security and application settings (they call it "Webfiles"...).  Are there any other folders or files I should relax Security on?  The error message mentions FileIOPermission.

 

  I'll try unsetting and resetting the security settings for Data, maybe something in there didn't get it--"Webfiles" makes this a slower process than it really need be. 

8/5/2008 4:26:50 PM
Gravatar
Total Posts 18439

Re: Installing mojoPortal to 1and1 hosted space

Hi,

Ok , one more thing you can try. Sometimes these hosts use a custom level of security that is not exactly "Medium Trust". This error still looks like a medium trust issue to me because they always involve a security exception, and especially when I see an error on the request for permission I can tell its definitely related to trust level.

You can try deleting the System.Web.Extensions.dll from the bin folder, this is the dll that contains ScriptManager and it says the error is happening in ScriptManager. System.Web.Extensions.dll is needed for the ASP.NET AJAX framework, but its possible they have it installed in the GAC (Global Assembly Cache) on the server. If so, the one in the GAC "should" be trusted, and generally it "should" use the one from the GAC in preference to the one in the /bin folder. So deleting it from the bin folder may force it to use the one in the GAC if it exists. If it doesn't exist you'll get a different error most likely.

Hopefully MS AJAX is supported and is not on their list of things that don't work.

Thats about the last thing I can think of that I would try.

Hope it helps,

Joe

8/5/2008 4:35:28 PM
Gravatar
Total Posts 18439

Re: Installing mojoPortal to 1and1 hosted space

One other wild card idea. If you see anything in the control panel that lets you choose the appPool type, if there is an option for "Classic" app pool, choose that one. This is something new in Windows Server 2008 IIS 7 web server, so if you see something like this then you are hosted in IIS 7.

Best,

Joe

8/5/2008 4:40:22 PM
Gravatar
Total Posts 18439

Re: Installing mojoPortal to 1and1 hosted space

Or, if you don't have an option for appPool type but you do know it to be hosted on Windows 2008, then paste this into the very bottom of your Web.config, but inside the </configuration> tag file and it may solve it.

<system.webServer>
<!-- this section only applies to IIS 7-->
<validation validateIntegratedModeConfiguration="false"/>

<modules>
<add name="GCheckoutBasicAuthenticationModule" type="mojoPortal.Web.GCheckoutBasicAuthenticationModule, mojoPortal.Web" />

<add name="BannedIPBlockingHttpModule"
type="mojoPortal.Web.BannedIPBlockingHttpModule, mojoPortal.Web"/>

<add name="UrlRewriter" type="mojoPortal.Web.UrlRewriter, mojoPortal.Web" />

<!-- AJAX Extensions support -->
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</modules>
</system.webServer>

Maybe restore the System.Web.Extensions.dll if it complains about it missing.

Best,

Joe

8/5/2008 6:06:13 PM
Gravatar
Total Posts 6

Re: Installing mojoPortal to 1and1 hosted space

1and1 are definitely not using IIS7.  In fact, it appears the opposite is the problem--they are behind the times.

 

http://www.google.com/search?q=ajax+1and1
 

I tried removing the System.Web.Extensions.dll from the bin, and got errors complaining about lines in the web.config referring to it...so not in GAC.  I tried commenting out the lines in web.config, but no dice.

 

Looks like I'll be finding a new host...hopefully I'll be back in a couple days with a live site!

8/6/2008 5:15:21 PM
Gravatar
Total Posts 36
Anchorage, Alaska

Re: Installing mojoPortal to 1and1 hosted space

I was using 1and1 hosting.  They are definitely behind in the Windows hosting.  They do NOT support AJAX.  They claim they will some time in the future but the future never comes.  I switched to LunarPages.  What they offer is fair and I have full trust.  They have host linux for a long time but are new to windows.  I get unlimited MS SQL connections and 500 MySQL. 

8/6/2008 5:20:32 PM
Gravatar
Total Posts 36
Anchorage, Alaska

Re: Installing mojoPortal to 1and1 hosted space

I was not finished with my post.  I hit enter and it posted.

Also at LunarPages, the documentations that says it is for Windows is but parts of it are just wrong.  I have everything configured properly and it works great.  The support at 1and1 is timely but they seem to be giving boiler plate answers.  No matter how hard I try to describe my problem, they seem to ignore everything I wrote.

Lunar Pages says that I can use .NET 3.5 if I ask for it.  Soon, I plan to do that on a sub domain.

All in all, I am happy at Lunar Pages and MojoPortal works great.  The MySQL database is easy to back up and then download the back up to my computer.

You must sign in to post in the forums. This thread is closed to new posts.