web.config default provider

Last post 09-13-2007 9:05 AM by frist44. 6 replies.

Sort Posts:

  • web.config default provider

    09-10-2007, 4:45 PM
    • Member
      193 point Member
    • frist44
    • Member since 03-01-2007, 8:38 AM
    • Posts 447

    I have domain that's directed to WSS 3.0. I made a virtual directory that's hosts an application that uses very simple authentication with the username and password directly in the web.config. I think the default provider is interfering with the authentication for this site, because it's directs itself to the WSS site after you try to login. My question is, what is the default provider if you don't specify it? it's sql right? If so, what would i specify the provider as if the credentials come straight from the file since it's not a database, and not really a directory, but i have to override the sql provider so it doesn't direct to WSS.

    ideas?

  • Re: web.config default provider

    09-13-2007, 5:43 AM
    Answer

    Hi frist44,

    From your description, I understand that you have deployed the web application to the virtual directory in the WSS 3.0 website. After inputting the login information and click button to login, the page redirects to the WSS site. If there has been any misunderstanding, please let me know.

    In general, WSS site has its own web.config file which inherits and overwrites some settings of the machine level web.config. The virtual directory in this website inherits these settings, so that we encounter this issue if we don’t overwrite them explicitly.

    For example, please check the following sections of web.config in the WSS website:

    <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="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        </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="Session" type="System.Web.SessionState.SessionStateModule"/> -->
          <add name="PwaAuthentication" type="Microsoft.Office.Project.PWA.PwaAuthenticationModule, Microsoft.Office.Project.Server.PWA, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
          <add name="PublishingHttpModule" type="Microsoft.SharePoint.Publishing.PublishingHttpModule, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
          <add name="Session" type="System.Web.SessionState.SessionStateModule" />
        </httpModules>

    We should clear the settings defined in web.config for the WSS site, and readd them with the default providers. We can compare them with the machine level config file which is: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config". For more information about this issue, please refer to the following link:

    How to: Modify Configuration Settings for an Application to Coexist with Windows SharePoint Services
    http://msdn2.microsoft.com/en-us/library/ms433526.aspx

     

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
  • Re: web.config default provider

    09-13-2007, 7:29 AM
    • Member
      193 point Member
    • frist44
    • Member since 03-01-2007, 8:38 AM
    • Posts 447

    yeah I have a feeling it's something like that. I made the changes per your link and am getting this now "No http handler was found for request type 'GET' "

    here's my httphandler config section (It's an AJAX page, so there's a few more things in it than normal)

    <remove verb="*" path="*.asmx"/>

    <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

    <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

    let me know if you have any thoughts.

  • Re: web.config default provider

    09-13-2007, 7:41 AM
    • Member
      193 point Member
    • frist44
    • Member since 03-01-2007, 8:38 AM
    • Posts 447

    Well i got the page to load. I pretty much set a <clear /> statement at the top of each section and copy and pasted the machine.config file in the new app and it's still redirecting.

    I just don't understand why it works with another application and not this one. They pretty much have the exact same web.config, except the one that works, has a   <membership defaultProvider="MyADMembershipProvider"> do you think that would be the reason?

    any other ideas?

  • Re: web.config default provider

    09-13-2007, 8:16 AM
    • Member
      193 point Member
    • frist44
    • Member since 03-01-2007, 8:38 AM
    • Posts 447

    Did some more testing. I created a fresh AJAX project and used the same authentication and additional web.config settings as the one that didn't work. In the new project, i had one default.aspx page with an update panel showing the date. I loaded it and it worked just fine. Ok, so it's no the authentication.

    I then uploaded the old application that didn't work, and replaced the web.config with the brand new app that worked, and it still didn't work. It redirected immediately to the WSS site. So there's something else that it's seeing when loading after you authenticate, what could it be?

  • Re: web.config default provider

    09-13-2007, 8:34 AM
    • Member
      193 point Member
    • frist44
    • Member since 03-01-2007, 8:38 AM
    • Posts 447

    More testing....

    I took my project and created a new page with no master page with just text. I set that page as the default start page. I tried my app again and it went straight into that page just fine! So there's something about the normal default page that makes it reroute to WSS. The normal default page has master page with content pages and a tree view with site map.

    Does that ring any bells?

  • Re: web.config default provider

    09-13-2007, 9:05 AM
    Answer
    • Member
      193 point Member
    • frist44
    • Member since 03-01-2007, 8:38 AM
    • Posts 447
    figured it out. My master page has a site map navigator and WSS's custom site map was overriding it, so i had to specify

    <siteMap defaultProvider="AspNetXmlSiteMapProvider"/>

     in the web.config of the app

Page 1 of 1 (7 items)