Need MessageManager configuration in Web.Config

Hi guys

i am developing some proof of concepts in the Commerce Server 2007.I done some of the things in cs 2007, now i moved to do some basic things in Pipeline concepts. i created some some code and add the basket.pcf in the Pipelines folder in my project .

while i running throgu i got an error message like this, Please configure the MessageManager in the configuration file. How to configure for my basket.pcf file.

[444 byte] By [Prabagarane] at [2007-12-27]
# 1

Prabagarane,

This setting is in your web.config file. Here is the MSDN link for configuring this section:

http://msdn2.microsoft.com/en-us/library/ms961020.aspx

JosephJohnson at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 2

Hi Joe

Thanks for the link, its really ver helpfull for me to learn how to work with MessageManager and configure in web.config file. I followed all the instruction have mentioned in that link and every things created in my application with the same name and build was created successfully , but i have an error while i running the application . here i attached the error message with this .. Please help me come out of this issue..

My web config settings

<messageManager>

<cultures default="en-US" baseName="MessageManagerResources" assembly="CommerceWebApplication.resources">

<culture id="en-US" />

<culture id="fr-FR" />

</cultures>

<resources>

<resource id="pur_badsku" />

</resources>

</messageManager>

i created two folder in the bin directory with en-US and fr-FR ( in microsoft site, they given with hypen(-) but they as underscore(_) . but i created with -

Server Error in '/SampleSite' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unable to load the specified assembly CommerceWebApplication.resources

Source Error:

Line 208:

Line 209: <messageManager>

Line 210: <cultures default="en-US" baseName="MessageManagerResources" assembly="CommerceWebApplication.resources">

Line 211: <culture id="en-US" />

Line 212: <culture id="fr-FR" />


Source File: c:\inetpub\wwwroot\SampleSite\web.config Line: 210

Assembly Load Trace: The following information can be helpful to determine why the assembly 'file:///c:\windows\system32\inetsrv\CommerceWebApplication.resources' could not be loaded.

=== Pre-bind state information ===

LOG: User = WIN2K3-BASE\BizTalk

LOG: Where-ref bind. Location = c:\windows\system32\inetsrv\CommerceWebApplication.resources

LOG: Appbase = file:///c:/inetpub/wwwroot/SampleSite/

LOG: Initial PrivatePath = c:\inetpub\wwwroot\SampleSite\bin

Calling assembly : (Unknown).

===

LOG: This bind starts in LoadFrom load context.

WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

LOG: Using application configuration file: c:\inetpub\wwwroot\SampleSite\web.config

LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

LOG: Attempting download of new URL file:///c:/windows/system32/inetsrv/CommerceWebApplication.resources.


Version Information: Microsoft .NET Framework Version:2.0.50727.91; ASP.NET Version:2.0.50727.62

Prabagarane at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 3

Praba,

Just to double-check, your BIN directory appears as follows, correct?

bin/
en-US/
CommerceMessageManager.resources.dll
fr-FR/
CommerceMessageManager.resources.dll
CommerceMessageManager.dll

Beyond that, I know ASP.Net will at least look in the bin directory for these resources, so I'm not sure what else that would be.

JosephJohnson at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 4

You can also refer to the Commerce Server starter site (http://www.microsoft.com/downloads/details.aspx?FamilyID=c1a8cc18-dc9e-4c50-b598-86e640a79910&displaylang=en) to see how the MessageManager is configured there.

Hope that helps,

madhur

madhur-MSFT at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 5

Your assembly name should be "CommerceWebApplication"

VinayakTadas-MSFT at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 6

hi Joe,

Yea my folder structure was like that as u mentiond but the only thing is CommerceMessageManager.dll was missing in my bin folder, i dont know how to create that dll , becuase al.exe and other tools was created with resources.dll, how to create this one. in 2003 according to our resource file, if i build the solution , it automatically creates the dll in the appriproite folder , here it was not.

things is ... in my bin folder commerceMessageManager is missing? how to create it?

Prabagarane at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 7

Hi Vinayak

if i given as "CommerceWebApplication" the error comes like this,

Unable to load the specified assembly CommerceWebApplication

Server Error in '/SampleSite' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unable to load the specified assembly CommerceWebApplication

Source Error:

Line 208:

Line 209: <messageManager>

Line 210: <cultures default="en-US" baseName="MessageManagerResources" assembly="CommerceWebApplication">

Line 211: <culture id="en-US" />

Line 212: <culture id="fr-FR" />


Source File: c:\inetpub\wwwroot\SampleSite\web.config Line: 210

Assembly Load Trace: The following information can be helpful to determine why the assembly 'file:///c:\windows\system32\inetsrv\CommerceWebApplication' could not be loaded.

=== Pre-bind state information ===

LOG: User = WIN2K3-BASE\BizTalk

LOG: Where-ref bind. Location = c:\windows\system32\inetsrv\CommerceWebApplication

LOG: Appbase = file:///c:/inetpub/wwwroot/SampleSite/

LOG: Initial PrivatePath = c:\inetpub\wwwroot\SampleSite\bin

Calling assembly : (Unknown).

===

LOG: This bind starts in LoadFrom load context.

WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

LOG: Using application configuration file: c:\inetpub\wwwroot\SampleSite\web.config

LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

LOG: Attempting download of new URL file:///c:/windows/system32/inetsrv/CommerceWebApplication.


Version Information: Microsoft .NET Framework Version:2.0.50727.91; ASP.NET Version:2.0.50727.62

Prabagarane at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 8

You can build the resources dll in your /bin directory as follows:

Open a VS2005 command prompt window and set the default directory to your /bin folder. Enter the following two commands:
resgen ..\MessageManagerResources.resx .\en-us\MessageManagerResources.en-US.resources
al /t:lib /embed:.\en-us\MessageManagerResoures.en-US.resources /Culture:en-US /out:MessageManagerResources.dll

The above commands assume you have a MessageManagerResources.resx file in your site directory.

W.R.H. at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...