Asp.net authentication and use of Silverlight

Source: Internet
Author: User

Before wss3 was installed, two problems were encountered:

1: After the installation, an error is reported when the forms verification system is used.

Q: I have some other questions in the site directory. The site needs to access these files, WSS Use Forms During verification , Permission issues occur when accessing local resources. ( For example Silverlight Of Xap File ), This is because the access account has no permissions. , Development of accessed resources Everyone Permissions .

 

2: By default, Silverlight cannot be accessed in WSS. If you find it, you need to add some configuration in Web. config.

(The red part needs to be added)

New WSS the site does not have the following configuration nodes , cause Silverlight cannot be displayed . need to add

<Sectiongroup name = "system. web. extensions "type =" system. web. configuration. systemwebextensionssectiongroup, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 ">

<Sectiongroup name = "scripting" type = "system. Web. configuration. scriptingsectiongroup, system. Web. Extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35">

<Section name = "scriptresourcehandler" type = "system. web. configuration. scriptingscriptresourcehandlersection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" machinetoapplication "/>

<Sectiongroup name = "WebServices" type = "system. Web. configuration. scriptingwebservicessectiongroup, system. Web. Extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35">

<Section name = "jsonserialization" type = "system. web. configuration. scriptingjsonserializationsection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" everywhere "/>

<Section name = "profileservice" type = "system. web. configuration. scriptingprofileservicesection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" machinetoapplication "/>

<Section name = "authenticationservice" type = "system. web. configuration. scriptingauthenticationservicesection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" machinetoapplication "/>

<Section name = "roleservice" type = "system. web. configuration. scriptingroleservicesection, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "requirepermission =" false "allowdefinition =" machinetoapplication "/>

</Sectiongroup>

</Sectiongroup>

</Sectiongroup>

<Httphandlers>

<Remove verb = "Get, Head, post" Path = "*"/>

<Add verb = "Get, Head, post" Path = "*" type = "Microsoft. sharepoint. applicationruntime. sphttphandler, Microsoft. sharepoint, version = 12.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "/>

<Add verb = "options, PROPFIND, put, lock, unlock, move, copy, getlib, proppatch, mkcol, delete, (getsource), (headsource), (postsource) "Path =" * "type =" Microsoft. sharepoint. applicationruntime. sphttphandler, Microsoft. sharepoint, version = 12.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "/>

<Add verb = "*" Path = "*. asmx "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>

<Add verb = "*" Path = "* _ appservice. axd "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>

<Add verb = "Get, head" Path = "scriptresource. axd "type =" system. web. handlers. scriptresourcehandler, system. web. extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "Validate =" false "/>

</Httphandlers>

<Httpmodules>

<Clear/>

<Add name = "sprequest" type = "Microsoft. Sharepoint. applicationruntime. sprequestmodule, Microsoft. Sharepoint, version = 12.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c"/>

<Add name = "outputcache" type = "system. Web. caching. outputcachemodule"/>

<Add name = "formsauthentication" type = "system. Web. Security. formsauthenticationmodule"/>

<Add name = "urlauthorization" type = "system. Web. Security. urlauthorizationmodule"/>

<Add name = "windowsauthentication" type = "system. Web. Security. windowsauthenticationmodule"/>

<Add name = "rolemanager" type = "system. Web. Security. rolemanagermodule"/>

<Add name = "scriptmodule" type = "system. Web. Handlers. scriptmodule, system. Web. Extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35"/>

<! -- <Add name = "session" type = "system. Web. sessionstate. sessionstatemodule"/> -->

</Httpmodules>

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.