Error in OpenRasta.Pipeline.PipelineStage

111 views
Skip to first unread message

ksen

unread,
Dec 6, 2011, 12:37:40 AM12/6/11
to OpenRasta
i, I am getting the following error when access the url. I am using
3.5 version of the binaries and the site is hoseted on IIS7. Log file
is empty

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>

Sebastien Lambla

unread,
Dec 6, 2011, 12:48:35 AM12/6/11
to open...@googlegroups.com
Restart the server or upgrade to 2.1 that addresses those issues.

ksen

unread,
Dec 6, 2011, 5:43:51 PM12/6/11
to OpenRasta
I restarted the server, same issue is happening

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.HandleHttpApplicationPostResolveRe­questCacheEvent(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 -

Reply all
Reply to author
Forward
0 new messages