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> |