Members
Technology Zones
Articles
Hosted By
Info
|
Rated
Read 35,855 times
Contents
Related Categories
High-Performance .NET Application Development & Architecture - Common .NET Errors
Common .NET Errors
-
CS0019: Operator '&' cannot be applied to operands of type 'type' and 'type'
This happens when you are trying to use the wrong operator for the specific operation.
-
CS0029: Cannot implicitly convert type 'object' to 'string'
This runtime error is more often than not caused by your code trying to reference an object that is not available, and for the most part you've probably closed the object or set it to null or nothing somewhere in your code in all valiant attempts to clean up any unnecessary objects from memory. For example, a connection object you've opened and used, but now somewhere you've closed it and set it to nothing, and somewhere after in the code it's being called again and when it does you'll get this error. Find and delete the line and close and null your object later on. Notwithstanding, this runtime error will also occur in the circumstances shown above in CS0119.
-
CS0161: 'method name': not all code paths return a value
This will happen when you are trying to make a function method behave like a subroutine or vice-versa. Use the proper method keyword to remedy this. Void is for methods that do not return a value, although you could response write the output. Whereas, applying a keyword value like string, int, works alongside a return value at the end of the method.
-
CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
-
BC30684: 'name' is a type and cannot be used as an expression
Dimitrios, or Jimmy as his friends call him, is a .NET developer/architect who specializes in Microsoft Technologies for creating high-performance and scalable data-driven enterprise Web and desktop applications. Till now Jimmy has authored nearly two dozen .NET articles, published on Dot Net Junkies, 4 Guys From Rolla, Sitepoint, MSDN Academic Alliance, Developers.NET, The Official Microsoft ASP.NET Site, and here on Developer Fusion, covering various unique and advanced techniques on .NET.
Comments
-
Posted by DMarko1 on 13 Mar 2007
Yes, Ajax is not a new thing, nor is it tied to any .NET version.
It's been around for years, AJAX all stems from Microsoft's XMLHttpRequest back in 2000 as a part of Outlook's Web Acc... -
can i use ajax in .net 2003 version? -
Posted by DMarko1 on 02 Jan 2007
Thanks! Very glad to see that it did [:)] -
Posted by sajithajose on 29 Dec 2006
Excellent Article. helps me a lot -
Posted by DMarko1 on 08 May 2006
Hey Dave,
Thanks!! [:D] It's awesome you liked it. The intent was to kinda round off all key .NET elements and get one up and running quickly in d...
|
Search
Code Samples
New Members
|