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.
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