无法找到类型 - 使用 mono FastCGI4 和 ubuntu
我想我已经在网上搜索了大约 2 个小时(忽略 Facebook..),但我找不到解决方案!
我有一个简单的网络应用程序 -:
Default.aspx
Global.ascx
bin
但由于某种原因,当我部署到我的服务器时,我只是得到可怕的“找不到类型”错误,对于我的 bin 文件夹中明确的内容......
"Parser Error
Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
Parser Error Message: Cannot find type PTest.Global
Source Error:
Line 1: <%@ Application Inherits="PTest.Global" %>
Source File: /home/stu/www/aspx/Global.asax Lines: 1, 1"
有趣的是,如果我运行一个简单的页面,使用内联 C# 它运行良好并完成工作 - 只有编译的东西失败... :/
如果有帮助,它是一个使用 FASTCGI 在 Lighttpd 服务器上运行的 4.0 应用程序(不是 MVC ..)。
非常感谢任何帮助。
I think I've been searching around the web for about 2 hours now (neglecting Facebook..) and I can't find a solution for the life of me!
I have a simple web app -:
Default.aspx
Global.ascx
bin
but for some reason when I deploy to my server I simply get the dreaded "can't find type" error, for things that are clearly in my bin folder...
"Parser Error
Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
Parser Error Message: Cannot find type PTest.Global
Source Error:
Line 1: <%@ Application Inherits="PTest.Global" %>
Source File: /home/stu/www/aspx/Global.asax Lines: 1, 1"
funny thing is, if I run a simple page, with inline C# it runs fine and does the job - only compiled stuff fails... :/
If it helps, its a 4.0 app (not MVC..) running on a Lighttpd server using FASTCGI.
Any help much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也遇到了这个错误,并发现此页面。
事实证明我没有将 bin/ 目录复制到我的网络服务器。当我复制该目录时,它开始工作。青年MMV
I was getting this error as well and found this page.
Turns out I hadn't coppied my bin/ directory over to my webserver. When I copied that directory over it started working. YMMV