Provider Model : modular application design issue

G

Guest

Hi,

I have created a custom provider (extending on ProviderBase) to handle
Standards and I wish to package up these classes (StandardService,
StandardProvider, StandardProviderCollection, SqlStandardProvider,
StandardServiceSection, and related business object classes) into a separate
class library so that this (custom) provider can be referenced by multiple
Websites.

Unfortunetly it seems that the Standard provider does not get instanciated
or something around these lines; here is the actual error message:

"Parser Error Message: Object reference not set to an instance of an object.

Source Error:


Line 21: <standardService defaultProvider="SqlStandardProvider">
Line 22: <providers>
Line 23: <add name="SqlStandardProvider"
type="CommonLibrary.SqlStandardProvider"
connectionStringName="StandardServiceConnectionString"/>
Line 24: </providers>
Line 25: </standardService>
"

I suspect the problem comes from the relationship between the provider
classes and the related website's config.Web section and the fact that these
provider classes are located in the library dll and not in the App_code
folder. (speculation only)

Any input would be appreciated, about this problem or in regards to
packaging providers into reusable components.

Thanks,

Rachel
 
K

Karl Seguin [MVP]

Well, the type should be

Namespaces.ClassName, AssemblyName

if,as yousay, they are in their own assembly, it ought to e something like:

CommonLibrary.SqlStandardProvider, CommonLibrary

assuming they are in the CommonLibrary.dll assembly.

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top