WCF Service error

Forum Home Forums Uncategorized Issues WCF Service error

This topic contains 13 replies, has 4 voices, and was last updated by Avatar MohanadOdema 2 years, 4 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #68
    Avatar
    teleco
    Participant

    Once I have logged to some account, when I try to visualize the default scheme, the next error appears:

    WCF service error: [HttpWebRequest_WebEXception_RemoteServer]
    Argumentos: NotFound
    Las cadenas de recursos de depuración no están disponibles. La clave y los argumentos suelen proporcionar suficiente…

    How can I solve it?

    #71
    Mikhail
    Mikhail
    Moderator

    The error is concerned with a security reason. Scheme is displayed by the silverlight application which can’t connect to WCF service.
    Try to open SCADA-Web using different URLs:
    http://localhost/scada
    http://127.0.0.1/scada
    http://YourComputerName/scada

    Does it solve the problem?

    #601
    Avatar
    sancudo
    Participant

    I’m having the same problem, opening SCADA-Web with the different URLs suggested didn’t work for me. It throws the same error anyway.

    Are there any other alternatives to solve this?

    #602
    Mikhail
    Mikhail
    Moderator

    Is there any additional information in the log files in the folder C:\SCADA\ScadaWeb\log ?

    #604
    Mikhail
    Mikhail
    Moderator
    #606
    Avatar
    sancudo
    Participant

    The ScadaScheme log provides no information. The only thing in ScadaWeb that could be something is this, which i’m not sure what kind of file it is.

    2015-10-13 06:27:29 <MYCOMPUTER><DefaultAppPool><ACT> SCADA-Server unable to open file [Ev]\e151013.dat

    Only log before that is me login in. Not sure if this has something to do with it. When I attempt to load the default scheme and get the error, no lines are added to the log file but the time of that is not far off from about 5 minutes from one of the times when I got the error.

    I get an error 404.3 when trying to Access the .svc like that.

    • This reply was modified 3 years, 8 months ago by Avatar sancudo.
    #608
    Mikhail
    Mikhail
    Moderator

    Most likely Microsoft WCF does not work on your computer.
    Try the following recomendations: http://stackoverflow.com/questions/6425442/http-error-404-3-not-found-in-iis-7-5
    Be attentive: you need WCF 4 or higher

    #609
    Avatar
    sancudo
    Participant

    Well, seems I made some progress, now I’m getting this error

    WFC servie error: [ResponseContentTypeMismatch
    Arguments: text/html; charset=utf-8,text/xml; charset=utf/8,1024,

    <!DOCTYPE html PUBLIC “-//WC3//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org…

    The ScadaWeb.log throws this as the associated error

    2015-10-13 14:55:39 <MYCOMPUTER><DefaultAppPool><EXC> Application error: Path ‘/Scada/scheme/ScadaSchemeSvc.svc’ is forbidden.
    at System.Web.HttpForbiddenHandler.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    Page: http://localhost/Scada/scheme/ScadaSchemeSvc.svc

    And trying to access directly to the .svc throws this in the browser
    Application error: Path ‘/Scada/scheme/ScadaSchemeSvc.svc’ is forbidden.

    Any way to enable the access? is it because of firewall or is there another reason?

    • This reply was modified 3 years, 8 months ago by Avatar sancudo.
    • This reply was modified 3 years, 8 months ago by Avatar sancudo.
    #612
    Mikhail
    Mikhail
    Moderator

    I don’t think that Firewall blocks the page. The cause is in ASP.NET, IIS and WCF.
    What Windows version do you use?

    #613
    Avatar
    sancudo
    Participant

    Windows 8.1

    #614
    Mikhail
    Mikhail
    Moderator

    Probably something wring with a handler for *.svc like written here, here and here.
    I can try to solve the issue remotely, but it is a payable service (in case of success))

    #615
    Avatar
    sancudo
    Participant

    Managed to solve it by using DSIM in the command prompt in one of the replies of the first link.

    After aplying that I started getting the following error

    Server Error in ‘/Scada’ Application.
    ——————————————————————————–

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: The value of the property ‘controlRenderingCompatibilityVersion’ cannot be parsed. The error is: Version string portion was too short or too long.

    Source Error:

    Line 4: <compilation targetFramework=”4.0″ />
    Line 5: <roleManager enabled=”true” />
    Line 6: <pages controlRenderingCompatibilityVersion=” ” />
    Line 7: </system.web>

    However, I fixed it by putting 4.0 instead of leaving line 6 blank which is the line of the error.

    Thanks for all the help and availability!

    #616
    Mikhail
    Mikhail
    Moderator

    Thanks for the solution! I hope it will help others.

    #1937
    Avatar
    MohanadOdema
    Participant

    Hi,

    For the problem WCF service error: [HttpWebRequest_WebEXception_RemoteServer]
    Arguments: NotFound.
    This solution did not work for me yet I’m adding another solution that I figured out during the course of a day in case someone is facing the same issue.

    I’m using Windows 7 sp1 for the record. After I had installed the .NET framework v4.0, I ran the cmd program as an administrator and typed the following:
    cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\

    Next I typed: aspnet_regiis.exe -i

    These steps make sure that the IIS is actually working with version 4 of .NET.

    Regarding the “not found arguments”, I opened Scada\ScadaWeb\Web.config and found that the argument behavior name is nullified so I initialized it to “a” and I was finally able to load my scheme from the web browser.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.