473,385 Members | 1,766 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.

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.ApplicationBlocks.Data
Imports system
Imports system.data
Imports System.Data.SqlClient
Imports System.xml

into the SQLHelper.vb file and tried again. This time it says that
ArgumentNullException is not defined.
I uninstalled the version2 and then downloaded and installed version1,
because there is no ArgumentNullException 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.com,
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\Microsoft.ApplicationBlocks.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\IDE;c:\Program Files\Microsoft Visual Studio .NET
2003\VC7\BIN;c:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools;c:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\bin\prerelease;c:\Program Files\Microsoft Visual
Studio
..NET 2003\Common7\Tools\bin;c:\Program Files\Microsoft Visual Studio
.NET
2003\SDK\v1.1\bin;c:\WINDOWS\Microsoft.NET\Framewo rk\v1.1.4322;C:\WINDOW
S\sy
stem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Prog ram Files\Microsoft
SQL
Server\80\Tools\BINN;C:\Program Files\Common
Files\OpSession\Shared;C:\Program Files\Common Files\OpSession\Viewer
Shared;;C:\WINDOWS\Microsoft.NET\Framework\v1.1.43 22;C:\Program
Files\Microsoft Application Blocks for .NET\Data Access
v2\Code\VB\Microsoft.ApplicationBlocks.Data;C:\WIN DOWS\Microsoft.NET\Fra
mewo
rk\v1.1.4322;C:\Program Files\Microsoft Application Blocks for .NET\Data
Access
v2\Code\VB\Microsoft.ApplicationBlocks.Data;C:\WIN DOWS\Microsoft.NET\Fra
mewo
rk\v1.1.4322

PATH=%PATH%;C:\Program Files\Microsoft Application Blocks for .NET\Data
Access
v2\Code\VB\Microsoft.ApplicationBlocks.Data;C:\WIN DOWS\Microsoft.NET\Fra
mewo
rk\v1.1.4322;C:\Program Files\MicrosoftApplication Blocks for .NET\Data
Access v2\Code\VB\Microsoft.ApplicationBlocks.Data

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

vbc.exe /r:System.dll /r:System.Data.dll /r:System.xml.dll /t:library
/nologo /out:Microsoft.ApplicationBlocks.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 1616

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

Similar topics

28
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...
0
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,...
4
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 ,...
2
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." }. //...
4
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. ...
5
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. ...
3
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,...
3
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:...
5
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...
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: 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,...

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.