This is a migrated thread and some comments may be shown as answers.

Map Demo & Print Support

6 Answers 148 Views
Map
This is a migrated thread and some comments may be shown as answers.
Josh King
Top achievements
Rank 2
Josh King asked on 13 Nov 2009, 04:08 PM
The map demo is not working.  I get a script error.  Running IE 8 on Windows 7.

Also, will there be print support for the maps?

6 Answers, 1 is accepted

Sort by
0
Chris Rathermel
Top achievements
Rank 1
answered on 13 Nov 2009, 10:17 PM
I am getting an error when the app tries to validate the token:

System.ServiceModel.CommunicationException was unhandled by user code
  Message="The remote server returned an error: NotFound."
  StackTrace:
       at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
       at MapApplication.TokenService.RadMapTokenServiceClient.RadMapTokenServiceClientChannel.EndGetToken(IAsyncResult result)
       at MapApplication.TokenService.RadMapTokenServiceClient.MapApplication.TokenService.RadMapTokenService.EndGetToken(IAsyncResult result)
       at MapApplication.TokenService.RadMapTokenServiceClient.OnEndGetToken(IAsyncResult result)
       at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
  InnerException: System.Net.WebException
       Message="The remote server returned an error: NotFound."
       StackTrace:
            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)
       InnerException: System.Net.WebException
            Message="The remote server returned an error: NotFound."
            StackTrace:
                 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)
            InnerException:
0
Giuseppe
Telerik team
answered on 16 Nov 2009, 11:43 AM
Hello Josh, Chris,

There was a problem related to a scheduled maintenance task over the weekend but the demos should be working fine now.

As for printing support -- the Silverlight platform itself does not provide printing support at the moment; hopefully with Silverlight 4 this will change and we will be able to re-evaluate our options then.


Sincerely yours,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chris Rathermel
Top achievements
Rank 1
answered on 16 Nov 2009, 04:09 PM
I re-downloaded the example and got the same error message:

System.ServiceModel.CommunicationException was unhandled by user code  
  Message="The remote server returned an error: NotFound." 
  StackTrace:  
       at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)  
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)  
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)  
       at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)  
       at MapApplication.TokenService.RadMapTokenServiceClient.RadMapTokenServiceClientChannel.EndGetToken(IAsyncResult result)  
       at MapApplication.TokenService.RadMapTokenServiceClient.MapApplication.TokenService.RadMapTokenService.EndGetToken(IAsyncResult result)  
       at MapApplication.TokenService.RadMapTokenServiceClient.OnEndGetToken(IAsyncResult result)  
       at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)  
  InnerException: System.Net.WebException  
       Message="The remote server returned an error: NotFound." 
       StackTrace:  
            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)  
       InnerException: System.Net.WebException  
            Message="The remote server returned an error: NotFound." 
            StackTrace:  
                 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)  
            InnerException:   
 
0
Giuseppe
Telerik team
answered on 16 Nov 2009, 06:02 PM
Hello Chris,

Sorry for the confusion -- we were under the impression that you were referring the online demos here (and they were down due to maintenance issue).

As for the MapApplication project --it seems the wcf service configuration logic generated automatically contained a configuration attribute (namely extendedProtectionPolicy) that is incompatible with some Windows installations (we have now seen reported problems with Windows XP and Windows Vista, Windows 7 should be OK).

We have now removed the attribute and we are attaching the modified application that should work as expected. We will update the forum thread shortly as well.


Best wishes,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chris Rathermel
Top achievements
Rank 1
answered on 16 Nov 2009, 10:54 PM
Well I am getting a different error now which is progress :).  I tried the default login credentials and tried using my own and no luck. 

System.Exception was unhandled by user code  
  Message="Token Service Exception: Unable to connect to the remote server" 
  Source="MapApplication.Web" 
  StackTrace:  
       at MapApplication.Web.RadMapTokenService.GetToken() in C:\inetpub\wwwroot\vkformsdevelopment\MapApplication\MapApplication.Web\RadMapTokenService.svc.cs:line 45  
       at SyncInvokeGetToken(Object , Object[] , Object[] )  
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)  
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)  
  InnerException:   
 

It is erroring on token service class: RadMapTokenService.svc.cs line 41.

The tokenService object seems to have the right staging url, check the attached screen shot.

Thanks for the help,

Chris

0
Giuseppe
Telerik team
answered on 18 Nov 2009, 12:33 PM
Hello Chris,

Unfortunately we are unable to reproduce this problem in our local tests at the moment. Could you provide some more details on the workstation configuration you are using? Could you please try to request the RadMapTokenService.svc (i.e http://localhost:6519/RadMapTokenService.svc) manually from the browser so we can verify it is correctly registered?


Best wishes,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Map
Asked by
Josh King
Top achievements
Rank 2
Answers by
Chris Rathermel
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or