I am trying to follow along with the OpenRasta application. https://github.com/openrasta/openrasta-stable/wiki/Building-Your-First-OpenRasta-Website
I am using .Net4 under Windows 7 64 bit and I am targeting IIS 7.5. I configured my Active Configuration on Debug and my platform on any processor. The version of OpenRasta that I am using is 2.0.3.
Here is the error I get: "Could not load the file or assembly" OpenRasta.Hosting.AspNet "or one of its dependencies. The system cannot find the specified file."
I suspect this is because OpenRasta is compiled for .net35, not 4? I tried several different approaches to fix this, but I was still stuck.
I changed the application pool settings to set Enable 32 bit Applications = true, and here is web.config I use:
<?xml version="1.0"?> <configuration> <system.diagnostics> <switches> <add name="ShowErrors" value="4"/> </switches> <sources> <source name="OpenRasta" switchValue="All"> <listeners> <add name="TextWriterListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="Logs\OpenRasta.txt"/> </listeners> </source> </sources> </system.diagnostics> <system.web> <compilation debug="true" targetFramework="4.0"> </compilation> <authentication mode="None"/> <pages pageParserFilterType="OpenRasta.Codecs.WebForms.OpenRastaPageParserFilter, OpenRasta.Codecs.WebForms, Version=2.0.1.0, Culture=neutral" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> <namespaces> <add namespace="OpenRasta.Web"/> <add namespace="OpenRasta.Web.Markup"/> <add namespace="OpenRasta.Codecs.WebForms"/> <add namespace="OpenRasta"/> <add namespace="System.Collections.Generic"/> </namespaces> </pages> <httpHandlers> <add verb="*" path="*.rastahook" type="OpenRasta.Hosting.AspNet.OpenRastaHandler, OpenRasta.Hosting.AspNet, Version=2.0.1.0, Culture=neutral"/> </httpHandlers> <httpModules> <add name="RastaModule" type="OpenRasta.Hosting.AspNet.OpenRastaModule, OpenRasta.Hosting.AspNet, Version=2.0.1.0, Culture=neutral"/> </httpModules> </system.web> <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/warnaserror-"> <providerOption name="CompilerVersion" value="v4.0"/> <providerOption name="WarnAsError" value="false"/> </compiler> </compilers> </system.codedom> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <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, Version=2.0.1.0, Culture=neutral"/> </handlers> </system.webServer> </configuration>
Any help would be greatly appreciated! Perhaps there is a .NET assembly of openrasta there that I just can't find?
source share