473,888 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQLHelper class problem : To Gregory A. Beamer

Hi Gregory
Thanks for your answer. I did not see any attached file so I copied your
text into a text file and named it compiler.bat
Checked the wrapped lines and runned the file. It said Dataset,
Datareader and some other things are not defined. So I entered the :

Imports Microsoft.Appli cationBlocks.Da ta
Imports system
Imports system.data
Imports System.Data.Sql Client
Imports System.xml

into the SQLHelper.vb file and tried again. This time it says that
ArgumentNullExc eption is not defined.
I uninstalled the version2 and then downloaded and installed version1,
because there is no ArgumentNullExc eption in version1's SQLHelper.vb
file. Corrected compiler.bat file by Removing v2 from ...\Data Access
v2\... and runned it but nothing happens.
Any idea what I am doing wrong ?

If you will attach a file, i would like to get it on ma****@yahoo.co m,
because on the site I did not see any attachment.

Thanks for your help

Re: SQLHelper Class problem
From: Cowboy \(Gregory A. Beamer\)
Date Posted: 7/16/2003 1:44:00 PM

The problem is with references to other classes.

Here is a script for The Data Block v2 with Framework 1.1 (.NET 2003).
Either copy the code below (watching line wraps) into a text file and
in, or copy the attached file to:

C:\Program Files\Microsoft Application Blocks for .NET\Data Access
v2\Code\VB\Micr osoft.Applicati onBlocks.Data

Then, run the .bat file and you can compile the SQLHelper class into the
proper DLL. You can then reference this DLL in your /bin folder for your
REM =============== =============== =============== =============== ====
REM Data Access Compile Script
REM Date: 07/16/2003
REM Author: Gregory A. Beamer
REM Uncomment version 1 if you are compiling it
REM NOTE: You may have to change Windows to WINNT (Windows 2000)
REM =============== =============== =============== =============== ====
REM *************** **************
REM Alter Path
REM *************** **************

PATH=c:\Program Files\Microsoft Visual Studio .NET
2003\Common7\ID E;c:\Program Files\Microsoft Visual Studio .NET
2003\VC7\BIN;c: \Program Files\Microsoft Visual Studio .NET
2003\Common7\To ols;c:\Program Files\Microsoft Visual Studio .NET
2003\Common7\To ols\bin\prerele ase;c:\Program Files\Microsoft Visual
..NET 2003\Common7\To ols\bin;c:\Prog ram Files\Microsoft Visual Studio
2003\SDK\v1.1\b in;c:\WINDOWS\M icrosoft.NET\Fr amework\v1.1.43 22;C:\WINDOW
stem32;C:\WINDO WS;C:\WINDOWS\S ystem32\Wbem;C: \Program Files\Microsoft
Server\80\Tools \BINN;C:\Progra m Files\Common
Files\OpSession \Shared;C:\Prog ram Files\Common Files\OpSession \Viewer
Shared;;C:\WIND OWS\Microsoft.N ET\Framework\v1 .1.4322;C:\Prog ram
Files\Microsoft Application Blocks for .NET\Data Access
v2\Code\VB\Micr osoft.Applicati onBlocks.Data;C :\WINDOWS\Micro soft.NET\Fra
rk\v1.1.4322;C: \Program Files\Microsoft Application Blocks for .NET\Data
v2\Code\VB\Micr osoft.Applicati onBlocks.Data;C :\WINDOWS\Micro soft.NET\Fra

PATH=%PATH%;C:\ Program Files\Microsoft Application Blocks for .NET\Data
v2\Code\VB\Micr osoft.Applicati onBlocks.Data;C :\WINDOWS\Micro soft.NET\Fra
rk\v1.1.4322;C: \Program Files\Microsoft Application Blocks for .NET\Data
Access v2\Code\VB\Micr osoft.Applicati onBlocks.Data

REM *************** **************
REM Compile the Application Block
REM *************** **************

vbc.exe /r:System.dll /r:System.Data.d ll /r:System.xml.dl l /t:library
/nologo /out:Microsoft.A pplicationBlock s.Data.dll SqlHelper.vb

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
0 1655

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

Similar topics

by: kfrost | last post by:
I know this is probably simple but I have a C# form and the class for the form is called sbaSynch. I have a textbox name txtServerName. I'm creating a class to manipulate XML functions so I added a class to project and it's named XmlApi(). In the XmlAPI() class I have simple code as following XmlAPI() { string str = "Some Text";
by: Rajesh Madhra | last post by:
Hi Gregory Thanks for your answer. I did not see any attached file so I copied your text into a text file and named it compiler.bat Checked the wrapped lines and runned the file. It said Dataset, Datareader and some other things are not defined. So I entered the : Imports Microsoft.ApplicationBlocks.Data Imports system Imports system.data Imports System.Data.SqlClient
by: FyinsFlip | last post by:
Microsoft Data Access Blocks (SqlHelper) you can do an insert and get the new row ID without using a stored procedure? DataMembers.Car_IDObject = SqlHelper.ExecuteScalar( _connectionString , "INSERT INTO tCar (name) VALUES ('Ford') SELECT CAST(@@Identity AS INTEGER) ", FillSqlParameter()); Is there a new line symbol I can add before the SELECT, like a ';' or something?
by: Mahesh Nimbalkar | last post by:
In my class library I need to access my current Webform (class). As I am using HttpHandler for ASPX page, following lines of code are throwing error that {"Specified cast is not valid." }. // BasePage is custom class derived from Page BasePage page = (BasePage) System.Web.HttpContext.Current.Handler; Here System.Web.HttpContext.Current.Handler is returning handler and that is why not able to cast to page.
by: David Compton | last post by:
Hi all, Can anyone tell me if this is possible ? :- I have several flat files created in VB6 using UDTs and the PUT command. They include integers, etc. and are all of fixed record length. I want to export them to SQL, but the only way I can read these files is from VB using GET fileno, recordno, userdefinedtype. The UDT must be specified at designtime so I can't dynamically read
by: D Witherspoon | last post by:
What is happening is that I have a class (ClassA) that inherits a class (ClassB) which inherits System.Net.Mail.MailMessage Project 1 references Project 2, Project 2 references Project 3. When I declare an instance of "ClassA" in a thrid project I get all of the public methods/properties that are in the System.Net.Mail.MailMessage class, but I do not get any of the public methods or properties that are specirfically declared in Class B
by: Mihai Velicu | last post by:
Hi ! I created a class library and in it I have a class that call "ConfigurationManager" to find out what type of database I work and the connection string.When I call this class from a form, everithing is running well, no errors.When I call this class from a custom control I receive the message "Object reference not set to an instance of an object" Does anyoane know what is happening ? Thanks,
by: Med | last post by:
Hi, I use Visual C# Express 2005 and Visual Web Developer Express 2005. In my Visual C# Express 2005 Solution, I have following two class library projects: _ DataAccess (Namespace name: DataAccess) _ SystemLibrary (Namespace name: SystemLibrary) which they both build in their own "bin\Release\" folders.
by: Steven | last post by:
I have the following in my web.config: <system.web> <profile defaultProvider="MyASPSqlProfileProvider" enabled="true" > <properties> <add name="FirstName" defaultValue="" type="string"/> <add name="MiddleInitial" defaultValue="" type="string" /> <add name="LastName" defaultValue="" type="string"/> <add name="Address1" defaultValue="" type="string"/> <add name="Address2" defaultValue="" type="string"/> <add name="City" defaultValue=""...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.