i getting following compilation error:
compilation error description: error occurred during compilation of resource required service request. please review following specific error details , modify source code appropriately. compiler error message: cs0103: name 'websecurity' not exist in current context source error: line 1: @{ line 2: if (!websecurity.initialized) line 3: { line 4: websecurity.initializedatabaseconnection("areaproject", "user", "userid", "emailaddress", autocreatetables: true); source file: c:\projects\area\trunk\dotnet\area.web\area.web\_appstart.cshtml line: 2 enter code here
my project correctly referencing "system.web" , other files using " system.web.security" compiling fine.
the problem started when added references system.web, system.web.pages , system.web.razor application. didn't make change webmatrix.webdata or webmatrix.data.
the websecurity class being referenced here apart of webmatrix.webdata
, not system.web
or system.web.security
. need add reference webmatrix.webdata.dll
, things should @ least past runtime compiler error.
you compiler error @ runtime because views compiled when application starts first time, instead of when assemblies complied.
Comments
Post a Comment