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!
<div class="AnnotationBody"> 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</div>
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\
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
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?
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.
None
0 Points
5 Posts
Sample Membership Provider Implementation
Oct 29, 2011 04:48 PM|thepoobear|LINK
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
<div class="AnnotationBody"> 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</div>Star
11922 Points
2642 Posts
MVP
Re: Sample Membership Provider Implementation
Oct 29, 2011 05:47 PM|Ken Tucker|LINK
Did you try adding a reference to system.web.applicationservices?
Space Coast .Net User Group
Orlando Windows Phone/ Windows Store User Group
None
0 Points
5 Posts
Re: Sample Membership Provider Implementation
Oct 29, 2011 06:06 PM|thepoobear|LINK
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.
All-Star
94130 Points
18109 Posts
Re: Sample Membership Provider Implementation
Oct 30, 2011 09:29 PM|Decker Dong - MSFT|LINK
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
None
0 Points
5 Posts
Re: Sample Membership Provider Implementation
Oct 31, 2011 07:14 PM|thepoobear|LINK
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
All-Star
94130 Points
18109 Posts
Re: Sample Membership Provider Implementation
Oct 31, 2011 08:53 PM|Decker Dong - MSFT|LINK
Hello:)
I've imported the namespace and everything goes well with me....
Which kind of application are you using? WinForm or WebForm or WebSite?
None
0 Points
5 Posts
Re: Sample Membership Provider Implementation
Nov 01, 2011 09:28 AM|thepoobear|LINK
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.
Contributor
2179 Points
641 Posts
Re: Sample Membership Provider Implementation
Nov 02, 2011 11:08 AM|cts-mgraham|LINK
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
None
0 Points
5 Posts
Re: Sample Membership Provider Implementation
Nov 03, 2011 05:50 PM|thepoobear|LINK
Done, doesn't seem to make any difference. Same 79 errors as before.
All-Star
25756 Points
7014 Posts
Re: Sample Membership Provider Implementation
Nov 03, 2011 06:13 PM|hans_v|LINK
I'm not sure which Membership Provider you downloaded? If you want an Access Membership provider, read ths:
http://imar.spaanjaars.com/404/using-the-microsoft-access-providers-to-replace-the-built-in-sql-server-providers
http://imar.spaanjaars.com/560/using-the-microsoft-access-providers-for-membership-roles-and-profile-under-aspnet-4
Contributor
2179 Points
641 Posts
Re: Sample Membership Provider Implementation
Nov 05, 2011 07:21 AM|cts-mgraham|LINK
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?
None
0 Points
1 Post
Re: Sample Membership Provider Implementation
Dec 16, 2011 03:00 AM|WojtekB|LINK
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.