New_Learner

Hi,

I installed CS 2007 starter site. There was no error reported during the installation. However after installing and then while trying to "load the sample Data and Images" using "Sampledataimport.exe" its spitting the below error.

====================================================

C:\Inetpub\wwwroot\Doubleday> Sampledataimport.exe C:\Inetpub\wwwroot\Doubleday


Loading data into site: Doubleday

Connecting to Catalog system:
Error: An error was encountered when connecting to the Catalog web service at '
http://dday-mani-dev:50000/CatalogWebService/CatalogWebService.asmx': The request failed with HTTP status 503: Service Unavailable.

====================================================

I'm not really sure where to start to fix this. Can you please help.

Cheers

Veera



Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service


Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service


Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

Veera_Mani

HI Roman,
Tnx for your reply. Yes, i have configured access permissions.

Is there anywhere else i could have gone wrong

Any sugg is much appreciated.

Cheers
Veera





Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

Max Akbar

Can you hit the link with IE check the IIS manager and see if the App Pool is stoped if so then you have issues with the App Pool identity.

-Max






Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

Veera_Mani

Tnx Max,

  1. Yes, couple of application pools were stopped and i restarted it and ran "C:\Inetpub\wwwroot\Doubleday> Sampledataimport.exe C:\Inetpub\wwwroot\Doubleday" again.
  2. Again i got an error "CS encountered an error and cannot continue" and was shown an debugger info. Please see the output below.

--------------------------------------------------------------------------------------------------------------------------------------------------------------

C:\Inetpub\wwwroot\Doubleday>Sampledataimport.exe C:\Inetpub\wwwroot\Doubleday
Loading data into site: Doubleday

Connecting to Catalog system:
Unhandled Exception: System.InvalidOperationException: Client found response con
tent type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>Configuration Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:bl
ack;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5p
x}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red
}
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maro
on }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy;
cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/CatalogWebService' Application.<hr width
=100% size=1 color=silver></H1>

<h2> <i>Configuration Error</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">


<b> Description: </b>An error occurred during the processing of a co
nfiguration file required to service this request. Please review the specific er
ror details below and modify your configuration file appropriately.
<br><br>

<b> Parser Error Message: </b>Could not load type 'CommerceComponent
s.MixedAuthenticationModule'. (C:\Inetpub\wwwroot\Doubleday\web.config line 283)
<br><br>

<b>Source Error:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>

Line 281: <add name="Session" type="System.Web.SessionStat
e.SessionStateModule"/>
Line 282: <add name="WindowsAuthentication" type="System.W
eb.Security.WindowsAuthenticationModule"/>
<font color=red>Line 283: <add name="MixedModeAuthenticati
on" type="CommerceComponents.MixedAuthenticationModule"/>
</font>Line 284: <add name="FormsAuthentication" type="Sy
stem.Web.Security.FormsAuthenticationModule"/>
Line 285: <add name="MixedModeAuthenticationFixUp" type="C
ommerceComponents.MixedAuthenticationModuleFixUp"/></pre></code>

</td>
</tr>
</table>

<br>

<b> Source File: </b> C:\Inetpub\wwwroot\Doubleday\web.config<b>
Line: </b> 283
<br><br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b> Microsoft .NET Framework Version:2.0.507
27.42; ASP.NET Version:2.0.50727.62

</font>

</body>
</html>
<!--
[ConfigurationErrorsException]: Could not load type 'CommerceComponents.MixedAut
henticationModule'. (C:\Inetpub\wwwroot\Doubleday\web.config line 283) (C:\Inetp
ub\wwwroot\Doubleday\web.config line 283)
at System.Web.Configuration.HttpModuleAction.get_Entry()
at System.Web.Configuration.HttpModulesSection.CreateModules()
at System.Web.HttpApplication.InitModules()
at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicati
onState state, MethodInfo[] handlers)
at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext
context)
at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext conte
xt)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
-->
--.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at Microsoft.CommerceServer.Catalog.WebService.Proxies.CatalogWebService.Auth
orizedInvoke(String methodName, Object[] parameters)
at Microsoft.CommerceServer.Catalog.WebService.Proxies.CatalogWebService.GetS
erviceVersion()
at Microsoft.CommerceServer.Catalog.CatalogAgentContext.GetServiceVersion()
at Microsoft.CommerceServer.Catalog.CatalogContext.ValidateWebServiceVersion(
)
at Microsoft.CommerceServer.Catalog.CatalogContext.InternalCreate(CatalogServ
iceAgent catalogServiceAgent, DebugContext debugContext)
at Microsoft.CommerceServer.Catalog.CatalogContext.Create(CatalogServiceAgent
catalogServiceAgent)
at CommerceSite.SampleDataImport.CreateCatalogContext()
at CommerceSite.SampleDataImport.Initialize()
at CommerceSite.SampleDataImport.Run()
at CommerceSite.SampleDataImport.Main(String[] args)

C:\Inetpub\wwwroot\Doubleday>

--------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Nevertheless, i went ahead to see if the page can be launched and the starter site loaded fine. "Welcome to the Commerce Server 2007 Starter Site. This Web site showcases ...."

Can you please let me know if i continue with it or should i consider re-installing.

Cheers

