473,625 Members | 3,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQLHelper Class problem : For 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
Madhra

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 place
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
site.
REM =============== =============== =============== =============== ====
REM
REM Data Access Compile Script
REM Date: 07/16/2003
REM Author: Gregory A. Beamer
REM
REM Uncomment version 1 if you are compiling it
REM NOTE: You may have to change Windows to WINNT (Windows 2000)
REM
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 Studio
...NET 2003\Common7\To ols\bin;c:\Prog ram Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\b in;c:\WINDOWS\M icrosoft.NET\Fr amework\v1.1.43 22;C:\WINDOWS\s y
stem32;C:\WINDO WS;C:\WINDOWS\S ystem32\Wbem;C: \Program Files\Microsoft SQL
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\Framew o
rk\v1.1.4322;C: \Program Files\Microsoft Application Blocks for .NET\Data
Access
v2\Code\VB\Micr osoft.Applicati onBlocks.Data;C :\WINDOWS\Micro soft.NET\Framew o
rk\v1.1.4322

PATH=%PATH%;C:\ Program Files\Microsoft Application Blocks for .NET\Data
Access
v2\Code\VB\Micr osoft.Applicati onBlocks.Data;C :\WINDOWS\Micro soft.NET\Framew o
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

Nov 17 '05 #1
0 3360

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

Similar topics

28
4313
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";
0
1639
by: Rajesh Kumar | 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
4
2867
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?
2
1630
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.
4
3975
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
5
1455
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
3
2393
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,
3
1672
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.
5
1662
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=""...
0
8253
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, 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...
0
8189
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8497
tracyyun
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...
0
7182
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
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();...
0
4089
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...
1
2621
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
1
1802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1499
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.