Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2003, 10:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default Left Error

I have 2 copies of our intranet. After I copied the intranet over to our backup server, I started getting this error on the backup server, but not the main server. I ahve gotten this error every once in a while in the past. Any idea why I am getting it and how I can get rid of it. IIS is installed on both machines. The OS was installed fromt eh same place and everyhting. They both have new OS's with a few months. I know it is not the line of code since it works ont he other machine and has since March.

I am getting this error:

Code:
Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'Left'
/Default.asp, line 16

Chris
__________________
Chris
 
Old July 7th, 2003, 11:17 AM
Authorized User
 
Join Date: Jun 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe, it had be nice to post what is written on line 16, however I suspect that you have differents DNS names for those sites and in your code you check for the first one.
I suspect that in line 15, or something before.., you have an 'InStr()' that returns 'Null', Then this 'Null' value is inserted at line 16 in a Left() call. Like the error message intelligently says this is an invalid argument.
 
Old July 7th, 2003, 03:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is the line of code:

Code:
WebUserDomain = Left(WebUser,instr(Webuser,"\")-1)
This page has nothing to do with DNS. It does not care what the server name is at all. I built it that way on purpose.

Chris
 
Old July 7th, 2003, 04:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default

found th error. It was cause I had not turned off anonymous access.

Chris





Similar Threads
Thread Thread Starter Forum Replies Last Post
LEFT vs LEFT OUTER joxa83 SQL Server 2005 3 September 18th, 2008 03:13 AM
Report from right to left roy_mm Reporting Services 0 February 20th, 2007 11:11 AM
Zeros at left... comicghozt Access 7 October 3rd, 2006 02:27 AM
Left Join error mariakovacs Access ASP 2 October 13th, 2003 04:16 PM
LEFT ERROR xcalibur ASP.NET 1.0 and 1.1 Professional 1 October 10th, 2003 09:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.