Suraj Kaushik's Blog

2 share my mistakes and lessons

Iphone Development on Windows Operating System – part 1

This is a research work, I’m working on, thus can be continued for a few months or more. Thus, I’ve divided this research work in steps. Hence this can be closed in a bunch of posts and for readers convenience -part-n is suffixed to each post. So, here we go…….. I appriciate all the technologies. [...]

Unveiling the largest adnetwork

Project Name: Unveiling the largest Ad network Description: Project aims at providing the largest adservice for both publishers and advertisers globally or to a specific market.    

,

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: ‘users.login(string, string)’: not all code paths return a value

Not All code paths retun a value. comes when we set any function to return any kind of datatype value other than void as Line 25:     public string login(string userid, string pwd) above funciton must return string value in every case, no matter if it returns a blank string. Hence, if you din’t check every [...]

, , ,

Cannot implicitly convert type ‘int’ to ‘string’

Simple type casting problem, actually the value is INT datatype and trying to assign a variable with datatype string. Thats why we must convert variables to respective datatype properly before assigning to any other variable. Server Error in ‘/dcorp’ Application. Compilation Error Description: An error occurred during the compilation of a resource required to service [...]

, ,

The name ‘SqlHelper’ does not exist in the current context

Compiler Error Message: CS0103: The name ‘SqlHelper’ does not exist in the current context current context type error come in existence if we forget to include namepace for function/ object we are using on that particular file. OR else if you created some custom class then be sure that class is in your application scope. [...]

, ,

Compiler Error Message: CS0103: The name ‘SqlHelper’ does not exist in the current context

Below error came in existence if we forget to include namepace for function/ object we are using on that particular file. OR else if you created some custom class then be sure that class is in your application scope. i.e. App_code folder. Server Error in ‘/dcorp’ Application. Compilation Error Description: An error occurred during the [...]

, , ,

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

, , , ,

A network-related or instance-specific error occurred while establishing a connection to SQL Server

Very simple error. I just refreshed the page in browser and my internet was not connected and I was accessing online sqlserver to connect with the site. so…… always check if you are fully connected. Server Error in ‘/dune’ Application. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server [...]

, , , ,

Previous Posts