CODEDIGEST
Home » FAQs
Search
 

Technologies
 

How to execute Microsoft Enterprise application Block 2.0 in Medium trust environment?
Submitted By Satheesh Babu B
On 12/19/2008 8:38:18 AM
Tags: Interview Questions  

How to execute Microsoft Enterprise application Block 2.0 in Medium trust environment?

Microsoft Enterprise application block requires full trust security level to run.

Try increasing the trust level of the site through web.config setting like below,

<trust level="Medium" originUrl="" />

If you have hosted your site in shared web hosting like Godaddy who will not allow to change above setting in web.config then follow the below steps.

 

Download the patch for Microsoft Enterprise application block for running in Medium trust environment here and have done the below steps.

http://www.codeplex.com/entlib/Release/ProjectReleases.aspx?ReleaseId=1339

 

Steps

1) Browse to C:\Program Files\Microsoft Enterprise Library January 2006 of your machine where you have installed Ent. Library.

2) Replace the src and the UnitTests directories from the Enterprise library by the ones in the patch in the above URL.

 

3) Execute the 2 batch files that come with Microsoft Enterprise application block. By default it will be residing in the location C:\Program Files\Microsoft Enterprise Library January 2006 of your machine. First, run BuildLibrary.bat, then CopyAssemblies.bat.

 

4) Replace the references in your webproject (Microsoft.Practices......dll) by the newly compiled under the enterprise library.

 

Now, publish the website.

Recent FAQs
  • View All FAQs..