Windows SharePoint Services virtual server is not configured to be used with ASP. NET 2.0.50727.42-Solution

Source: Internet
Author: User

Windows SharePoint ServicesThe virtual server is not configuredASP. NET 2.0.50727.42Use together

Error Message:

Windows SharePoint ServicesThe virtual server is not configuredASP. NET 2.0.50727.42. For more information, seeHttp://go.microsoft.com/fwlink? Linkid = 42660Knowledge Base onArticle894903.

Cause:

ASP. Network 2.0 Implementing New security changes helps to lock In IIS 6.0 Security of the virtual server. In earlier versions ASP. NET, Run at the trusted level assigned to itCode. The trust level is the security policy file accessed by the Code. Wss_minimaltrust.config File is the security policy file for code access Web. config File.
New security changes ASP. Network 2.0 Restrict Web Parts , Webpage , Permission, Control to intersection and ASP. NET permissionset Time code running trust level. Configure , ASP. NET permissionset Is the Declaration Table Method Permissionset Instance. By default , Windowssharepointservices Provided ASP. NET permissionset Only the lowest privilege Security change ASP. Network 2.0 Some codes run with lower privileges. For example , Code from globalProgramIn the set cache, the Assembly previously runs at the full trust level. When you In IIS 6.0 To use ASP. NET 2.0, Configure a virtual server ASP. NET permissionset Run the privileged code. Locked Windowssharepointservices Compatible. Therefore , The lock must be disabled. Web. config File.
ASP. Network 2.0 It also includes a new feature called event verification. Verify the event monitoring ASP. NET Structure to ensure that the source is the callback of the control target. Some Windowssharepointservices Page using callback and specific controls, Are not associated. Callback and specific controls, No association may cause page execution errors. Therefore , Windows SharePoint Services 2.0 Yes ASP. Network 2.0 The event verification function is incompatible. ASP. Network 2.0 Event verified ASP. Network 2.0 Install , Server Configuration Windowssharepointservices- Extension Web You must disable the application.

Solution:

UseWindows SharePoint Services stsadm.exeCommand line tool to updateWeb. configFile. To do so,Run the following command:

Stsadm.exe-O upgrade-forceupgrade-URL http: // <URL of the Virtual Server>Command updateWeb. configThe file will be located in the root folder and virtual server. For example,Command updateWeb. configThe file is located in Drive: \ Inetpub \ wwwrootFolder. Perform the following changes:

CommandProcessrequestinapplicationtrustAdd the property to the following trust Tag:

<Trust level = "wss_minimal" originurl = ""/>

Run commands,The subsequent trust tag is shown as follows:

<Trust level = "wss_minimal" originurl = "" processrequestinapplicationtrust = "false"/>

command to add the following elements under the page Tag:

CommandEnableeventvalidationAdd property<Page>Mark,The original tag is as follows:

<Pages enablesessionstate = "false" enableviewstate = "true" enableviewstatemac = "true" validaterequest = "false"> </pages>

After adding attributes,The tag is as follows:

<Pages enablesessionstate = "false" enableviewstate = "true" enableviewstatemac = "true" validaterequest = "false" enableeventvalidation = "false"> <namespaces> <remove namespace = "system. web. UI. webcontrols. webparts "/> </namespaces> </pages>

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.