Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew Macdonald 18 posts 47 karma points
    Jan 24, 2013 @ 13:42
    Andrew Macdonald
    0

    Value does not fall within the expected range.

     

    Hi,

     

     Just installed this package (also in the process of purchasing a license).

     I'm having intermittent issues when restarting my solution.

    >

     For reference, on my local development system I am running a solution that includes Umbraco and a secondary web site that talks to Umbraco via a custom api.

     Within the content section clicking on the workflows tab shows an exception stating that fmworkflow/instances.ascx could not be loaded with a stack trace showing the error message in the topic subject arising from a faild HttpContext.Current.Url call.

     Within the development tab.. Clicking around the tree structure shows the same stack trace (but as a standard asp.net exception report)

     I initially googled around, found that you recommended replacing the licensing.dll which I did and this appeared to work.. until a bit later where the issue reappeared...

     I have taken the liberty of pointing dot peek at the packages dll and can see that you are grabbing the httpContext.Current in a static field of the Validator class. 

     I can't help wondering if (thanks to IISExpress and/or other activities happening) some crazy race condition is happening or if the Current context isn't fully built at the time your code is creating the static field.

     Thanks in advance for any help you can provide..

  • Andrew Macdonald 18 posts 47 karma points
    Jan 24, 2013 @ 13:42
    Andrew Macdonald
    0

    The stack trace btw...

    Value does not fall within the expected range.

    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.ArgumentException: Value does not fall within the expected range.

    Source Error: 

    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: 

    [ArgumentException: Value does not fall within the expected range.]
       System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0
       System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +10722798
       System.Web.Hosting.IIS7WorkerRequest.GetServerVariableInternal(String name) +40
       System.Web.Hosting.IIS7WorkerRequest.GetServerVariable(String name) +36
       System.Web.Hosting.IIS7WorkerRequest.GetServerName() +18
       System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) +105
       System.Web.HttpRequest.get_Url() +74
       FergusonMoriyam.Workflow.License.Validator.ValidateRuntimeRestriction() +53
       FergusonMoriyam.Workflow.Application.WorkflowConfigurationService.ListConfigurations() +18
       FergusonMoriyam.Workflow.Umbraco.Web.Ui.Configuration.OnPreRender(EventArgs e) +25
       System.Web.UI.Control.PreRenderRecursiveInternal() +83
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

  • Doug Moore 48 posts 103 karma points c-trib
    Jun 06, 2013 @ 23:19
    Doug Moore
    0

    I am having this problem -- what was the resolution?

    When attempting to view the developer tab: 

     

    Value does not fall within the expected range.

    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.ArgumentException: Value does not fall within the expected range.

    Source Error: 

    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: 

    [ArgumentException: Value does not fall within the expected range.]
       System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0
       System.Web.Hosting.IIS7WorkerRequest.GetServerVariableInternal(String name) +54
       System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) +576
       System.Web.HttpRequest.get_Url() +102
       FergusonMoriyam.Workflow.License.Validator.ValidateRuntimeRestriction() +62
       FergusonMoriyam.Workflow.Application.WorkflowConfigurationService.ListConfigurations() +29
       FergusonMoriyam.Workflow.Umbraco.Web.Ui.Configuration.OnPreRender(EventArgs e) +119
       System.Web.UI.Control.PreRenderRecursiveInternal() +113
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Control.PreRenderRecursiveInternal() +222
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297

  • Doug Moore 48 posts 103 karma points c-trib
    Jun 06, 2013 @ 23:32
Please Sign in or register to post replies

Write your reply to:

Draft