无法找到类型 - 使用 mono FastCGI4 和 ubuntu

发布于 2024-12-17 20:55:04 字数 708 浏览 1 评论 0原文

我想我已经在网上搜索了大约 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔戏命师 2024-12-24 20:55:04

我也遇到了这个错误,并发现此页面。

事实证明我没有将 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文