[Fatal error] Application Exception

Forum Home Forums Uncategorized Issues [Fatal error] Application Exception

Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1415
    Michal Dziczkowski
    Participant

    After following the install instructions and starting the server, I had entered in the web browser the address given in the document:

    http://[hostname]:8084/scada

    replacing the [hostname] with localhost. Instead of the propper content, it has displayed following error:

    System.Web.HttpException
    The resource cannot be found.
    
    Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
    
    Details: Requested URL: /scada
    Exception stack trace:
      at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 
      at System.Web.DefaultHttpHandler.BeginProcessRequest (System.Web.HttpContext context, System.AsyncCallback callback, System.Object state) [0x00000] in <filename unknown>:0 
      at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0 
      at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0

    . When I removed thw /scada part, it showed me following error:

    System.ArgumentOutOfRangeException
    Argument is out of range.
    Parameter name: startIndex
    
    Description: HTTP 400.Error processing request.
    
    Details: Non-web exception. Exception origin (name of application or object): mscorlib.
    Exception stack trace:
      at System.String.Substring (Int32 startIndex) [0x00000] in <filename unknown>:0 
      at Mono.WebServer.MonoWorkerRequest.AssertFileAccessible () [0x00000] in <filename unknown>:0 
      at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x00000] in <filename unknown>:0
    #1418
    Mikhail
    Moderator

    What OS do you use?
    In case of Raspbian, validate the content of the files
    /etc/default/mono-xsp4
    /etc/xsp4/debian.webapp

    Also you can try http://ipaddress:8084/scada/Login.aspx

    #1419
    Michal Dziczkowski
    Participant

    I have downloaded the Linux version and I wanted to test it on my Ubuntu 14.04

    The login link returned:

    System.Web.HttpException
    The resource cannot be found.
    
    Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
    
    Details: Requested URL: /scada/login.aspx
    Exception stack trace:
      at System.Web.Compilation.BuildManager.AssertVirtualPathExists (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0 
      at System.Web.Compilation.BuildManager.Build (System.Web.VirtualPath vp) [0x00000] in <filename unknown>:0 
      at System.Web.Compilation.BuildManager.GetCompiledType (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0 
      at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath (System.Web.VirtualPath virtualPath, System.Type requiredBaseType) [0x00000] in <filename unknown>:0 
      at System.Web.UI.PageParser.GetCompiledPageInstance (System.String virtualPath, System.String inputFile, System.Web.HttpContext context) [0x00000] in <filename unknown>:0 
      at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String path) [0x00000] in <filename unknown>:0 
      at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00000] in <filename unknown>:0 
      at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in <filename unknown>:0 
      at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x00000] in <filename unknown>:0
    #1420
    Mikhail
    Moderator

    In Linux a path is case sensitive. Try Login.aspx

    #1421
    Michal Dziczkowski
    Participant

    tryed. The result was:

    System.ArgumentException
    Directory does not exists
    Parameter name: value
    
    Description: HTTP 400.Error processing request.
    
    Details: Non-web exception. Exception origin (name of application or object): System.
    Exception stack trace:
      at System.IO.FileSystemWatcher.set_Path (System.String value) [0x00000] in <filename unknown>:0 
      at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:set_Path (string)
      at System.Web.HttpRuntime.SetupOfflineWatch () [0x00000] in <filename unknown>:0 
      at System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest req) [0x00000] in <filename unknown>:0 
      at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000] in <filename unknown>:0 
      at System.Web.HttpRuntime.ProcessRequest (System.Web.HttpWorkerRequest wr) [0x00000] in <filename unknown>:0 
      at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x00000] in <filename unknown>:0
    #1423
    Mikhail
    Moderator

    Something wrong with XSP4 web server.
    Post here the version of XSP and the content of the files
    /etc/default/mono-xsp4
    /etc/xsp4/debian.webapp
    /etc/xsp4/conf.d/scada/*_scada

    #1424
    Michal Dziczkowski
    Participant
    • dabian.webapp:
      <apps>
        <web-application>
          <name>scada</name>
          <vpath>/scada</vpath>
          <path>/etc/scada/ScadaWeb</path>
        </web-application>
      </apps>
    • mono-xsp4:
      # Defaults for mono-xsp4, official version
      # sourced by /etc/init.d/mono-xsp4
      
      # Should we start it?
      start_boot=true
      
      # User and group by default
      user=www-data
      group=www-data
      
      # Default port
      port=8084
      address=0.0.0.0
      
      # Directory for config files
      config_files=/etc/xsp4
    • xsp4/conf.d/scada/10_scada:
      This is the configuration file 
      for the scada virtualhost
      path = /etc/scada/ScadaWeb
      alias = /scada
    #1426
    Mikhail
    Moderator

    100% the same as my Raspberry (Raspbian OS).
    Maybe you have an opportunity to try on another computer and compare the results?
    What version of XSP and Mono do you use?

    #1427
    Michal Dziczkowski
    Participant

    mono: 3.2.8+dfsg-4ubuntu4
    mono-xsp4: 3.8-2.1

    #1428
    Mikhail
    Moderator

    Mine are
    mono-complete 3.2.8+dfsg-1
    mono-xsp4 3.8-2.1

    Could you try to create a simple HTML file with lowercase name within scada/ScadaWeb directory and open it?

    #1429
    Michal Dziczkowski
    Participant

    I had uninstalled and re-installed mono, xsp4 RapidScada. Only the part with /scada started to work and the remaining ones still throw errors

    #1432
    Mikhail
    Moderator

    Only the part with /scada started to work and the remaining ones still throw errors

    Sorry, I didn’t catch what part works for now?

    The problem is really weird. I think you should surf the linux forums for the clue why XSP doesn’t work. Users use Rapid SCADA on Ubuntu, but this error ocuurs the first time.

    #1434
    Michal Dziczkowski
    Participant

    let me put it more simple:

    http://localhost:8084/scada works and nothing else (else things throw errors)

    #1435
    Mikhail
    Moderator

    OK. You may ask for advice if needed.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.