473,624 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customer Membership Provider Issues

Zeb
Hi all.

If anyone could offer any help with this, it would really be
appreciated.

I've written a custom membership provider which works with tables in
my ms sql database. This works great locally, but as soon as I run the
site on the live (shared) server, I get the following error message:

Parser Error Message: Attempt to access the method failed.

The line in Web.Config that it's picked up on is as follows:

Line 29: <providers>
Line 30: <clear/>
Line 31: <add name="AspNetCus tomMembershipPr ovider"
type="CustomMem bershipProvider .CustomMembersh ipProvider"/>
Line 32: </providers>
Line 33: </membership>

I've played around with sn.exe to create a key and linked the project
to it and this hasn't made any difference. The only other thing I can
think of is that the dll files don't have execute permission on the
server and I don't have an option to change that.

I'm completely stumped. Is there something I've missed during the
upload? Do I need a reference somewhere? Could the server be
configured to not allow this kind of thing?

Any ideas to point me in the right direction would be great.

Thanks!

Jan 29 '07 #1
1 1266
Zeb
Well I've discovered that overriding the MembershipProvi der requires
Full Trust on the server and that the way around this is to add the
following to the top of my CustomMembershi pProvider:

[assembly: AllowPartiallyT rustedCallersAt tribute()]

However, when I do this, I get the following error when I try to
publish the site:

Duplicate 'System.Securit y.AllowPartiall yTrustedCallers Attribute'
attribute

and it just points to a temporary file called App_Code.19.cs.

So although I've got a little further with this I'm still not sure
what to do next...

Jan 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1012
by: Eric | last post by:
Hello, I am in the process of upgrading my eCommerce application to Asp.net 2.0. One of the things that interested me was the whole membership API and tools that tied into it. I want to migrate my existing userbase to that format. One of the issues I am having, deals with the fact of collecting additional information (such as address, phone number, etc.). The CreateUser control does not have these fields. I have read where it is...
2
1460
by: Josh Collins | last post by:
Here is my configuration: ASP.Net 2 running on IIS6/Win2k3 Developing on WindowsXP-Pro iwth Visual Studio 2005. I am trying to utilize the Membership functionality in an ASP.net website. I am having the following issues: 1) In VS.Net 2005 there is no ASP.Net Configuration option under the Website menu.
9
2169
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. It does not currently use any of the Commerce Server 2002 functionality with the exception of the user authentication features. I have written my replacement application to use a custom login form and custom connection string so that I can use...
10
1803
by: Ray Booysen | last post by:
Hi all I am using the membership provider and am storing all the login details via this system. However, I require to add additional fields that may change over time that are related to the User. E.g. DOB, Place of birth and all that. What is the best way to do this? Create a second table taking the primary key of the aspnet_Users table and use this as a foreign key in
5
1470
by: sloan | last post by:
Are there any "gotchas" on deploying the default Membership Provider (aspnetdb) to a hosting provider? I'm about to do it. And how does one get to the "auto configurer" .. that allows you to setup roles/users .....? Can I do these steps:
2
14138
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership provider? For e.g. lets say I have a SQLMembership provider and OracleMembership provider. SQL would be my default provider. During authentication, based on the value of an additional parameter in the login screen, I need to validate against SQL or...
4
4725
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality above and beyond what the prodiver currently allows. I need the ability to access a user id and the user's permission id. With Forms authentication in 1.1, I would just create a custom identiy and principal and store the information in the identity....
3
1280
by: John Chapman | last post by:
Hello, I am trying to use an Access database as the provider for the ASP.NET Membership for the users, roles, and profiles. I have looked at many tutorials available online, and I could not come up with a solution for everything. I need to know how to setup the tables within the database and then make it the provider. I am using C# on VS 2005. Any and all help would be appreciated. Thanks,
4
4718
by: sloan | last post by:
It looks like the default Membership Provider (and Role Provider) always goes to the database to get its info. (GetUsers, GetRoles, etc , etc). I guess I'm going to roll my own, because I am going to need a cached solution to avoid the database hits. (My roles and users seldom/never change after a project rollout) I wanted to ask in general (before I start the work of a custom membership
0
8238
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8174
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1786
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1485
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.