Line 12: public PipelineStage(IPipeline pipeline)
Line 13: {
Line 14: _enumerator = new
ResumableIterator<ContributorCall, Type>(
Line 15: new
List<ContributorCall>(pipeline.CallGraph).GetEnumerator(),
Line 16: x => x.Target != null ? x.Target.GetType() :
null,
Source File: c:\src\openrasta\src\core\OpenRasta\Pipeline
\PipelineStage.cs Line: 14
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: collection]
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
+601
OpenRasta.Pipeline.PipelineStage..ctor(IPipeline pipeline) in c:\src
\openrasta\src\core\OpenRasta\Pipeline\PipelineStage.cs:14
OpenRasta.Hosting.AspNet.OpenRastaModule.HandleHttpApplicationPostResolveRequestCacheEvent(Object
sender, EventArgs e) in c:\src\openrasta\src\aspnet
\OpenRasta.Hosting.AspNet\OpenRastaModule.cs:143
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+182
System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) +266
Here is the related code
namespace OpenRastaTest.Resources
{
[DataContract]
public class Home
{
[DataMember]
public string Title { get; set; }
}
}
namespace OpenRastaTest.Handlers
{
public class HomeHandler
{
public Home Get()
{
return new Home { Title = "Welcome home." };
}
}
}
namespace OpenRastaTest
{
public class Configuration : IConfigurationSource
{
public void Configure()
{
System.Diagnostics.Trace.Write("OpenRastaTest");
ResourceSpace.Has.ResourcesOfType<Home>()
.AtUri("/home")
.HandledBy<HomeHandler>().AsXmlDataContract();
}
}
web.config
<?xml version="1.0" encoding="UTF-8"?>
<!--
For more information on how to configure your ASP.NET application,
please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
</compilation>
<pages
pageParserFilterType="OpenRasta.Codecs.WebForms.OpenRastaPageParserFilter,
OpenRasta.Codecs.WebForms">
<namespaces>
<add namespace="OpenRasta.Web" />
<add namespace="OpenRasta.Codecs.WebForms" />
<add namespace="OpenRasta" />
<add namespace="OpenRastaTest.Handlers" />
<add namespace="OpenRastaTest.Resources" />
</namespaces>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<add name="OpenRastaModule"
type="OpenRasta.Hosting.AspNet.OpenRastaModule,
OpenRasta.Hosting.AspNet" />
</modules>
<handlers>
<add name="OpenRastaHandler" verb="*" path="*.rastahook"
type="OpenRasta.Hosting.AspNet.OpenRastaHandler,
OpenRasta.Hosting.AspNet" />
</handlers>
</system.webServer>
<system.diagnostics>
<sources>
<source name="openrasta" switchName="OpenRasta">
<listeners>
<add name="ErrorLog" />
</listeners>
</source>
</sources>
<switches>
<!--<add name="OpenRasta" value="Warning,Error"/>-->
<add name="OpenRasta" value="All"/>
</switches>
<sharedListeners>
<add name="ErrorLog"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\myListener.log" />
</sharedListeners>
</system.diagnostics>
</configuration>
Then, I got the latest source code from here, and build these three
solutions, and referenced from my test project, same issue.
https://github.com/openrasta/openrasta-core.git
https://github.com/openrasta/openrasta-codecs-webforms.git
https://github.com/openrasta/openrasta-hosting-aspnet.git
Thanks
ksen
> OpenRasta.Hosting.AspNet.OpenRastaModule.HandleHttpApplicationPostResolveRequestCacheEvent(Object
> sender, EventArgs e) in c:\src\openrasta\src\aspnet
> \OpenRasta.Hosting.AspNet\OpenRastaModule.cs:143
>
> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
> </configuration>- Hide quoted text -
>
> - Show quoted text -