Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Extend. Manage. Secure. More than 30 years in the business. Over 65,000 customers.
Home » Support » Technical Library » Technical Notes

Technical Notes

Trust Level Error when Building .NET Web Application
Technical Note 10083
Last Reviewed 17-Jun-2010
Applies To
Verastream Host Integrator version 6.6 or earlier
Summary

When Verastream Host Integrator (VHI) Development Kit and Microsoft Windows SharePoint Services (WSS) are installed on the same machine, Verastream .NET web applications may fail to build. This technical note explains how to edit the trust level set in the web.config file to resolve this issue.

Symptom and Cause

With Microsoft Windows SharePoint Services 2.0 Service Pack 2 installed (a prerequisite for Microsoft BizTalk Server 2006), VHI Web Builder may fail to build .NET Web applications. This issue is a result of an insufficient trust level in web.config being set by SharePoint. When this problem occurs, Web Builder (and the build log) displays an error such as:

"/<project name>/Controller.aspx(2): error ASPPARSE: The current trust level does not allow use of the 'culture' attribute"

Resolution

To resolve this issue, follow these steps to modify the web.config file properties.

  1. In a text editor, such as Notepad, open c:\inetpub\wwwroot\web.config.
  2. Scroll to the <system.web> section.
  3. Set the system.web trust level parameter to WSS_Medium. For example:
<trust level="WSS_Medium"/>
  1. Set the system.web pages property enableSessionState to true. For example:
<pages enableSessionState="true">
</pages>
  1. Under httpModules, add System.Web.SessionState.SessionStateModule. For example:
<httpModules><clear/>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules>
  1. Save and exit web.config.

The following example shows all of the web.config properties set to enable Verastream web application builds.

<configuration>
<system.web>
<httpModules>
<clear/>
<add name="Session"
type="System.Web.SessionState.SessionStateModule"/>
</httpModules>
<pages enableSessionState="true">
</pages>
<trust level="WSS_Medium"/>
</system.web>
</configuration>

After completing the above steps, re-build your project in Web Builder.

Related Technical Notes
40999 Verastream Host Integrator Technical Notes

horizontal line

Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.