Published SilverLight app throws exception

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AliR \(VC++ MVP\)

    Published SilverLight app throws exception

    Hi Everyone,

    I have written a silverlight application, which talks to a WCF service,
    which was created within the website after watching this video:


    The service gathers some data using a class library.

    This all works fine within Visual Studio, but when published to a web server
    it throws an excpetion, in the first xxxxServiceComp lete call back, which
    says check InnerException for more details. I check the InnerException, and
    it tells me to look in the InnerException for more details.

    Any thoughts?

    Thanks
    AliR.


  • sloan

    #2
    Re: Published SilverLight app throws exception


    This doesn't really help you much, but here is my "keep checking
    InnerException" code:


    catch (Exception ex)

    {

    Exception nestedEx = ex;

    while (nestedEx != null)

    {

    Console.WriteLi ne(nestedEx.Mes sage);

    nestedEx = nestedEx.InnerE xception;

    }

    Console.WriteLi ne("-----------------------------");

    Console.WriteLi ne(ex.StackTrac e);

    }







    "AliR (VC++ MVP)" <AliR@online.no spamwrote in message
    news:DP0Rk.8452 $Ws1.1106@nlpi0 64.nbdc.sbc.com ...
    Hi Everyone,
    >
    I have written a silverlight application, which talks to a WCF service,
    which was created within the website after watching this video:

    >
    The service gathers some data using a class library.
    >
    This all works fine within Visual Studio, but when published to a web
    server it throws an excpetion, in the first xxxxServiceComp lete call back,
    which says check InnerException for more details. I check the
    InnerException, and it tells me to look in the InnerException for more
    details.
    >
    Any thoughts?
    >
    Thanks
    AliR.
    >
    >

    Comment

    • AliR \(VC++ MVP\)

      #3
      Re: Published SilverLight app throws exception

      Thank you for letting me know that I need to keep going down the chain.

      Here is the error:
      "An error occurred while trying to make a request to URI
      'http://localhost:1312/LSService.svc'. This could be due to attempting to
      access a service in a cross-domain way without a proper cross-domain policy
      in place, or a policy that is unsuitable for SOAP services...."

      I'm starting to hate the fact that developers need to become system
      administrators! I'm not even sure what all that means, hopefully google
      will have something to say about this.

      AliR.


      "sloan" <sloan@ipass.ne twrote in message
      news:uSF9wJRQJH A.1516@TK2MSFTN GP03.phx.gbl...
      >
      This doesn't really help you much, but here is my "keep checking
      InnerException" code:
      >
      >
      catch (Exception ex)
      >
      {
      >
      Exception nestedEx = ex;
      >
      while (nestedEx != null)
      >
      {
      >
      Console.WriteLi ne(nestedEx.Mes sage);
      >
      nestedEx = nestedEx.InnerE xception;
      >
      }
      >
      Console.WriteLi ne("-----------------------------");
      >
      Console.WriteLi ne(ex.StackTrac e);
      >
      }
      >
      >
      >
      >
      >
      >
      >
      "AliR (VC++ MVP)" <AliR@online.no spamwrote in message
      news:DP0Rk.8452 $Ws1.1106@nlpi0 64.nbdc.sbc.com ...
      >Hi Everyone,
      >>
      >I have written a silverlight application, which talks to a WCF service,
      >which was created within the website after watching this video:
      >http://silverlight.net/learn/learnvi...px?video=47177
      >>
      >The service gathers some data using a class library.
      >>
      >This all works fine within Visual Studio, but when published to a web
      >server it throws an excpetion, in the first xxxxServiceComp lete call
      >back, which says check InnerException for more details. I check the
      >InnerException , and it tells me to look in the InnerException for more
      >details.
      >>
      >Any thoughts?
      >>
      >Thanks
      >AliR.
      >>
      >>
      >
      >

      Comment

      • AliR \(VC++ MVP\)

        #4
        Re: Published SilverLight app throws exception

        I found this and did what it said, but no change:



        Why does the error say http://localhost:1312/LSService.svc

        LSService.svc is in http://www.learnstar.com/silvertest/
        which is where the silverlight application is.

        Could this be a configuration problem?

        AliR.


        "AliR (VC++ MVP)" <AliR@online.no spamwrote in message
        news:bg1Rk.8459 $Ws1.3763@nlpi0 64.nbdc.sbc.com ...
        Thank you for letting me know that I need to keep going down the chain.
        >
        Here is the error:
        "An error occurred while trying to make a request to URI
        'http://localhost:1312/LSService.svc'. This could be due to attempting to
        access a service in a cross-domain way without a proper cross-domain
        policy in place, or a policy that is unsuitable for SOAP services...."
        >
        I'm starting to hate the fact that developers need to become system
        administrators! I'm not even sure what all that means, hopefully google
        will have something to say about this.
        >
        AliR.
        >
        >
        "sloan" <sloan@ipass.ne twrote in message
        news:uSF9wJRQJH A.1516@TK2MSFTN GP03.phx.gbl...
        >>
        >This doesn't really help you much, but here is my "keep checking
        >InnerException " code:
        >>
        >>
        >catch (Exception ex)
        >>
        >{
        >>
        >Exception nestedEx = ex;
        >>
        >while (nestedEx != null)
        >>
        >{
        >>
        >Console.WriteL ine(nestedEx.Me ssage);
        >>
        >nestedEx = nestedEx.InnerE xception;
        >>
        >}
        >>
        >Console.WriteL ine("-----------------------------");
        >>
        >Console.WriteL ine(ex.StackTra ce);
        >>
        >}
        >>
        >>
        >>
        >>
        >>
        >>
        >>
        >"AliR (VC++ MVP)" <AliR@online.no spamwrote in message
        >news:DP0Rk.845 2$Ws1.1106@nlpi 064.nbdc.sbc.co m...
        >>Hi Everyone,
        >>>
        >>I have written a silverlight application, which talks to a WCF service,
        >>which was created within the website after watching this video:
        >>http://silverlight.net/learn/learnvi...px?video=47177
        >>>
        >>The service gathers some data using a class library.
        >>>
        >>This all works fine within Visual Studio, but when published to a web
        >>server it throws an excpetion, in the first xxxxServiceComp lete call
        >>back, which says check InnerException for more details. I check the
        >>InnerExceptio n, and it tells me to look in the InnerException for more
        >>details.
        >>>
        >>Any thoughts?
        >>>
        >>Thanks
        >>AliR.
        >>>
        >>>
        >>
        >>
        >
        >

        Comment

        Working...