473,408 Members | 2,052 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,408 software developers and data experts.

Provider Model : modular application design issue

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="StandardServiceConnectionStr ing"/>
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

Feb 9 '06 #1
1 1259
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

--
http://www.openmymind.net/

"Rachel" <Ra****@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
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="StandardServiceConnectionStr ing"/>
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


Feb 9 '06 #2

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

Similar topics

19
by: Steve Jorgensen | last post by:
I've run across this issue several times of late, and I've never come up with a satisfactory answer to the best way to handle this schema issue. You have a large section of schema in which a...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
4
by: Nick Goloborodko | last post by:
Hi, I'm in the process of conceptualizing a new ASP.NET application. I'm a relative newbie in ASP.NET / .NET in general, so any comments will be greatly appreciated. Basically i need to make...
12
by: Don Huan | last post by:
Hi my job is to migrate our WinForms application to ASP.NET. This app was build very modular so every peace of code can be replaced by another "modul". There are 1 VS-solution with about 60...
2
by: Amir Ghezelbash | last post by:
Hello all, I have a question..i am developing a web application in asp.net 2.0 and these past few days i have been reading about asp.net 2.0 Membership providers...now i have a question...i...
1
by: Peter Kirk | last post by:
Hi I was wondering if anyone had experience of using the "provider model" in ..net. I have only just stumbled across this pattern/model and am trying to evaluate if it is worth while learning...
6
by: Bill44077 | last post by:
Hi, I am new to the MVP pattern and one of the main reasons that we are going this route is because we are doing Scrum with 30 day sprints - so we have a continually morphing design. We are...
11
by: Weston Weems | last post by:
I've got the need to have user information for logged in user in a readily avaliable page context (a lot like how Profile is) except not suck. Before we jump to any conclusions, from what I...
2
by: Canice | last post by:
I'm working on a web application where 90% of it is common 'product' code an the other 10% is customer specific. I want some method of separating the customer specific presentation, business and...
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?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
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,...
0
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...

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.