Archive

Archive for July, 2009

Rackspace Cloud Anomalies


Life in the clouds is no picnic  … especially when you deploy for the first time and discover all is not well in the medium trust environment.
It would be wishful thinking to add <trust level=”Low” /> to the Web.config ..

Anyway, here are a few discoveries I have made ..

In Web.config make the following changes

1. Add requirePermission=”false” so components can be accessed
<configuration>
<configSections>
<!–  Added requirePermission for cloud access –>
<section name=”log4net” type=”log4net.Config.Log4NetConfigurationSectionHandler, log4net” requirePermission=”false”/>
<section name=”dataConfiguration” type=”Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,
Microsoft.Practices.EnterpriseLibrary.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ requirePermission=”false”/>
.
.
</configSections>
</configuration>

2. Impersonate a valid user
<system.web>
<!–  To allow files and folder access –>
<identity impersonate=”true” userName=”dfw\blah” password=”passwordBlah” />
.
.
</system.web>

3. Issues with the GAC – still working on this
<!–  Yep  … its debug mode  … issues with the AJAX ToolKit –>
<compilation debug=”true” strict=”false”>
.
.
</compilation>

You may also get trouble with third party dll’s that do not run in the medium trust environment. It took me a few hours to rewrite a blowfish encryption dll that did just that.
I will add stuff to this note as I discover them.

Advertisements
Categories: C# Code Comments