c#-4.0 – 使用IIS7.5在Win 7 64下运行的OpenRasta w / .Net 4.0
发布时间:2020-12-15 17:16:01 所属栏目:百科 来源:网络整理
导读:我试图跟随入门OpenRasta应用程序. https://github.com/openrasta/openrasta-stable/wiki/Building-Your-First-OpenRasta-Website 我在Windows 7 64位下使用.Net4,我的目标是IIS 7.5.我已将Active Configuration设置为Debug,将我的Pl??atform设置为Any CPU.
我试图跟随入门OpenRasta应用程序.
https://github.com/openrasta/openrasta-stable/wiki/Building-Your-First-OpenRasta-Website
我在Windows 7 64位下使用.Net4,我的目标是IIS 7.5.我已将Active Configuration设置为Debug,将我的Pl??atform设置为Any CPU.我使用的OpenRasta版本是2.0.3. 这是我得到的错误:“无法加载文件或程序集’OpenRasta.Hosting.AspNet’或其依赖项之一.系统无法找到指定的文件.” 我怀疑它与.net35而不是4编译的OpenRasta有关? 我更改了应用程序池设置以设置启用32位Applications = true,这是我正在使用的web.config: <?xml version="1.0"?> <configuration> <system.diagnostics> <switches> <add name="ShowErrors" value="4"/> </switches> <!-- log to debug output --> <sources> <source name="OpenRasta" switchValue="All"> <listeners> <add name="TextWriterListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="LogsOpenRasta.txt"/> </listeners> </source> </sources> </system.diagnostics> <system.web> <compilation debug="true" targetFramework="4.0"> </compilation> <authentication mode="None"/> <!-- required for WebForms views --> <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> <!-- hook into OpenRasta --> <httpHandlers> <add verb="*" path="*.rastahook" type="OpenRasta.Hosting.AspNet.OpenRastaHandler,OpenRasta.Hosting.AspNet,Culture=neutral"/> </httpHandlers> <httpModules> <add name="RastaModule" type="OpenRasta.Hosting.AspNet.OpenRastaModule,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> <!-- iis7 config --> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <!-- hook into OpenRasta --> <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,Culture=neutral"/> </handlers> </system.webServer> </configuration> 任何帮助将不胜感激!也许有一个.net 4版本的openrasta在那里,我找不到? 解决方法
32位或64位对此没有影响.您是否已向相关程序集添加项目引用?
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ruby-on-rails – 如何根据我的开发数据库生成灯具?
- Swift判断二个数组中的所有元素是否相等
- ruby-on-rails – Authlogic访问会话对象中的用户ID
- ruby-on-rails – Rubymine不定位BUNDLE_PATH指定的宝石
- System.Data.SQLite 安装问题小结
- React Native 入门课程(1)
- 设计模式六大原则—— 单一职责原则(SRP,Single Responsi
- c# – 如何使用下拉列表值(String)来过滤linq结果?
- c# – 从(int)和(int)到创建List的优雅方法
- 为什么nosql与cassandra而不是mysql?
推荐文章
站长推荐
- react-native – React Native ListView – rowH
- MainActivity 访问 fragment_main.xml 中的组件
- reactjs – 使用Jest测试React componentWillUnm
- flash – 中文手写识别
- ruby – 是否可以让class.property = x返回x以外
- ruby-on-rails – 如何在ConnectionAdapter回调中
- c# – 从枚举中获取下一个N个元素
- ruby-on-rails-3 – Rails中的关联模型和SUM查询
- 正则表达式
- thrift/swift:codegen-thrift java代码生成器
热点阅读