Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Commerce Server Errors but not using Commerce

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
Hi all

I have a very strange error occuring in my development environment. Whenever I create a new, blank ASP.NET project, with the default webform and I try to run the code (it's a blank page), it comes up with the following error:

AuthManager(CommerceServer): Call to SiteConfig:;Initialize() failed, for Commerce-Site: 'csharpsite'. Check SiteName Or ResourceName/PropName that you are looking for.

The Stack Trace reveals:

[ArgumentException: AuthManager(CommerceServer): Call to SiteConfig:;Initialize() failed, for Commerce-Site: 'csharpsite'. Check SiteName Or ResourceName/PropName that you are looking for.]
Microsoft.CommerceServer.Interop.AuthManagerClass.Initialize(String bstrSiteName) +0
Microsoft.CommerceServer.Runtime.CommerceContext.get_AuthManagerComClass() +95
Microsoft.CommerceServer.Runtime.AuthManager..ctor(String siteName, DebugContext debugContext) +143
Microsoft.CommerceServer.Runtime.CommerceAuthenticationModule.OnBeginRequest(Object sender, EventArgs e) +110
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

But the thing is - I'm not USING any commerce components! The web.config contains no reference to Commerce Server.

Can anyone help me with this please? It's driving me insane!

Thanks as always


Craftor
:cool:
 
Looks like you're instantiating, or utilising a method from, a Class called SiteConfig and it's Initialize() method is failing and the error is bubbling up.

Are you using a class called SiteConfig and does it use authenticate the site accessing it with Commerce Server?

Rhys
"There are some oddities in the perspective with which we see the world. The fact that we live at the bottom of a deep gravity well, on the surface of a gas-covered planet going around a nuclear fireball 90 million miles away and think this to be normal is obviously some indication of how skewed our perspective tends to be"
DOUGLAS AD
 
Hi Rhys

It was the wierdest thing - I wasn't calling ANY of the methods referenced in the stack trace.

After a lot of investigation, and almost having to reinstall my development environment, I found that Commerce was crashing because I had changed my password. But the wierd thing was that this was a new, plain ASP.NET application! No commerce interaction at all.

Once I had updated my Commerce Config, all new and existing web projects - both with and without Commerce - worked fine.

Thanks as always

Craftor
:cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top