Gallery CMS
Gallery CMS > .NET CMS online support forum > Forum of online support > Installation

Configuration settings for Medium Trust security?

RSS
Author
Date & Time
Message Operations
Alan Oliver
male
alanoliver999@gmail.com
Alano

Hi. I am unable to successfully install .NET CMS on the shared web hosting servers that I use for all my other web applications. The web servers require the web app to be written to work in "Medium Trust" security mode, but it appears .NET CMS does not support that mode.

My shared web hosting servers utilise the "Helm" control panel. In Helm, I have set the web application to .NET 4.0. Helm automatically gives write access to app_data.

The first problem I experience is that the <identity impersonate="false".../> line causes an error saying that this option has been locked by the server administrator. This is correct and is quite normal for shared web hosting servers. Can you remove the necessity to include this line within web.config? Perhaps there are some "Medium Trust" security patterns you can utilise for .NET CMS?

If I remove the <identity.../> line completely, I then get an error saying that app_data does not have write permissions. This is wrong! Helm definitely gives app_data write permissions; I know this because it works perfectly in the vb/asp.net applications I have written myself. The problem seems that you need to find a "Medium Trust" pattern and modify .NET CMS accordingly.

I am extremely keen, but frustrated because I wish to try .NET CMS, but I have not yet been able to get it to run!

I hope you can help, and convert .NET CMS to use the "Medium Trust" security pattern.

Is there a quick fix I can try?

Thank you in advance.
Alan
Andrea Bruno
male
customercare@officialguide.info
Webmaster

You can try this version?:
http://www.microsoft.com/web/gallery/cmsaspnet.asp... (If you have any problems with this version write to me here in this topic).

This version has been tested by Microsoft, is configured with the trust level medium.
Thanks for your report, I'm doing some tests for future release.
Alan Oliver
male
alanoliver999@gmail.com
Alano

Hi. Thank you for your kind reply.

Unfortunately the download on Microsoft's Web App Gallery (which, incidentally, is where I first came across your app) uses the Platform Installer and cannot therefore be used to install to a shared web hosting server (unless there is a special method I am unaware of?).

Hope you can help.

Kinds regards,
Alan
Andrea Bruno
male
customercare@officialguide.info
Webmaster

This software can be installed by copying the version locally via ftp to the server shared.
It 'tested to work well on shared servers.
You can install the version 4.06 that are here:

sourceforge.net/projects/cmsaspnet/files/

Unzip the package and copy via ftp the local content inside the folter CMS to your remote web-host.
Alan Oliver
male
alanoliver999@gmail.com
Alano

Thank you for your suggestions, Webmaster. I am very grateful.

HOWEVER, I am still experiencing the exact same problems when using v4.06 downloaded from the source your recommended.

To confirm...

I have downloaded v4.06 from source-forge; uncompressed the ZIP file; copied the contents of the CMS folder to the "wwwroot" folder of my shared remote web host (running Windows IIS under Medium Trust, via Helm control panel).

When I first browse to the root of the website via Internet Explorer (or Chrome) I get the message I first reported - about identity impersonate not being acceptable.

If I comment out the identity impersonate line, I then get an error saying the web app does not have sufficient permissions for the /App_Data folder.

My host (Red Fox Hosting) confirms that asp.net applications do have write permission to /App_Data folder.

There must be a problem with the .NET CMS application when running on a shared website running under the popular Helm control panel.

Are you aware of anyone who has successfully implemented .NET CMS on shared hosting using the Helm control panel? What alterations had to be made (e.g. identity impersonate does not work).

Kind regards,
Alan
Andrea Bruno
male
customercare@officialguide.info
Webmaster

The application is designed to run on shared servers, the default configurations.
Normally the app_data directory should be writable.
The application is designed to work with the Trust Level Medium.

Check the following:
1) Verify that the application pool is set with version 4.0 of the framework.
2) Check that you have write permission for the directory App_Data. (I think your problem is this) http://msdn.microsoft.com/en-us/library/kwzs111e(v...

Search if the hosting administration panel you can set the write permission for the directory App_Data.
Open a ticket to the service of assistance and see what they tell you.

Maybe you need to configure the file Web.Config otherwise! (But I do not think), Perhaps this line should be changed:

<identity impersonate="false" userName="" password=""/>

Ask for help here:
http://forums.iis.net/1051.aspx/1?ASP+NET+Administration
http://forums.asp.net/26.aspx/1?Configuration+and+Deployment


Let me know if you have solved the problem!
Alan Oliver
male
alanoliver999@gmail.com
Alano

Thank you for your reply. But I still have major problems. NOTHING WORKS when using Helm.

Kind regards,
Alan
Andrea Bruno
male
customercare@officialguide.info
Webmaster

I never try the Helm hosting. I suggest for the future, one of these: http://www.microsoft.com/web/hosting/home .NET CMS has been verified from Microsoft, as well as these hosting services.

Best regards!
Alan Oliver
male
alanoliver999@gmail.com
Alano

That is terrible news. You should write a big warning so that people like me do not waste days of effort trying to install on web hosting using the popular Helm control panel. As you know yourself, it would be a major and costly business decision to change to a different web host.

I must now, reluctantly, use ScrewTurn wiki, as this performs most of what I need - and it works perfectly with Helm control panel.

Wishing you well for the future.
Andrea Bruno
male
customercare@officialguide.info
Webmaster

In creating this cms I spent a lot of effort so that it can run on any host. The requirements are minimal. My intension was to create a web application that works on low-cost hosting services. Single installation can also handle countless websites, even on shared hosting. Maybe your hosting service is not compatible with the framework 4.0, the CMS makes extensive use of new features in the 4.0 framework. In my testing I have never found a hosting incompatible.

Have a nice day smile_wink