473,625 Members | 2,662 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
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:\WINDOW
S\sy
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\Fra
mewo
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\Fra
mewo
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\Fra
mewo
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 1638

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
3360
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
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
8182
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
8688
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
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 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...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
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
7178
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
4085
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
2614
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
1800
muto222
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.