I can't figure out what is going on here. I am using linq to query my sql database. If I set my code to be a "CodeFile", then I get the following error...
Compilation Error
Description:
An error occurred during the compilation of a resource required to service
this request. Please review the following specific error details and modify your
source code appropriately.
Compiler Error Message: CS1002: ;
expected
Source Error:
|
Line 57: DataDataContext _db = new DataDataContext(); Line 58: Line 59: var _devices = from d in _db.empact_Devices Line 60: where d.empact_DeviceType.DeviceTypeName == "Buoy" Line 61: select d; |
If I change it to a "CodeBehind" and compile my project, then the page renders fine. Any reason why this would be happening? Most of my other pages are CodeFile pages.
Thanks,
Joe