WCF Problem

Discussion in 'ASP.NET / ASP.NET Core' started by Randyb, Dec 12, 2008.

  1. I have a simple WCF Service created in VS2008 VB. I can attach to it in a web application and a desktop application on the development machine and runwithout a problem. When I tried to copy it to my domain on discountasp.net and try to run I get the following error. I have tried to google information on this without success...


    Server Error in '/' Application.


    The requested service, 'http://www.racquetballladder.com/Service1.svc' could not be activated. See the server's diagnostic trace logs for more information.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ServiceModel.ServiceActivationException: The requested service, 'http://www.racquetballladder.com/Service1.svc' could not be activated. See the server's diagnostic trace logs for more information.

    Source Error:






    Code:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:






    Code:
    [ServiceActivationException: The requested service, 'http://www.racquetballladder.com/Service1.svc' could not be activated. See the server's diagnostic trace logs for more information.]
       System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7594687
       System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +275
       ServiceReference1.IService1.GetDataAdd(Int32 ivalue1, Int32 iValue2) +0
       ServiceReference1.Service1Client.GetDataAdd(Int32 ivalue1, Int32 iValue2) +23
       _Default.btnAdd_Click(Object sender, EventArgs e) +109
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    

    The code I have added in the Web config is below:

    <system.serviceModel>

    <wsHttpBinding>

    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
    <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
    <security mode="Message">
    <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
    <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true"/>
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>
    <client>
    <endpoint address="http://www.racquetballladder.com/Service1.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1" contract="ServiceReference1.IService1" name="WSHttpBinding_IService1">
    </endpoint>
    </client>
    </system.serviceModel>


    I copied the dll's the .SVC file and the changes to the webconfig file to the site...

    This service is a simple service I wrote as a test that will take two numbers add them together and return the result.

    The code to make the call to the service is:
    Dim oService as ServiceReference1.Service1Client = New ServiceReference1.Service1Client
    txtAnswer.Text = oService.GetDataAdd(txtNumber1.text, txtNumber2.Text)

    The site can be tested with the following URL:
    http://www.racquetballladder.com/mathcalc.aspx

    The message says to see the Server Diagonostic Trace Logs for more information. I put in a ticket asking about this log and how to get to it without any help on the reply from support...

    Can someone give me direction on the next step to solving this problem... I would guess it is just somethingin the webconfig file that needs to be changed but I am new to WCF programming and not to familiar with the setup process...

    TIA

    Randyb
     

Share This Page