ASP code error

 
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET
View previous topic :: View next topic  
Author Message
Roberthinckley
-


Joined: 05 May 2007
Posts: 1

PostPosted: Sat May 05, 2007 10:04 pm    Post subject: ASP code error Reply with quote

hello!

I am running abyss server x1 and using it to host my asp.net website while i create it locally on my computer.

I am coming accross an error message. when i try to establish a connection to my database i get the following error message:-

"Compiler Error Message: BC30807: 'Let' and 'Set' assignment statements are no longer supported."

the source of the error is my connection to the database, the code for it is the following:-

<%
DIM objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath ("/tafiles.mdb") & ";"
objConn.Open
%>

i thought this was pretty standard code and the "set" keyword was still in use.

does anyone know why im getting this error and know how to fix it?

Thanks
Back to top View user's profile Send private message MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon May 07, 2007 9:09 am    Post subject: Re: ASP code error Reply with quote

Roberthinckley,

Microsoft developers have changed their mind and now Set and Let are deprecated. Read http://msdn2.microsoft.com/en-us/library/9tzcse0s(vs.80).aspx .

So you'll have to remove them to make the .NET 2.0 compiler happy.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
harinarayananvp
-


Joined: 27 May 2011
Posts: 1
Location: Bengaluru

PostPosted: Fri May 27, 2011 11:48 am    Post subject: Reply with quote

Hi,

i'm also having the same problem..what i can do to run the same asp page which is having let and set in the source code??..pls help ..i want to run the classic asp page
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Mon Jul 11, 2011 7:16 pm    Post subject: Reply with quote

harinarayananvp wrote:
Hi,

i'm also having the same problem..what i can do to run the same asp page which is having let and set in the source code??..pls help ..i want to run the classic asp page


The solution is to use the Classic ASP alternative as explained http://www.aprelium.com/abyssws/asp.html
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group