简体   繁体   中英

can I work with Microsoft Commerce server, catalog API , with Windows Service Application

I worked before with "Microsoft Commerce server 2007" and used it's Catalog API to get products data in my web site. But I have a requirement to make a windows service that uses the commerce product catalog data, but I don't know how to adjust the APP.Config of this service to get data.

Every time I try commerce code it returns Null "CommerceContext.Current"== null

any Idea or sample config?

You need to create a CatalogContext object in Local or Agent mode. See How to Create a CatalogContext Object for details.

CommerceContext.Current is only non-null when running in the context of an ASP.NET web application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM