Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Help with deployement

Help with deployement

Scheduled Pinned Locked Moved WPF
csharphelpjavascriptdotnetwcf
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    ToddHileHoffer
    wrote on last edited by
    #1

    I have built a small application using Silver Light 3. The app contains a website with SilverLight enabled WCF services. Everything works great when debugging. But when I deploy it to the server the application generates an exception every time it tries to use the web service. I tried changing the location of the reference in ServiceReferences.ClientConfig to the location of the published service before deploying, but that did not work. Anyone know how to go about debugging this? The javascript error message doesn't tell me much. Is there any good way to handle silverlight errors? Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC EA 2) Timestamp: Mon, 25 Jan 2010 19:03:17 UTC Message: Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at SettlementGainLoss.PricingData.GetTopHatTerminalsCompletedEventArgs.get_Result() at SettlementGainLoss.Views.MapPrices.client_GetTopHatTerminalsCompleted(Object sender, GetTopHatTerminalsCompletedEventArgs e) at SettlementGainLoss.PricingData.PricingDataServiceClient.OnGetTopHatTerminalsCompleted(Object state) Line: 1 Char: 1 Code: 0 URI: http://devintranet.buckeye.com/sl3Example/Home.aspx Message: Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at SettlementGainLoss.PricingData.GetProductsCompletedEventArgs.get_Result() at SettlementGainLoss.Views.MapPrices.client_GetProductsCompleted(Object sender, GetProductsCompletedEventArgs e) at SettlementGainLoss.PricingData.PricingDataServiceClient.OnGetProductsCompleted(Object state) Line: 1 Char: 1 Code: 0 URI: http://devintranet.buckeye.com/sl3Example/Home.aspx

    I didn't get any requirements for the signature

    M 1 Reply Last reply
    0
    • T ToddHileHoffer

      I have built a small application using Silver Light 3. The app contains a website with SilverLight enabled WCF services. Everything works great when debugging. But when I deploy it to the server the application generates an exception every time it tries to use the web service. I tried changing the location of the reference in ServiceReferences.ClientConfig to the location of the published service before deploying, but that did not work. Anyone know how to go about debugging this? The javascript error message doesn't tell me much. Is there any good way to handle silverlight errors? Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC EA 2) Timestamp: Mon, 25 Jan 2010 19:03:17 UTC Message: Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at SettlementGainLoss.PricingData.GetTopHatTerminalsCompletedEventArgs.get_Result() at SettlementGainLoss.Views.MapPrices.client_GetTopHatTerminalsCompleted(Object sender, GetTopHatTerminalsCompletedEventArgs e) at SettlementGainLoss.PricingData.PricingDataServiceClient.OnGetTopHatTerminalsCompleted(Object state) Line: 1 Char: 1 Code: 0 URI: http://devintranet.buckeye.com/sl3Example/Home.aspx Message: Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at SettlementGainLoss.PricingData.GetProductsCompletedEventArgs.get_Result() at SettlementGainLoss.Views.MapPrices.client_GetProductsCompleted(Object sender, GetProductsCompletedEventArgs e) at SettlementGainLoss.PricingData.PricingDataServiceClient.OnGetProductsCompleted(Object state) Line: 1 Char: 1 Code: 0 URI: http://devintranet.buckeye.com/sl3Example/Home.aspx

      I didn't get any requirements for the signature

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      ToddHileHoffer wrote:

      I tried changing the location of the reference in ServiceReferences.ClientConfig to the location of the published service before deploying, but that did not work.

      You also probably need changes in the web.config. What does your web.config look like?

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      T 1 Reply Last reply
      0
      • M Mark Salsbery

        ToddHileHoffer wrote:

        I tried changing the location of the reference in ServiceReferences.ClientConfig to the location of the published service before deploying, but that did not work.

        You also probably need changes in the web.config. What does your web.config look like?

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        T Offline
        T Offline
        ToddHileHoffer
        wrote on last edited by
        #3

        Thanks for the reply. I finally got it working. I had to update the web.config to use Windows auth and impersonate the user with db access. However I now need to figure out how to handle exceptions in silver light pages.

        I didn't get any requirements for the signature

        M 1 Reply Last reply
        0
        • T ToddHileHoffer

          Thanks for the reply. I finally got it working. I had to update the web.config to use Windows auth and impersonate the user with db access. However I now need to figure out how to handle exceptions in silver light pages.

          I didn't get any requirements for the signature

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          ToddHileHoffer wrote:

          I now need to figure out how to handle exceptions in silver light pages.

          Same way you would anywhere?

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          T 1 Reply Last reply
          0
          • M Mark Salsbery

            ToddHileHoffer wrote:

            I now need to figure out how to handle exceptions in silver light pages.

            Same way you would anywhere?

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            T Offline
            T Offline
            ToddHileHoffer
            wrote on last edited by
            #5

            No, not at all. I have an error handler class for ASP.Net applications. The class is called from the global Application_Error event. The error handler gathers a ton of information by iterating the child exceptions, using reflection and iterating form collection and session values. The handler class then writes out all this information to a file and emails me the information as well. I don't know of a global error event in a silverlight. Also, a silver light app can not send email, nor can it write out a file on my server. So no the error handling is not the same at all compared to ASP.Net.

            I didn't get any requirements for the signature

            M 1 Reply Last reply
            0
            • T ToddHileHoffer

              No, not at all. I have an error handler class for ASP.Net applications. The class is called from the global Application_Error event. The error handler gathers a ton of information by iterating the child exceptions, using reflection and iterating form collection and session values. The handler class then writes out all this information to a file and emails me the information as well. I don't know of a global error event in a silverlight. Also, a silver light app can not send email, nor can it write out a file on my server. So no the error handling is not the same at all compared to ASP.Net.

              I didn't get any requirements for the signature

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              Heh - you just stated "how to handle exceptions in silver light pages" :)

              ToddHileHoffer wrote:

              I don't know of a global error event in a silverlight

              Perhaps Application.UnhandledException Event[^]

              ToddHileHoffer wrote:

              Also, a silver light app can not send email, nor can it write out a file on my server.

              Of course not. This is not ASP.NET. Silverlight is completely client side, running within the confines of a browser security sandbox, and using a different version of the .NET framework.

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups