I have a problem getting a sample ASP.NET application, with associated web service running. I make the correct program the default start-up project, but get the following error message:
Please see attached.
"The SilverLight project you are about to debug is consuming web services. Calls to the web service will fail unless the project is executed in the context of the web which contains the web service."
The web service connects to the Amazon.com website and the start-up project (AmazonStore) has a web reference to the web service (AmazonStoreWeb).
It's an easy free demo to get at:
http://www.componentone.com/SuperProducts/StudioSilverlight/
I have a feeling that the web service will not run inside the development environment, but I may be wrong.
I hope to hear from you.
Thanks,
newbieweb
AmazonStoreProblem.JPG
using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protoc
using System.ComponentModel;
using System.Xml.Linq;
using System.ServiceModel;
using AmazonStore_Web.com.amazon
namespace AmazonStore_Web
{
/// <summary>
/// Amazon web service proxy
/// </summary>
[ServiceContract(Namespace
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(Conform
[ToolboxItem(false)]
[System.Web.Script.Service
public class AmazonStoreService : System.Web.Services.WebSer
{
AWSECommerceService _amz = new AWSECommerceService();
const string ACCESSKEY = "10NSHPH51BZT2KDMZ3R2"; // joetester31416@yahoo.com