I am trying to set up a reusable library (business component) that I can use
in a bunch of my pages.
I built the file and it almost compiles, but I am not sure what I am
missing.
The vbc command and results are:
*************** *************** *************** *************** ************
C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb
/r:system.web.dl l /r:system.data.d ll
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456:
'Configuration
Settings' is not a member of 'Configuration' .
Dim ConnectionStrin g as String
=System.Configu ration.Configur ationSe
ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions")
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~
~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference
requ
ired to assembly 'System' containing the base class
'System.Compone ntModel.Compo
nent'. Add one to your project.
Dim objConn as New SqlConnection (ConnectionStri ng)
~~~~~~~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference
requ
ired to assembly 'System' containing the base class
'System.Compone ntModel.Compo
nent'. Add one to your project.
Dim objCmd as New SqlCommand(Comm andText,objConn )
~~~~~~~~~~
C:\Inetpub\wwwr oot\Development >
*************** *************** *************** *************** ***************
What dlls am I missing?
Thanks,
Tom 14 1819
/r:System.dll ?
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message
news:e2******** ******@TK2MSFTN GP12.phx.gbl... I am trying to set up a reusable library (business component) that I can use in a bunch of my pages.
I built the file and it almost compiles, but I am not sure what I am missing.
The vbc command and results are:
*************** *************** *************** *************** ************ C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l /r:system.data.d ll
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration Settings' is not a member of 'Configuration' .
Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions") ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ ~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objConn as New SqlConnection (ConnectionStri ng) ~~~~~~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objCmd as New SqlCommand(Comm andText,objConn ) ~~~~~~~~~~
C:\Inetpub\wwwr oot\Development > *************** *************** *************** *************** ***************
What dlls am I missing?
Thanks,
Tom
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:et******** ******@TK2MSFTN GP10.phx.gbl... /r:System.dll ?
That was it.
Thanks,
Tom
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:e2******** ******@TK2MSFTN GP12.phx.gbl...I am trying to set up a reusable library (business component) that I can use in a bunch of my pages.
I built the file and it almost compiles, but I am not sure what I am missing.
The vbc command and results are:
*************** *************** *************** *************** ************ C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l /r:system.data.d ll
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration Settings' is not a member of 'Configuration' .
Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions")
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ ~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objConn as New SqlConnection (ConnectionStri ng) ~~~~~~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objCmd as New SqlCommand(Comm andText,objConn ) ~~~~~~~~~~
C:\Inetpub\wwwr oot\Development > *************** *************** *************** *************** ***************
What dlls am I missing?
Thanks,
Tom
Btw,
What dlls do I need for sessions and trace? I was using the same vbc line
(with system.dll added - that worked fine), but added a couple of lines that
referenced my session variables as well as a couple of trace.warn
statements.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message
news:eP******** *****@TK2MSFTNG P15.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:et******** ******@TK2MSFTN GP10.phx.gbl... /r:System.dll ?
That was it.
Thanks,
Tom
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:e2******** ******@TK2MSFTN GP12.phx.gbl...I am trying to set up a reusable library (business component) that I can use in a bunch of my pages.
I built the file and it almost compiles, but I am not sure what I am missing.
The vbc command and results are:
*************** *************** *************** *************** ************ C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l /r:system.data.d ll
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration Settings' is not a member of 'Configuration' .
Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions")
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ ~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objConn as New SqlConnection (ConnectionStri ng) ~~~~~~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objCmd as New SqlCommand(Comm andText,objConn ) ~~~~~~~~~~
C:\Inetpub\wwwr oot\Development > *************** *************** *************** *************** ***************
What dlls am I missing?
Thanks,
Tom
Where do I find which .dlls are needed with which object
(trace,session, application,asp :textbox etc)?
Is there a place that tells you this?
You need to know what imports to use in the .vb as well as the .dlls to
reference in the vbc line.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message
news:uy******** ******@TK2MSFTN GP12.phx.gbl... Btw,
What dlls do I need for sessions and trace? I was using the same vbc line (with system.dll added - that worked fine), but added a couple of lines that referenced my session variables as well as a couple of trace.warn statements.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message news:eP******** *****@TK2MSFTNG P15.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:et******** ******@TK2MSFTN GP10.phx.gbl... /r:System.dll ?
That was it.
Thanks,
Tom
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:e2******** ******@TK2MSFTN GP12.phx.gbl... I am trying to set up a reusable library (business component) that I can use in a bunch of my pages.
I built the file and it almost compiles, but I am not sure what I am missing.
The vbc command and results are:
*************** *************** *************** *************** ************ C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l /r:system.data.d ll
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration Settings' is not a member of 'Configuration' .
Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions")
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ ~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objConn as New SqlConnection (ConnectionStri ng) ~~~~~~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objCmd as New SqlCommand(Comm andText,objConn ) ~~~~~~~~~~
C:\Inetpub\wwwr oot\Development > *************** *************** *************** *************** ***************
What dlls am I missing?
Thanks,
Tom
Session and Trace are in System.Web.dll.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message
news:uy******** ******@TK2MSFTN GP12.phx.gbl... Btw,
What dlls do I need for sessions and trace? I was using the same vbc line (with system.dll added - that worked fine), but added a couple of lines that referenced my session variables as well as a couple of trace.warn statements.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message news:eP******** *****@TK2MSFTNG P15.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:et******** ******@TK2MSFTN GP10.phx.gbl... /r:System.dll ?
That was it.
Thanks,
Tom
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:e2******** ******@TK2MSFTN GP12.phx.gbl... I am trying to set up a reusable library (business component) that I can use in a bunch of my pages.
I built the file and it almost compiles, but I am not sure what I am missing.
The vbc command and results are:
*************** *************** *************** *************** ************ C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l /r:system.data.d ll
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration Settings' is not a member of 'Configuration' .
Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions")
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ ~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objConn as New SqlConnection (ConnectionStri ng) ~~~~~~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo nent'. Add one to your project.
Dim objCmd as New SqlCommand(Comm andText,objConn ) ~~~~~~~~~~
C:\Inetpub\wwwr oot\Development > *************** *************** *************** *************** ***************
What dlls am I missing?
Thanks,
Tom
I usually look it up at dotnet247 :
See a breakdown of system.web at : http://www.dotnet247.com/247referenc...ystem.Web.aspx
Other dll's are searchable there, too.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message
news:OQ******** ******@TK2MSFTN GP15.phx.gbl... Where do I find which .dlls are needed with which object (trace,session, application,asp :textbox etc)?
Is there a place that tells you this?
You need to know what imports to use in the .vb as well as the .dlls to reference in the vbc line.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message news:uy******** ******@TK2MSFTN GP12.phx.gbl... Btw,
What dlls do I need for sessions and trace? I was using the same vbc line (with system.dll added - that worked fine), but added a couple of lines that referenced my session variables as well as a couple of trace.warn statements.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message news:eP******** *****@TK2MSFTNG P15.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:et******** ******@TK2MSFTN GP10.phx.gbl... /r:System.dll ?
That was it.
Thanks,
Tom Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:e2******** ******@TK2MSFTN GP12.phx.gbl... >I am trying to set up a reusable library (business component) that I can use in a >bunch of my pages. > > I built the file and it almost compiles, but I am not sure what I am missing. > > The vbc command and results are: > > *************** *************** *************** *************** ************ > C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l > /r:system.data.d ll > > Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 > for Microsoft (R) .NET Framework version 1.1.4322.2032 > Copyright (C) Microsoft Corporation 1987-2002. All rights reserved. > > C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration > Settings' is not a member of 'Configuration' . > > Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe > ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions") > > ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ > ~~~~~~ > C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ > ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo > nent'. Add one to your project. > > Dim objConn as New SqlConnection (ConnectionStri ng) > ~~~~~~~~~~~~~ > C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ > ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo > nent'. Add one to your project. > > Dim objCmd as New SqlCommand(Comm andText,objConn ) > ~~~~~~~~~~ > > C:\Inetpub\wwwr oot\Development > > *************** *************** *************** *************** *************** > > What dlls am I missing? > > Thanks, > > Tom
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Session and Trace are in System.Web.dll.
But here I am getting errors from my compile and I do reference
System.Web.Dll.
Here are the imports:
Imports System
Imports System.Web.UI
Imports System.Web.Sess ionState
Imports System.Web.Mail
Imports System.Data
Imports System.Data.Sql Client
System.Diagnost ics.Trace
I assume that System.Web.Sess ionState is what I need for Sessions? I also
thought that System.Diagnost ics.Trace were what I needed for trace.warn.
Also I assume that I need some vb.dll to use left and intstr. I am not even
going to look at the others if the sessions and trace aren't working. http://msdn.microsoft.com/library/de...classtopic.asp
Shows trace as being System.diagnost ics.trace (or am I reading it wrong).
The command and results are:
*************** *************** *************** *************** *************** *
**********
C:\Inetpub\wwwr oot\Development >makeemailcla ss
C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb
/r:system.web.dl l /r:system.data.d ll /r:system.dll
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30451: Name
'trace' i
s not declared.
trace.warn("ins ide SendTheEmail")
~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name
'Left' is
not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1)
~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name
'request'
is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1)
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name
'InStrRev
' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1)
~~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name
'request'
is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1)
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 45) : error BC30002: Type
'StreamRe
ader' is not defined.
Dim objStreamReader as StreamReader
~~~~~~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 48) : error BC30451: Name
'File' is
not declared.
If File.exists(Map Path("..\automa il\mail.htm")) then
~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 48) : error BC30451: Name
'MapPath'
is not declared.
If File.exists(Map Path("..\automa il\mail.htm")) then
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 49) : error BC30451: Name
'File' is
not declared.
objStreamReader = File.OpenText(M apPath("mail.ht m"))
~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 49) : error BC30451: Name
'MapPath'
is not declared.
objStreamReader = File.OpenText(M apPath("mail.ht m"))
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 58) : error BC30451: Name
'session'
is not declared.
Dim mailTo as String = session("email" ) & "?subject=R e: Your job
applica
tion for the position of " & session("jobTit le")
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 58) : error BC30451: Name
'session'
is not declared.
Dim mailTo as String = session("email" ) & "?subject=R e: Your job
applica
tion for the position of " & session("jobTit le")
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 62) : error BC30451: Name
'session'
is not declared.
message.Body = resumeTop & "<br>For the Position of: <b>" &
session("job
Title") & "</b><br><br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name
'request'
is not declared.
message.Body = message.Body & "For Applicant: " & "<a href='http://"
& r
equest.ServerVa riables("SERVER _NAME") & "/" & URLPath &
"/displayAppResum eEE.as
px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " &
session("las
tName") & "</a>" & "<br>"
~
~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name
'session'
is not declared.
message.Body = message.Body & "For Applicant: " & "<a href='http://"
& r
equest.ServerVa riables("SERVER _NAME") & "/" & URLPath &
"/displayAppResum eEE.as
px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " &
session("las
tName") & "</a>" & "<br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name
'session'
is not declared.
message.Body = message.Body & "For Applicant: " & "<a href='http://"
& r
equest.ServerVa riables("SERVER _NAME") & "/" & URLPath &
"/displayAppResum eEE.as
px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " &
session("las
tName") & "</a>" & "<br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name
'session'
is not declared.
message.Body = message.Body & "For Applicant: " & "<a href='http://"
& r
equest.ServerVa riables("SERVER _NAME") & "/" & URLPath &
"/displayAppResum eEE.as
px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " &
session("las
tName") & "</a>" & "<br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 64) : error BC30451: Name
'session'
is not declared.
message.Body = message.Body & "Email: " & "<a href=""mailto:" &
mailTo &
""">" & session("email" ) & "</a>." & "<br><br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name
'request'
is not declared.
message.Body = message.Body & "<a href='http://" &
request.ServerV ariabl
es("SERVER_NAME ") & "/" & URLPath &
"/displayJobAppli cants.aspx?refe renceCode="
& session("Refere nceCode") & "&CommandName=R esumes&Position ID=" &
session("Posit
ionID") & "'>See all applicants for this postion</a>" & "<br><br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name
'session'
is not declared.
message.Body = message.Body & "<a href='http://" &
request.ServerV ariabl
es("SERVER_NAME ") & "/" & URLPath &
"/displayJobAppli cants.aspx?refe renceCode="
& session("Refere nceCode") & "&CommandName=R esumes&Position ID=" &
session("Posit
ionID") & "'>See all applicants for this postion</a>" & "<br><br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name
'session'
is not declared.
message.Body = message.Body & "<a href='http://" &
request.ServerV ariabl
es("SERVER_NAME ") & "/" & URLPath &
"/displayJobAppli cants.aspx?refe renceCode="
& session("Refere nceCode") & "&CommandName=R esumes&Position ID=" &
session("Posit
ionID") & "'>See all applicants for this postion</a>" & "<br><br>"
C:\Inetpub\wwwr oot\Development >copy emailClass.dll bin\emailClass. dll
1 file(s) copied.
C:\Inetpub\wwwr oot\Development >
*************** *************** *************** *************** *************** *
***********
Thanks,
Tom
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:uy******** ******@TK2MSFTN GP12.phx.gbl... Btw,
What dlls do I need for sessions and trace? I was using the same vbc
line (with system.dll added - that worked fine), but added a couple of lines that
referenced my session variables as well as a couple of trace.warn statements.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message news:eP******** *****@TK2MSFTNG P15.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:et******** ******@TK2MSFTN GP10.phx.gbl... /r:System.dll ?
That was it.
Thanks,
Tom Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:e2******** ******@TK2MSFTN GP12.phx.gbl... >I am trying to set up a reusable library (business component) that I
can use in a>bunch of my pages. > > I built the file and it almost compiles, but I am not sure what I am
missing.> > The vbc command and results are: > >
*************** *************** *************** *************** ************> C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb
/r:system.web.dl l> /r:system.data.d ll > > Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 > for Microsoft (R) .NET Framework version 1.1.4322.2032 > Copyright (C) Microsoft Corporation 1987-2002. All rights reserved. > > C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456:
'Configuration> Settings' is not a member of 'Configuration' . > > Dim ConnectionStrin g as String
=System.Configu ration.Configur ationSe> ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions") > > ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ > ~~~~~~ > C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007:
Reference requ> ired to assembly 'System' containing the base class
'System.Compone ntModel.Compo> nent'. Add one to your project. > > Dim objConn as New SqlConnection (ConnectionStri ng) > ~~~~~~~~~~~~~ > C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007:
Reference requ> ired to assembly 'System' containing the base class
'System.Compone ntModel.Compo> nent'. Add one to your project. > > Dim objCmd as New SqlCommand(Comm andText,objConn ) > ~~~~~~~~~~ > > C:\Inetpub\wwwr oot\Development > >
*************** *************** *************** *************** ***************> > What dlls am I missing? > > Thanks, > > Tom
"tshad" <tf*@dslextreme .com> wrote in message
news:eU******** ******@TK2MSFTN GP09.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Session and Trace are in System.Web.dll. But here I am getting errors from my compile and I do reference System.Web.Dll.
Here are the imports:
Imports System Imports System.Web.UI Imports System.Web.Sess ionState Imports System.Web.Mail Imports System.Data Imports System.Data.Sql Client System.Diagnost ics.Trace
I did change the above to System.Diagnost ics and didn't get the trace error,
but did get:
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'warn' is
not
a member of 'System.Diagnos tics.Trace'.
Tom I assume that System.Web.Sess ionState is what I need for Sessions? I also thought that System.Diagnost ics.Trace were what I needed for trace.warn.
Also I assume that I need some vb.dll to use left and intstr. I am not
even going to look at the others if the sessions and trace aren't working.
http://msdn.microsoft.com/library/de...classtopic.asp Shows trace as being System.diagnost ics.trace (or am I reading it wrong).
The command and results are:
*************** *************** *************** *************** *************** * ********** C:\Inetpub\wwwr oot\Development >makeemailcla ss
C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l /r:system.data.d ll /r:system.dll Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30451: Name 'trace' i s not declared.
trace.warn("ins ide SendTheEmail") ~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'Left' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'request' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'InStrRev ' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'request' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 45) : error BC30002: Type 'StreamRe ader' is not defined.
Dim objStreamReader as StreamReader ~~~~~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 48) : error BC30451: Name 'File' is not declared.
If File.exists(Map Path("..\automa il\mail.htm")) then ~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 48) : error BC30451: Name 'MapPath' is not declared.
If File.exists(Map Path("..\automa il\mail.htm")) then ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 49) : error BC30451: Name 'File' is not declared.
objStreamReader = File.OpenText(M apPath("mail.ht m")) ~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 49) : error BC30451: Name 'MapPath' is not declared.
objStreamReader = File.OpenText(M apPath("mail.ht m")) ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 58) : error BC30451: Name 'session' is not declared.
Dim mailTo as String = session("email" ) & "?subject=R e: Your job applica tion for the position of " & session("jobTit le") ~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 58) : error BC30451: Name 'session' is not declared.
Dim mailTo as String = session("email" ) & "?subject=R e: Your job applica tion for the position of " & session("jobTit le")
~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 62) : error BC30451: Name 'session' is not declared.
message.Body = resumeTop & "<br>For the Position of: <b>" & session("job Title") & "</b><br><br>"
~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'request' is not declared.
message.Body = message.Body & "For Applicant: " & "<a
href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>"
~ ~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "For Applicant: " & "<a
href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "For Applicant: " & "<a
href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "For Applicant: " & "<a
href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>"
~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 64) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "Email: " & "<a href=""mailto:" & mailTo & """>" & session("email" ) & "</a>." & "<br><br>"
~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name 'request' is not declared.
message.Body = message.Body & "<a href='http://" & request.ServerV ariabl es("SERVER_NAME ") & "/" & URLPath & "/displayJobAppli cants.aspx?refe renceCode=" & session("Refere nceCode") & "&CommandName=R esumes&Position ID=" & session("Posit ionID") & "'>See all applicants for this postion</a>" & "<br><br>" ~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "<a href='http://" & request.ServerV ariabl es("SERVER_NAME ") & "/" & URLPath & "/displayJobAppli cants.aspx?refe renceCode=" & session("Refere nceCode") & "&CommandName=R esumes&Position ID=" & session("Posit ionID") & "'>See all applicants for this postion</a>" & "<br><br>" ~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "<a href='http://" & request.ServerV ariabl es("SERVER_NAME ") & "/" & URLPath & "/displayJobAppli cants.aspx?refe renceCode=" & session("Refere nceCode") & "&CommandName=R esumes&Position ID=" & session("Posit ionID") & "'>See all applicants for this postion</a>" & "<br><br>" C:\Inetpub\wwwr oot\Development >copy emailClass.dll bin\emailClass. dll 1 file(s) copied.
C:\Inetpub\wwwr oot\Development >
*************** *************** *************** *************** *************** * ***********
Thanks,
Tom
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... =============== =======
"tshad" <ts**********@f tsolutions.com> wrote in message news:uy******** ******@TK2MSFTN GP12.phx.gbl... Btw,
What dlls do I need for sessions and trace? I was using the same vbc line (with system.dll added - that worked fine), but added a couple of lines that referenced my session variables as well as a couple of trace.warn statements.
Thanks,
Tom
"tshad" <ts**********@f tsolutions.com> wrote in message news:eP******** *****@TK2MSFTNG P15.phx.gbl... > "Juan T. Llibre" <no***********@ nowhere.com> wrote in message > news:et******** ******@TK2MSFTN GP10.phx.gbl... >> /r:System.dll ? > > That was it. > > Thanks, > > Tom >> >> >> >> Juan T. Llibre >> ASP.NET MVP >> http://asp.net.do/foros/ >> Foros de ASP.NET en Español >> Ven, y hablemos de ASP.NET... >> =============== ======= >> >> "tshad" <ts**********@f tsolutions.com> wrote in message >> news:e2******** ******@TK2MSFTN GP12.phx.gbl... >>>I am trying to set up a reusable library (business component) that I can use in a>>>bunch of my pages. >>> >>> I built the file and it almost compiles, but I am not sure what I
am missing.>>> >>> The vbc command and results are: >>> >>> *************** *************** *************** *************** ************>>> C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l>>> /r:system.data.d ll >>> >>> Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 >>> for Microsoft (R) .NET Framework version 1.1.4322.2032 >>> Copyright (C) Microsoft Corporation 1987-2002. All rights reserved. >>> >>> C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration>>> Settings' is not a member of 'Configuration' . >>> >>> Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe>>> ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions") >>> >>> ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ >>> ~~~~~~ >>> C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ>>> ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo>>> nent'. Add one to your project. >>> >>> Dim objConn as New SqlConnection (ConnectionStri ng) >>> ~~~~~~~~~~~~~ >>> C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ>>> ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo>>> nent'. Add one to your project. >>> >>> Dim objCmd as New SqlCommand(Comm andText,objConn ) >>> ~~~~~~~~~~ >>> >>> C:\Inetpub\wwwr oot\Development > >>>
*************** *************** *************** *************** ***************>>> >>> What dlls am I missing? >>> >>> Thanks, >>> >>> Tom >> >> > >
See http://www.kbalertz.com/Feedback_327848.aspx
for sample code to use Trace in ASP.NET applications.
There are two Trace classes in the Microsoft .NET Framework library:
System.Diagnost ics.Trace and System.Web.Trac eContext.
These Trace classes are frequently confused with each other.
However, each one is used for a specific purpose.
You typically use the System.Diagnost ics.Trace class to
debug console applications or Windows Forms applications.
You use System.Web.Trac eContext only in Microsoft ASP.NET applications.
To display Trace.Write statements on an ASP.NET page from a Class Library,
you must use the System.Web namespace, as previously advised.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"tshad" <tf*@dslextreme .com> wrote in message
news:Ox******** ******@TK2MSFTN GP15.phx.gbl... "tshad" <tf*@dslextreme .com> wrote in message news:eU******** ******@TK2MSFTN GP09.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. > Session and Trace are in System.Web.dll.
But here I am getting errors from my compile and I do reference System.Web.Dll.
Here are the imports:
Imports System Imports System.Web.UI Imports System.Web.Sess ionState Imports System.Web.Mail Imports System.Data Imports System.Data.Sql Client System.Diagnost ics.Trace
I did change the above to System.Diagnost ics and didn't get the trace error, but did get:
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'warn' is not a member of 'System.Diagnos tics.Trace'.
Tom I assume that System.Web.Sess ionState is what I need for Sessions? I also thought that System.Diagnost ics.Trace were what I needed for trace.warn.
Also I assume that I need some vb.dll to use left and intstr. I am not
even going to look at the others if the sessions and trace aren't working.
http://msdn.microsoft.com/library/de...classtopic.asp Shows trace as being System.diagnost ics.trace (or am I reading it wrong).
The command and results are:
*************** *************** *************** *************** *************** * ********** C:\Inetpub\wwwr oot\Development >makeemailcla ss
C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l /r:system.data.d ll /r:system.dll Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30451: Name 'trace' i s not declared.
trace.warn("ins ide SendTheEmail") ~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'Left' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'request' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'InStrRev ' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 44) : error BC30451: Name 'request' is not declared.
Left(request.pa th, InStrRev(reques t.path, "/") - 1) ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 45) : error BC30002: Type 'StreamRe ader' is not defined.
Dim objStreamReader as StreamReader ~~~~~~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 48) : error BC30451: Name 'File' is not declared.
If File.exists(Map Path("..\automa il\mail.htm")) then ~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 48) : error BC30451: Name 'MapPath' is not declared.
If File.exists(Map Path("..\automa il\mail.htm")) then ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 49) : error BC30451: Name 'File' is not declared.
objStreamReader = File.OpenText(M apPath("mail.ht m")) ~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 49) : error BC30451: Name 'MapPath' is not declared.
objStreamReader = File.OpenText(M apPath("mail.ht m")) ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 58) : error BC30451: Name 'session' is not declared.
Dim mailTo as String = session("email" ) & "?subject=R e: Your job applica tion for the position of " & session("jobTit le") ~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 58) : error BC30451: Name 'session' is not declared.
Dim mailTo as String = session("email" ) & "?subject=R e: Your job applica tion for the position of " & session("jobTit le")
~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 62) : error BC30451: Name 'session' is not declared.
message.Body = resumeTop & "<br>For the Position of: <b>" & session("job Title") & "</b><br><br>" ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'request' is not declared.
message.Body = message.Body & "For Applicant: " & "<a
href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>"
~ ~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "For Applicant: " & "<a href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "For Applicant: " & "<a href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>"
~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 63) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "For Applicant: " & "<a href='http://" & r equest.ServerVa riables("SERVER _NAME") & "/" & URLPath & "/displayAppResum eEE.as px?JobID=" & session("JobID" ) & "'>" & session("firstN ame") & " " & session("las tName") & "</a>" & "<br>" ~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 64) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "Email: " & "<a href=""mailto:" & mailTo & """>" & session("email" ) & "</a>." & "<br><br>"
~~~~~~~ C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name 'request' is not declared.
message.Body = message.Body & "<a href='http://" & request.ServerV ariabl es("SERVER_NAME ") & "/" & URLPath & "/displayJobAppli cants.aspx?refe renceCode=" & session("Refere nceCode") & "&CommandName=R esumes&Position ID=" & session("Posit ionID") & "'>See all applicants for this postion</a>" & "<br><br>" ~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "<a href='http://" & request.ServerV ariabl es("SERVER_NAME ") & "/" & URLPath & "/displayJobAppli cants.aspx?refe renceCode=" & session("Refere nceCode") & "&CommandName=R esumes&Position ID=" & session("Posit ionID") & "'>See all applicants for this postion</a>" & "<br><br>" ~~~~~~~
C:\Inetpub\wwwr oot\Development \EmailClass.vb( 65) : error BC30451: Name 'session' is not declared.
message.Body = message.Body & "<a href='http://" & request.ServerV ariabl es("SERVER_NAME ") & "/" & URLPath & "/displayJobAppli cants.aspx?refe renceCode=" & session("Refere nceCode") & "&CommandName=R esumes&Position ID=" & session("Posit ionID") & "'>See all applicants for this postion</a>" & "<br><br>" C:\Inetpub\wwwr oot\Development >copy emailClass.dll bin\emailClass. dll 1 file(s) copied.
C:\Inetpub\wwwr oot\Development >
*************** *************** *************** *************** *************** * ***********
Thanks,
Tom > > > > Juan T. Llibre > ASP.NET MVP > http://asp.net.do/foros/ > Foros de ASP.NET en Español > Ven, y hablemos de ASP.NET... > =============== ======= > > "tshad" <ts**********@f tsolutions.com> wrote in message > news:uy******** ******@TK2MSFTN GP12.phx.gbl... > > Btw, > > > > What dlls do I need for sessions and trace? I was using the same vbc line (with > > system.dll added - that worked fine), but added a couple of lines that referenced my > > session variables as well as a couple of trace.warn statements. > > > > Thanks, > > > > Tom > > > > "tshad" <ts**********@f tsolutions.com> wrote in message > > news:eP******** *****@TK2MSFTNG P15.phx.gbl... > >> "Juan T. Llibre" <no***********@ nowhere.com> wrote in message > >> news:et******** ******@TK2MSFTN GP10.phx.gbl... > >>> /r:System.dll ? > >> > >> That was it. > >> > >> Thanks, > >> > >> Tom > >>> > >>> > >>> > >>> Juan T. Llibre > >>> ASP.NET MVP > >>> http://asp.net.do/foros/ > >>> Foros de ASP.NET en Español > >>> Ven, y hablemos de ASP.NET... > >>> =============== ======= > >>> > >>> "tshad" <ts**********@f tsolutions.com> wrote in message > >>> news:e2******** ******@TK2MSFTN GP12.phx.gbl... > >>>>I am trying to set up a reusable library (business component) that I can use in a > >>>>bunch of my pages. > >>>> > >>>> I built the file and it almost compiles, but I am not sure what I am missing. > >>>> > >>>> The vbc command and results are: > >>>> > >>>> *************** *************** *************** *************** ************ > >>>> C:\Inetpub\wwwr oot\Development >vbc /t:library emailClass.vb /r:system.web.dl l > >>>> /r:system.data.d ll > >>>> > >>>> Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 > >>>> for Microsoft (R) .NET Framework version 1.1.4322.2032 > >>>> Copyright (C) Microsoft Corporation 1987-2002. All rights reserved. > >>>> > >>>> C:\Inetpub\wwwr oot\Development \EmailClass.vb( 20) : error BC30456: 'Configuration > >>>> Settings' is not a member of 'Configuration' . > >>>> > >>>> Dim ConnectionStrin g as String =System.Configu ration.Configur ationSe > >>>> ttings.AppSetti ngs("MM_CONNECT ION_STRING_ftso lutions") > >>>> > >>>> ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~ > >>>> ~~~~~~ > >>>> C:\Inetpub\wwwr oot\Development \EmailClass.vb( 21) : error BC30007: Reference requ > >>>> ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo > >>>> nent'. Add one to your project. > >>>> > >>>> Dim objConn as New SqlConnection (ConnectionStri ng) > >>>> ~~~~~~~~~~~~~ > >>>> C:\Inetpub\wwwr oot\Development \EmailClass.vb( 23) : error BC30007: Reference requ > >>>> ired to assembly 'System' containing the base class 'System.Compone ntModel.Compo > >>>> nent'. Add one to your project. > >>>> > >>>> Dim objCmd as New SqlCommand(Comm andText,objConn ) > >>>> ~~~~~~~~~~ > >>>> > >>>> C:\Inetpub\wwwr oot\Development > > >>>> *************** *************** *************** *************** *************** > >>>> > >>>> What dlls am I missing? > >>>> > >>>> Thanks, > >>>> > >>>> Tom > >>> > >>> > >> > >> > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris Asaipillai |
last post by:
Ok i have a Visual Basic Group of projects contaiining the following
Talk Talk.vbp (Visual Basic Project) and the main application
3 DLLS inc
Import Files
Login Audit
Render
|
by: Ray at |
last post by:
I despise installing third party software on my workstations or servers. It
is for this reason that I use componentless-upload for file uploads. This
is no longer an option, and I have to purchase an upload component. For
someone who hates third party software and also does not want any kind of
nonsense "bonus" features like progress bars...
|
by: kjon |
last post by:
Hi, I've developed a couple of DLL assemblies component to be used with my
main exe application.
Since I need to distribute all the exe and dlls to the user PC, how can I
prevent the user, who might happen to have programming knowledge, from using
the dlls in their own application?
I know this may sound a bit paranoid, but I believe there...
|
by: acharyaks |
last post by:
Hi life saver,
I am using excel component for the development.
The purpose is to connect to excel through the odbc
connection string. Then through the connection extract
data into a dataset and then save the data into a client
machine (Intranet) as excel page using the excel
component (using Excel = Microsoft.Office.Interop.Excel;)
in the...
|
by: Deven |
last post by:
HI Everybody,
I have a program which is already compiled and it's
executable is working on one of the server. Now when I am
trying to run it on another server, it is giving me error
429, ActiveX component can't create object.
Any help will be appreciated.(devenfadia@yahoo.com)
Thank you,
| |
by: MS newsgroup |
last post by:
I don't have clear reasons why we need business logic layer and data logic
layer instead of having only data logic layer.
Are there any good reasons for that?
|
by: Relaxin |
last post by:
I'm coming from Borland C++ and am "somewhat" new to C#, but very seasoned
in C++.
I'm looking for a specific feature that Borland had that I can't seem to
find in C#.
In Borland that feature is a DataModule.
This is a place where you place all of your Database and business logic.
This logic can then be "bound" to your UI by use of...
|
by: Echo |
last post by:
Hi All:
Does somebody know why everytime when we update our website, if there is
DLLs involved(we are running VS 2003, .net Framework 1.1, the DLLs is for
project or referenced external DLLs, exp: myProject.dll and
UrlRewriterForMyProject.dll), it always throw around 100 of following error:
System.Web.HttpException: External component has...
|
by: kanepart2 |
last post by:
Hello ,
I have to install 2 dlls to the GAC using an MSI created by WIX. The
following piece of code works as desired :-
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='WixExampleProductFolder' Name='Example'
LongName='Test Directory'>
<Component Id="Assemblies_GAC"...
|
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. ...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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: 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...
| |