| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Roberthinckley -
 
  Joined: 05 May 2007 Posts: 1
 
  | 
		
			
				 Posted: Sat May 05, 2007 10:04 pm    Post subject: ASP code error | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			           | 
		
	
	
		  | 
	
	
		aprelium -
 
  Joined: 22 Mar 2002 Posts: 6800
 
  | 
		
			
				 Posted: Mon May 07, 2007 9:09 am    Post subject: Re: ASP code error | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			           | 
		
	
	
		  | 
	
	
		harinarayananvp -
 
  Joined: 27 May 2011 Posts: 1 Location: Bengaluru
  | 
		
			
				 Posted: Fri May 27, 2011 11:48 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		admin Site Admin
 
  Joined: 03 Mar 2002 Posts: 1348
 
  | 
		
			
				 Posted: Mon Jul 11, 2011 7:16 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		
			          | 
		
	
	
		  | 
	
	
		 |