473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Name 'IsNothing' is not declared

Hello,

I have successfully migrated asp.net application built in VS2003/1.1 to VS2005/2.0 in my local machine. It runs good without any errors.
However If I copy the application into the shared drive and try to run, its giving lot of errors..Some errors are..
Name 'DBNull' is not declared
Name 'IsNothing' is not declared
But the same code works in the local system. Any idea why its behaving like this ?

Regards,
Renil.
Apr 3 '07 #1
2 6577
shweta123
692 Expert 512MB
Hi,

Can you please specify the coding where you are getting the error?
Apr 3 '07 #2
Frinavale
9,735 Expert Mod 8TB
Hello,

I have successfully migrated asp.net application built in VS2003/1.1 to VS2005/2.0 in my local machine. It runs good without any errors.
However If I copy the application into the shared drive and try to run, its giving lot of errors..Some errors are..
Name 'DBNull' is not declared
Name 'IsNothing' is not declared
But the same code works in the local system. Any idea why its behaving like this ?

Regards,
Renil.
Try using System.DBNull.Value instead of just "DBNull"
I think it might be the same for "isNothing"...
Why not just use "if value = nothing" instead?

Cheers
Apr 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Dan Jacobson | last post by:
Using <A name="x_y-z"></A>, I even get nervous about the _ and -. w3-recs/RECS/html4/struct/links.html seems to say all of ascii is cool and beyond. Anyway, just what is the safe range for...
3
by: aLEXb | last post by:
I have an ASP.NET applicaiton with a user control and I need to determine the name of the page it resides on at runtime. Me.Page returns the page, but how do I get just the name? CSTR(Me.Page)...
5
by: Jim Heavey | last post by:
I am trying to transition from VB.Net - what is the equivalent if the IsNothing()? Thanks in advance for your assistance!!!!!!!!!
2
by: MattB | last post by:
I'm trying to set a column name when my datagrid is being rendered. I've used the OnItemDataBound event before, so I decided to try and use it again here. The problem I'm having is I'm trying to...
12
by: Steve Peterson | last post by:
Hi - just a quick question. I was wondering which is the better "VB.Net" way - to use IsNothing or the Is Nothing in an If..Then statement For example: If IsNothing(myObject) then 'blah...
4
by: tinman | last post by:
Hi.... There appears to be another way of checking if an object IsNothing in ..NET.....was wondering if this approach is better than the classic VB6 way of checking Is Nothing ? Example...
13
by: Don | last post by:
How do I get an Enum's type using only the Enum name? e.g. Dim enumType as System.Type Dim enumName as String = "MyEnum" enumType = ???(enumName)
4
by: Dave Taylor | last post by:
This is really not very important but something that I'm just curious about...which is faster to execute or are they the same: (1) If IsNothing(_myVar) Then ... or (2) If _myVar Is Nothing...
4
by: andrew | last post by:
Hi, I have routinely added anchors to pages using both name and id: <a name="example" id="example"></a> under the possibly mistaken assumption that at some stage "name" might be deprecated...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.