473,796 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NEt 2.0 provider type attribute error

Hi!
FYI: I had some trouble with the type attribute in one of my providers
in web.config. I was writing it by hand, and got this error all the
time:

Required attribute 'type' not found. (C:\...\web.con fig line 78)

It could not find the type attribute in my web.config file, even if it
was present. The code was something like this:

<add connectionStrin gName="MyConnec tion" name="MyRolePro vider"
applicationName ="/" Type="System.We b.Security.SqlR oleProvider...e tc" />

So I struggled a bit until I found the solution. The thing is, the
attributes is case sensitive. After changing Type to type it worked
like a charm.
I did not know, but I guess the web.config wants all the code small
caps, exept in two similar letter occurrences (applicationNam e,
responseEncodin g etc)...

/Bonavox

Nov 19 '05 #1
1 3194
Lowercase :-)

--
Daniel Fisher(lennybac on)
http://www.lennybacon.com
"Bonavox" <bo*****@online .no> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Hi!
FYI: I had some trouble with the type attribute in one of my providers
in web.config. I was writing it by hand, and got this error all the
time:

Required attribute 'type' not found. (C:\...\web.con fig line 78)

It could not find the type attribute in my web.config file, even if it
was present. The code was something like this:

<add connectionStrin gName="MyConnec tion" name="MyRolePro vider"
applicationName ="/" Type="System.We b.Security.SqlR oleProvider...e tc" />

So I struggled a bit until I found the solution. The thing is, the
attributes is case sensitive. After changing Type to type it worked
like a charm.
I did not know, but I guess the web.config wants all the code small
caps, exept in two similar letter occurrences (applicationNam e,
responseEncodin g etc)...

/Bonavox

Nov 19 '05 #2

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

Similar topics

1
29281
by: Prasad Karunakaran | last post by:
I am using the C# DirectoryEntry class to retrieve the Properties of an user object in the Active Directory. I need to get the First Name and Last Name as properties. I know it is not supported with the ADSI NT Provider and only supported in the LDAP Provider. So given an UserId (UID) how can I read the First Name and Last Name using LDAP Provider. If anybody can help me with a C# sample code it would of great help. Thanks in advance.
31
2607
by: xah | last post by:
what's the pro and con of using <script language="javascript"> vs <script type="text/javascript"> Xah xah@xahlee.org ∑ http://xahlee.org/
3
2910
by: Christopher Baldwin | last post by:
Hello, Using ASP.NET v2.0.40607.42, I'm attempting to create a new file extension that should be handled exactly like "aspx" pages. For example, I just want to rename an aspx page from "test.aspx" to "test.extx", where .extx extensions are handled in exactly the same way as aspx pages. In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element (below) to web.config, and adding a IIS mapping of "extx" to
5
1622
by: Nak | last post by:
Hi there, I just made my own license provider (at last!) that uses signed XML license files. When the license provider gets the license it does the following, *At runtime 1) Gets the signed XML license file from the calling assemblys resources 2) Gets the public RSA key from the calling assemblys resources
2
11796
by: WB | last post by:
Hi, I am revamping my company's website with ASP.Net 2.0. In order to use our existing user data in our SQL 2000, I have written a custom membership provider. However, when I try to logon with the Login control, it gives an error: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. Is it because I have not run the aspnet_regsql.exe yet? Do I have to?
4
2243
by: techsupport | last post by:
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and have been wanting to remote a custom membership and profile provider. I want to take advantage of the new controls in ASP.NET 2.0 such as Login, Loginuser, Loginview, etc. The ASP.NET provider model requires entries in the web.config for a 'connectionStringName', which I understand is utilized to connect to the data source. Problem is the client machine (machine A)...
1
2002
by: John F. Holliday | last post by:
I need to use the ActiveDirectoryMembershipProvider in my application. I have setup the provider in the web config, etc. When I use the ASP.NET configuration utility and select the Security tab, it throws an exception saying that the attribute 'userPasswordQuestion' specified for the attributeMapPasswordQuestion property is not an attribute of the user class. I extended the AD attributes and mapped them to the 'user' class. To
3
13362
by: Ted | last post by:
In WSAT, I get the following error when trying to set up my provider: Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider. On Windows XP Pro, I am using MS Visual Studio 2005, and I am using the developer's edition of...
5
8290
by: Alias | last post by:
Hi - I'm trying to implement a custom RoleProvider based on the SqlRoleProvider. I keep receiving a an error that it can't load type 'MyRoleTest.MyRoleProvider' when trying to load my RoleProvider. However this only occurs after deployment. On my local machine it works fine. So I created the most basic role provider project I could think of. It is below: Imports System.Web.Security
0
9680
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
10455
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...
0
10006
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...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
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
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
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.