473,385 Members | 2,015 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,385 software developers and data experts.

VS 2003.net

Hi All

I am having a couple problems with VS 2003 VB.net especially when deploying
and running my app on Win 2003 small business server. The app is a simple
but intensive windows form application using ado to retrieve data from an
ODBC database and then populate a MS CRM database using web services.

1. The try... catch statement does not appear to work all the time and
generates an unhandled error even though the line of code causing the error
is in the try statement.

2. IsDBNull does not return the correct value causing runtime errors.

Does anyone know if these are bugs or is there something specific I need to
know for this to work.

Nov 21 '05 #1
2 1175
Hi Mark,

Can you show up a bit of code - eg, one of the try...catch blocks and a few
of the isdbnull calls. isdbnull is particularly difficult as it wants not
to be on a line with anything else. But in any event, let us see some code
and hopefully we can help.

Bernie Yaeger

"Mark Martin" <mm*****@brodie.com> wrote in message
news:ee*************@TK2MSFTNGP10.phx.gbl...
Hi All

I am having a couple problems with VS 2003 VB.net especially when
deploying
and running my app on Win 2003 small business server. The app is a simple
but intensive windows form application using ado to retrieve data from an
ODBC database and then populate a MS CRM database using web services.

1. The try... catch statement does not appear to work all the time and
generates an unhandled error even though the line of code causing the
error
is in the try statement.

2. IsDBNull does not return the correct value causing runtime errors.

Does anyone know if these are bugs or is there something specific I need
to
know for this to work.

Nov 21 '05 #2
Hi

Someone replied requesting some samples of failing code:
The following Try..catch statement does not always work:

Try
NNoteId = myNotes.Create(mybizUser, AddString)
NumNotesCon = NumNotesCon + 1
Catch myE As Exception
Try
If myNotes Is Nothing Then
myNotes = New
Microsoft.CRM.Platform.Proxy.CRMNotesManager
myNotes.Credentials =
System.Net.CredentialCache.DefaultCredentials
myNotes.Url = StrDir & "CRMNotesManager.srf"
End If
If RetryCreateUpdate() = True Then
NNoteId = myNotes.Create(mybizUser, AddString)
NumNotesCon = NumNotesCon + 1

etc...
end try
end try

If the original line of code fails I want to catch the error and check and
retry some connections and then try the create function again. However I get
a connection failed popup error which is possible and the reason I want to
trap any error caused by this line. I am not new to ado, I am new to .net
however I can step thru my code and see that the catch statement is not
working or in some cases it is woking however the error still pops up. This
seems to be mostly a problem on win 2003.

Isdbnull sample

isdbnull(myRS.Fields(5).Value)=True then ......

myRS is an ado recordset connecting to an ODBC database and a single table.
The statement simply does not always return the correct true/false value
based on the field value, regardless of the OS.

"Mark Martin" <mm*****@brodie.com> wrote in message
news:ee*************@TK2MSFTNGP10.phx.gbl...
Hi All

I am having a couple problems with VS 2003 VB.net especially when deploying and running my app on Win 2003 small business server. The app is a simple
but intensive windows form application using ado to retrieve data from an
ODBC database and then populate a MS CRM database using web services.

1. The try... catch statement does not appear to work all the time and
generates an unhandled error even though the line of code causing the error is in the try statement.

2. IsDBNull does not return the correct value causing runtime errors.

Does anyone know if these are bugs or is there something specific I need to know for this to work.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Lee | last post by:
Need some help bad here. Am using VB.Net Standard 2003 supplied for a class and I need to install Msde and the sample databases to work on homework. Following the documentation I can download...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
6
by: David Waz... | last post by:
Moved an app from W/2000 Asp V1.0 to W/2003, VS/2003, ASPV 1.1 Page runs a long job, uploading 2 large fixed length files (300,000 rows) into SQL database. A process is run against the data,...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.