ASP.NEt 2.0 provider type attribute error

  • Thread starter Thread starter Bonavox
  • Start date Start date
B

Bonavox

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
 
Back
Top