By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,429 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

Problem adding custom roleManager Provider dll to web.config file

P: n/a
Hello,

I have built a custom roleManager Provider that I have turned into a
dll so I can share it accross multiple applications. When I try to add
it to a web.config file I get the following error:

The given assembly name or codebase was invalid. (Exception from
HRESULT: 0x80131047)

Here is the web.config code:

<roleManager enabled="true" defaultProvider="SiRoleProviderClass">
<providers>
<add name="SiRoleProviderClass" type="SiRoleProviderClass,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=ff398cf9670f1534"
connectionStringName = "MyDB" applicationName="/" />
</providers>
</roleManager>

I have added my dll as a reference to the project and VS has created a
bin folder with the dll, called SiRoleProviderClass.dll, in it.

I have the feeling I am not specifting the type properly, I have tried
many variations, but I am not sure at this point what's wrong.

Feb 7 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.