+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Custom ASPNET Membership Provider in SiteFinity site

Custom ASPNET Membership Provider in SiteFinity site

3 posts, 0 answered
  1. Kiran Kakanur
    Kiran Kakanur avatar
    7 posts
    Registered:
    29 Sep 2004
    21 May 2008
    Link to this post

    Hi,

    We have a SiteFinity based web site.

    And we need to implement a Custom ASPNET Membership provider for User Registration purposes. We need the custom provider as we need to capture some additional user info. The "web.config" file in the SiteFinity web site allows only ONE Membership provider. The current Membership provider is SiteFinity and this is used to authenticate users when they access the SiteFinity Dashboard. I added the Custom ASPNET Membership Provider in SiteFinity's "web.config" file, but I had to disable the SiteFinity membership provider.

    I need to have the ability for Site Admins to manage/administer the site using the Dashboard and I also need to have a User Registration page which will use the Custom ASPNET Membership Provider.

    So I thought I could create a separate folder within the SiteFinity application, which can then have its own "web.config" file. And I was planning on hosting the User Registration page (and other pages) within this new folder and I can then specify the Custom ASPNET Membership Provider in the "web.config" file. I created a separate folder, set it up as an IIS application, created an "external" page within SiteFinity that pointed to the file in this new folder. But I get the following error when I attempt to browse to the page in this folder:

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'Telerik.Framework' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 141:   </eventMappings>
    Line 142:   <providers>
    Line 143:    <add name="Simple Web Event Provider" type="Telerik.Utilities.TextFileWebEventProvider,Telerik.Framework" logFileName="~/App_Data/sitefinity.log"/>
    Line 144:    <add name="Simple Web Buffered Event Provider" type="Telerik.Utilities.BufferedTextFileWebEventProvider,Telerik.Framework" bufferMode="Notification" logFileName="~/App_Data/sitefinity.log"/>
    Line 145:   </providers>
     

    Source File: D:\websites\irec\web.config    Line: 143

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Framework' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


    Based on the above error message, tt appears that the new web site that I setup is still referencing SiteFinity's "web.config" file, because the "web.config" file in the new web site does not have any references to Telerik.

    I think I am missing an IIS setting somewhere? Has anyone out there tried to configure a custom ASPNET Membership Provider in an existing SiteFinity site? Or even setup another IIS application within an existing SiteFinity site? I would greatly appreciate any insight that you can provide.

    Thanks.

    Best regards,
    Kiran
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    21 May 2008
    Link to this post
    web.config files do indeed inherit from parent applications/directories. take a look at this article on how to prevent the top application from passing on its values to a child folder.

    an alternative would be to remove each element manually from the subfolders web.config using <remove name="assemblyname" /> in the sections giving you errors

    hope this was helpful!
  3. Kiran Kakanur
    Kiran Kakanur avatar
    7 posts
    Registered:
    29 Sep 2004
    21 May 2008
    Link to this post
    Thank you very much SelArom!!! Your suggestion worked like a charm :-)

    After I wrapped the <system.web>...</system.web> portion in the "web.config" file in the parent directory with the <location path="." inheritInChildApplications="false"> tag, I am able to browse to the web page in the subfolder without any errors.

    Thanks again for your timely help. I greatly appreciate it.

    Best regards,
    Kiran
Register for webinar
3 posts, 0 answered