473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.config 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 connectionStringName="MyConnection" name="MyRoleProvider"
applicationName="/" Type="System.Web.Security.SqlRoleProvider...etc" />

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 (applicationName,
responseEncoding etc)...

/Bonavox

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

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"Bonavox" <bo*****@online.no> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.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.config 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 connectionStringName="MyConnection" name="MyRoleProvider"
applicationName="/" Type="System.Web.Security.SqlRoleProvider...etc" />

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 (applicationName,
responseEncoding etc)...

/Bonavox

Nov 19 '05 #2

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

Similar topics

1
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...
31
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
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...
5
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...
2
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...
4
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...
1
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...
3
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.