Veera





Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

Max Akbar

You need to check the right app pool if the one assigned to the CatalogWeb Service is stoped then you did not configure the web service correctly.

Make sure to follow the instruction at Post Configuration.

You do not need to reinstall.

-Max






Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

Roman Yegoryshev

Hi Veera,

I've faced similar problem - in my case in IIS Virtual folder options at the ASP.NET tab ASP.NET version property was set to 1.1 version.

Thanks,

Roman.





Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

eosanj

I received the same error.
My platform is the wonderful Windows XP Pro SP2.
The rest of the installation went fine.
The ASP.NET is 2.0.50727

(Downloaded .NET 3.0, but it seems to revert to .NET 2.0 and seems to co-exist with 3.0)

Caveats:
1. IIS 5.1 on Windows XP Pro does not have Application Pooling. Any workarounds I did see a posting on the IIS_WPG group and its permissions.

2. SQL Server 2005 Express on the same machine. Used Windows Authentication for connection, however, the web.config uses the "sa" account

Is this a StarterSite "patch" that missed something in the latest update

My error is simiar:
--------------------------

C:\install\apps\Commerce\starter_site>Sampledataimport.exe C:\Inetpub\wwwroot\StarterSite

Loading data into site: StarterSite

Connecting to Catalog system:

Unhandled Exception: System.InvalidOperationException: Client found response con

tent type of 'text/html; charset=utf-8', but expected 'text/xml'.

The request failed with the error message:

--

< xml version="1.0" >

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/

DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head>

<title>Server Unavailable

</title>

</head>

<body>

<h1><span style="font-family:Verdana;color: #ff3300">Server Application Un

available

</span></h1>

<p>

<span style="font-family:Verdana;">

The web application you are attempting to access on this web server is c

urrently unavailable. Please hit the "Refresh" button in your web browser to re

try your request.

</span></p>

<p>

<b>Administrator Note:

</b> An error message detailing the cause of this specific request failure can b

e found in the application event log of the web server. Please review this log

entry to discover what caused this error to occur.

</p>

</body>

</html>

--.

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie

ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal

l)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN

ame, Object[] parameters)

at Microsoft.CommerceServer.Catalog.WebService.Proxies.CatalogWebService.Auth

orizedInvoke(String methodName, Object[] parameters)

at Microsoft.CommerceServer.Catalog.WebService.Proxies.CatalogWebService.GetS

erviceVersion()

at Microsoft.CommerceServer.Catalog.CatalogAgentContext.GetServiceVersion()

at Microsoft.CommerceServer.Catalog.CatalogContext.ValidateWebServiceVersion(

)

at Microsoft.CommerceServer.Catalog.CatalogContext.InternalCreate(CatalogServ

iceAgent catalogServiceAgent, DebugContext debugContext)

at Microsoft.CommerceServer.Catalog.CatalogContext.Create(CatalogServiceAgent

catalogServiceAgent)

at CommerceSite.SampleDataImport.CreateCatalogContext()

at CommerceSite.SampleDataImport.Initialize()

at CommerceSite.SampleDataImport.Run()

at CommerceSite.SampleDataImport.Main(String[] args)

----






Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

Max Akbar

You should have no issues with .NET 3.0 so that's not the issue. As long as you didn't use the SQL Express the you should be good to go.

Look at my blog for Windows XP installation Windows XP installation Instructions.

-Max






Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

Veera_Mani

Thanks Roman, I uninstalled the startersite and will be reinstalling it back in two days. I uninstalled because there was too many other errors happening.

Cheers
Veera




Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

eosanj

Max,
Thanks for the install instructions. Had gone through this.
It seems like installing CS2007 on XP Pro can be quite multivariate if not given a clean machine with full privileges...

I got this to work, after the following fixes, which were missing from the instructions (but mentioned elsewhere in MSDN forums and such):

1. Checking "Scripts Virtual Directory" under Add Windows Components -> IIS -> WWW Service. This is disabled by default when IIS is added to XP Pro.

2. Adding ASPNET user to Admin Group on the local machine. The SQL Server Express install *does not* grant access to the ASP.NET worker process identity.

3. Executing the "admin_schema.sql" at the master db using SQL Server Express Management Console. This is needed since the MS_CatalogScratch (which I gather is the temp db for CS2007) is not created (only MSCS_Admin db is created initially).

4. NewOrder attribute error: This has been reported previously with the CS2007 StarterSite.pup. The elegant solution to this is to execute the "regiondata.sql" script under <CS2007 Install dir>\SDK\Samples\SiteCreate against the "transactionconfig" database.

Hope this helps others...




Re: Commerce Server 2007 CS 2007 - error was encountered when connecting to the Catalog web service

eosanj

Max,

Another issue has cropped up:
When I try to run the Catalog Manager, I get the error described in the Microsoft Support Site:
http://support.microsoft.com/kb/920867

This is a known issue for XP Pro, due to the impersonation architecture.

Apparently there is a "hotfix" for this issue:
File name File version File size Date Time Platform
Authz.dll 5.1.2600.2925 62,464 08-Jun-2006 11:07 x86

Before I do the Customer Support runarounds, could this hotfix be posted somewhere for the general consumption of us developers

Thanks!