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
thepoobear
Member
8 Points
5 Posts
Sample Membership Provider Implementation
Oct 29, 2011 08:48 PM|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>Ken Tucker
All-Star
16797 Points
2608 Posts
MVP
Re: Sample Membership Provider Implementation
Oct 29, 2011 09:47 PM|LINK
Did you try adding a reference to system.web.applicationservices?
Space Coast .Net User Group
thepoobear
Member
8 Points
5 Posts
Re: Sample Membership Provider Implementation
Oct 29, 2011 10:06 PM|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.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Sample Membership Provider Implementation
Oct 31, 2011 01:29 AM|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
thepoobear
Member
8 Points
5 Posts
Re: Sample Membership Provider Implementation
Oct 31, 2011 11:14 PM|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
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Sample Membership Provider Implementation
Nov 01, 2011 12:53 AM|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?
thepoobear
Member
8 Points
5 Posts
Re: Sample Membership Provider Implementation
Nov 01, 2011 01:28 PM|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.
cts-mgraham
Contributor
3318 Points
642 Posts
Microsoft
Re: Sample Membership Provider Implementation
Nov 02, 2011 03:08 PM|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
thepoobear
Member
8 Points
5 Posts
Re: Sample Membership Provider Implementation
Nov 03, 2011 09:50 PM|LINK
Done, doesn't seem to make any difference. Same 79 errors as before.
hans_v
All-Star
35998 Points
6551 Posts
Re: Sample Membership Provider Implementation
Nov 03, 2011 10:13 PM|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