New Posts New Posts RSS Feed: deployment to DiscountASP
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

deployment to DiscountASP

 Post Reply Post Reply Page  <12
Author
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Topic: deployment to DiscountASP
    Posted: 28-May-2010 at 10:00pm
Replace:

query.ExecuteAsync(op => op.Results.ForEach(DD_Tables.Add));

With:

query.ExecuteAsync(GotEntities);

private void GotEntities(EntityQueryOperation<DD_Table> args)
{
    if (args.Error != null)
   {
       _textBlockError.Text = args.Error.Message;
   }
   else
   {
      args.Results.ForEach(DD_Tables.Add);
    }
}
Back to Top
DataMan View Drop Down
Groupie
Groupie
Avatar

Joined: 26-Jul-2007
Location: Canada
Posts: 52
Post Options Post Options   Quote DataMan Quote  Post ReplyReply Direct Link To This Post Posted: 28-May-2010 at 10:50pm

Ok,  I looked at your post when I heard the e-mail come in.  I shouldn't have but I did :-)

The error is a simple "Not Found"
 
System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
   at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
   --- End of inner exception stack trace ---
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
   --- End of inner exception stack trace ---
   at IdeaBlade.EntityModel.EntityServerProxy.Fetch(SessionBundle bundle, IEntityQuerySurrogate query)
   at IdeaBlade.EntityModel.EntityManager.AsyncFetchWorker(AsyncEventArgs state)
Back to Top
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Posted: 28-May-2010 at 10:56pm
Sounds as if your web.config is pointing at the wrong address. I would suggest using a tool such as Fiddler to see where it is really connecting to.

http://www.fiddler2.com/fiddler2/
Back to Top
DataMan View Drop Down
Groupie
Groupie
Avatar

Joined: 26-Jul-2007
Location: Canada
Posts: 52
Post Options Post Options   Quote DataMan Quote  Post ReplyReply Direct Link To This Post Posted: 29-May-2010 at 12:36am
Ok,  I didn't figure out what the exact problem was but I started looking at my SQL connection and noticed that it had some metadata stuff that was pointing at nothwind and I then remembered when I was creating the project I used the nothwind by accident and then hit back and created a new connection with my discountasp.net database.
 
I can't see why that would have been the problem but I then thought I would start from scratch and try the tutorial again.  I called it SimpleSteps2 and coded it and uploaded it to the web and voila,  it worked.
 
Thanks for all your help especially on a late friday night!
 
Now that this is working I find it hard to believe how easy it really was.  I also think the deployment of the silverlight project is a heck of a lot easier than asp.net! 
 
I also thought getting it hosted on DiscountAsp.net would have been harder but it wasn't.  All of their directories and mimetypes etc are all setup properly.  There's not much to do except put the files in the right place and make a simple change to the web.config to enable the multisomethingorother. 
 
Considering it was a few hours to build the simplest project and get it running on a web page without having any knowledge of Silverlight, WCF and a only a basic knowledge of ASP.net I'm feeling pretty good about the rest of the project!
 
Thanks
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down