FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Sign UpSign Up  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XSE and Medium Trust CAS

 
Post new topic   Reply to topic    IQServices.com Support Forum Forum Index -> XSE Technical Support
View previous topic :: View next topic  
Author Message
Min
Site Admin


Joined: 06 Apr 2004
Posts: 358

PostPosted: Mon Jan 23, 2006 3:04 pm    Post subject: XSE and Medium Trust CAS Reply with quote

By default asp.net web applications use Full Trust code access security (CAS) policy. Some host providers by default use Medium Trust or Custom Trust CAS policies.

XSE shopping cart requires a Full Trust CAS policy to work properly on .NET 1.1 and .NET 2.0 Frameworks.

XSE use OLEDB provider to connect to backend database and unmanaged code blocks to resize .gif and .png images to preserve transparency in resized thumbnail images.

Default Medium trust policy does not allow to use OLEDB provider (See here) and unmanaged code blocks.

A workaround is to ask your host provider to assign Full Trust CAS to entire website or only to xseCore.dll and XSE.Imaging.dll assemblies located in web store /bin subfolder.

To assign Full Trust to your website ask host provider to edit machine.config file and above <location allowOverride="false"> tag to add tags as listed below. Note: Replace "Default Web Site" with your website name listed under IIS management -> Web Sites.
Code:
<location path="Default Web Site" allowOverride="true">
  <system.web>
    <trust level="Full" originUrl="" />
  </system.web>
</location>
Back to top
View user's profile Send private message
TechOnADesk



Joined: 16 Dec 2007
Posts: 2

PostPosted: Sun Dec 16, 2007 6:39 pm    Post subject: Reply with quote

Suppose a host is running server with Medium Trust. Is there anything that can be changed in the policy file (web_mediumtrust.config) that will get xse to work?
Back to top
View user's profile Send private message
Min
Site Admin


Joined: 06 Apr 2004
Posts: 358

PostPosted: Mon Dec 17, 2007 7:03 am    Post subject: Reply with quote

If host provider allows to override CAS settings you may edit web.config as explained above and change to Full trust. Current XSE version requires Full trust CAS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IQServices.com Support Forum Forum Index -> XSE Technical Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright © 2004 IQ Services, All Rights Reserved