Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DateAdd Function and error BC30451

Reply
Thread Tools

DateAdd Function and error BC30451

 
 
Matt Tapia
Guest
Posts: n/a
 
      08-13-2003
I trying to compile a .vb file as such:

vbc /t:library /out:C:\Inetpub\wwwroot\crm\bin\CRMWebServices.dll
/r:System.dll /r:System.Data.Dll /r:System.Web.Services.dll
/r:System.Xml.dll C:\Inetpub\wwwroot\crm\CRMdbService.vb

In the file I used the function DateAdd. When I compile I get Error BC30451
Name 'DateAdd' is not declared. I have the following imports in my code:

Imports System

Imports System.Data

Imports System.Data.SqlClient

Imports System.Web.Services



Can someone tell me what I need to do to compile this?



THanks!


 
Reply With Quote
 
 
 
 
Chris R. Timmons
Guest
Posts: n/a
 
      08-13-2003
"Matt Tapia" <(E-Mail Removed)> wrote in
news:#(E-Mail Removed):

> I trying to compile a .vb file as such:
>
> vbc /t:library
> /out:C:\Inetpub\wwwroot\crm\bin\CRMWebServices.dll /r:System.dll
> /r:System.Data.Dll /r:System.Web.Services.dll /r:System.Xml.dll
> C:\Inetpub\wwwroot\crm\CRMdbService.vb
>
> In the file I used the function DateAdd. When I compile I get
> Error BC30451 Name 'DateAdd' is not declared. I have the
> following imports in my code:
>
> Imports System
>
> Imports System.Data
>
> Imports System.Data.SqlClient
>
> Imports System.Web.Services
>
>
>
> Can someone tell me what I need to do to compile this?


Matt,

I'm not a VB.Net programmer, but I believe you also need to add a
reference to Microsoft.VisualBasic.dll to the vbc.exe command line.
And possibly "Imports Microsoft.VisualBasic" to your code (?).

Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DateAdd Function Mel ASP .Net 1 11-07-2008 08:20 PM
Compilation Error BC30451 from remote servier Amy Zhao ASP .Net 0 02-03-2007 08:58 PM
Error BC30451 SinCity ASP .Net 3 09-06-2006 02:48 PM
Dateadd function not adding up... Gabe ASP General 3 10-31-2003 02:46 PM
dateAdd and datePart return 13, 14, 15 instead of 1, 2, 3 Tipple ASP General 2 10-16-2003 03:57 PM



Advertisments