Akbar Khan

Hi

I am new to CS2007, I have created a web app through Wizard and it generate this error ..Why

The module 'CommerceAuthenticationModule' depends on the site resource 'Biz Data Service' which does not exist in the Commerce Server administration database




Re: Commerce Server 2007 The module 'CommerceAuthenticationModule' depends on the site resource 'Biz Data Service' which does not exist in the Commerce S

Joseph Johnson

Akbar,

The CommerceAuthenticationModule has probably been included in the HttpModules section of the Web Configuration file associated with your solution. This module has an external dependency on a site resource which should have been deployed correctly when you unpackaged your site.

Your statement that you have "created a web app through wizard" is probably something worth looking into. Did you create a new web application through visual studio If so, there's a web configuration file somewhere in your folder heirarchy which is attempting to load the Commerce Server HttpModules when running your web application.

Typically, you don't start doing Commerce Server development by creating a new web application. You should instead use the site packager to deploy out the CSharpSite (for a completely blank solution), or the StarterSite (for an example solution).

Unpacking a site: http://msdn2.microsoft.com/en-us/library/aa544681.aspx

Site packager is responsible for creating your initial web project, as well as creating several "resources" in your database. The absence of one of these resources is the cause of the error you are seeing.

If my assumption is incorrect and you have actually correctly deployed using site packager, the Biz Data Service is referring to you profiles subsystem, so you might want to re-add that resource to your existing application through Commerce Server Manager.






Re: Commerce Server 2007 The module 'CommerceAuthenticationModule' depends on the site resource 'Biz Data Service' which does not exist in the Commerce S

David Messner - MSFT

Akbar,

The 'Biz Data Service' has the display name of 'Profiles' in the site packager. You can use custom unpack mode in the site packager to add this resource to your site, if it doesn't exist. Profiles is a global resource and can be shared across sites, if you wish.

If you used the Site Creation Wizard in Visual Studio, it should have created this resource by default. Were there errors in the pup.log (it normally gets put in C:\pup.log, so you can check that)

At any rate, if you plan to use ASP.NET Authentication (the Commerce Server 2007 Starter Site does, for example), you can simply remove the CommerceAuthenticationModule from the httpModules section of Web.config. But you may still need the Profiles resource if you'll be using the Commerce Sever Profile System.

Thanks and regards

-David