Suraj Kaushik's Blog

2 share my mistakes and lessons

Error

error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level

Error    141    It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.    D:\developers\Suraj\projects\dunecorporation\new\new\StraightRootMkt\StraightRootMkt\StraightRootMkt\Web.config    43 this kind of error can be removed by altering the below code: <configuration>   <configSections>     <sectionGroup name=”system.web.extensions” type=”System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, [...]

, , ,

Compiler Error Message: CS0161: ‘db.connectDB()’: not all code paths return a value

Server Error in ‘/dcorp’ Application. 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: CS0161: ‘db.connectDB()’: not all code paths return a value Source Error:   Line 28: } Line 29: [...]

, , ,

Compiler Error Message: CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement

Server Error in ‘/dcorp’ Application. 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: CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement Source [...]

, , , ,