locked
Sample Membership Provider Implementation RRS feed

  • Question

  • User891608689 posted

    The sample code on the above page produces 79 errors, at the bottom of the page is the following message, which I assume is answered somewhere, but I can't find the answer anywhere!

    I'm getting 79 errors all similar to this Edit

                Error    1    Type 'System.Web.Security.MembershipProvider' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has been forwarded to assembly 'System.Web.ApplicationServices'. Either a reference to 'System.Web.ApplicationServices' is missing from your project or the type 'System.Web.Security.MembershipProvider' is missing from assembly 'System.Web.ApplicationServices'.    C:\Users\Preferred User\AppData\Local\Temp\VWDWebCache\streamcypher.com_datagrabs\App_Code\ODBCMembershipProvider.vb    48    18    http://streamcypher.com/dat
    Saturday, October 29, 2011 4:48 PM

All replies

  • User-417784260 posted

    Did you try adding a reference to system.web.applicationservices?

    Saturday, October 29, 2011 5:47 PM
  • User891608689 posted

    Thanks.

    Yes, but I don't know how to do that, please be just a bit more specific.

    Imports System.Web.ApplicationServices is obviously not correct.

    Can't see why that would be missing from the sample code anyway. 

    Saturday, October 29, 2011 6:06 PM
  • User3866881 posted

    Hello thepoober:)

    I think you should refer "System.Web.ApplicationServices.dll" into your proj before you use Import "System.Web.ApplicationServices".

    Please right click the gray folder called "References……" and choose "Add Reference....", and then choose "System.Web.ApplicationServices".

    Then you can import it by using:

    Import System.Web.ApplicationServices

    Sunday, October 30, 2011 9:29 PM
  • User891608689 posted

     

     

    Ok, reference added, but imports line with  "system.web." will not auto complete so reference not found as indicated by the following error:

     

    Warning 1 Namespace or type specified in the Imports 'System.Web.ApplicationServices' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Users\Barry\Documents\Visual Studio 2010\WebSites\WebSite6\App_Code\Class1.vb 15 9 C:\...\WebSite6\

    any further advice??

    the poo bear

     


     

    Monday, October 31, 2011 7:14 PM
  • User3866881 posted

    Hello:)

    I've imported the namespace and everything goes well with me....

    Which kind of application are you using? WinForm or WebForm or WebSite?

    Monday, October 31, 2011 8:53 PM
  • User891608689 posted

    I am using WebSite (web site), although I tried WebForm (project) but it did not seem to have the reference or could not place it.

    Tuesday, November 1, 2011 9:28 AM
  • User1957418580 posted

    I don't know the sample you are referring to, but I'm pretty sure you need to install WCF (Windows Communication Foundation" to have those namespaces.  Can you install WCF and test?  HTH

    Wednesday, November 2, 2011 11:08 AM
  • User891608689 posted

    Done, doesn't seem to make any difference. Same 79 errors as before.

    Thursday, November 3, 2011 5:50 PM
  • Thursday, November 3, 2011 6:13 PM
  • User1957418580 posted

    In the first post you mention a sample that you are using and refer to "the above page".  Maybe I'm missing something, but I don't see the sample you are referring to.  Can you reply with a link to the sample you are using?

     

    Saturday, November 5, 2011 7:21 AM
  • User1007088138 posted

    Check if your project is using .NET Framework 4.0. It is common problem that if it is set as Framework 3.5 than you can not see references from Framework 4.0.

    Friday, December 16, 2011 3:00 AM