Microsoft Vbscript Runtime Error '800a0009
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Microsoft Vbscript Runtime Error '800a0009' Subscript Out Of Range 'ubound'
Learn more about Stack Overflow the company Business Learn more about hiring developers or vbs subscript out of range 800a0009 posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow
800a0009 Vbscript
Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Microsoft VBScript runtime error '800a0009' Subscript out of range: microsoft vbscript runtime error activex component can't create object '[number: 1]' Include/Security.inc, line 28 up vote 1 down vote favorite Im working in a migration project. Where im trying to migrate classic asp application. Im not good at Classic ASP. i had taken the code from the server and trying to run it in my machine. But getting the following error. Microsoft VBScript runtime error '800a0009' Subscript out of range: '[number: 1]' /Include/Security.inc, line 28 Please microsoft vbscript runtime error subscript out of range find the block of code where im getting the error. Function StringConvUN dim tabConv dim rmLocation dim username username = Ucase(Request.ServerVariables("LOGON_USER")) if UCase(Request.ServerVariables("HTTP_AUTHORIZATION")) = "SITEMINDER" then StringConvUN = username else tabConv = split(username, "'") rmLocation = join(tabConv, "''") tabConv = split(rmLocation , "\") StringConvUN = tabConv(1) end if End Function Im getting the error in line 28 which is StringConvUN = tabConv(1) The same code is running fine in the IIS 6 server. But in my machine and in new IIS 7.5 server it giving the above error. please help me on this. iis vbscript asp-classic share|improve this question asked Apr 10 '15 at 11:09 NewTechie 2218 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote You may want to check to see whether you're using the correct authentication method in IIS, as well as what Amessihel has mentioned above. But the code looks a little messy here... tabConv = split(username, "'") rmLocation = join(tabConv, "''") tabConv = split(rmLocation , "\") StringConvUN = tabConv(1) Why not just Replace your single quotes with doubles in the initial copy of the Request.ServerVariables("LOGON_USER"), like so: username = Replace(Request.ServerVariables("LOGON_USER"), "'", "''") And you could simply use a combination of Ins
this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the
Microsoft Vbscript Error
register link above to proceed. To start viewing messages, select the forum that how to fix microsoft vbscript runtime error you want to visit from the selection below. Results 1 to 8 of 8 Thread: [RESOLVED] VBScript runtime error 800a0009
Subscript Out Of Range: '[number: 0]'
Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 12th, 2010,09:06 AM #1 coolgirl View Profile View Forum Posts http://stackoverflow.com/questions/29559937/microsoft-vbscript-runtime-error-800a0009-subscript-out-of-range-number-1 Thread Starter New Member Join Date May 2010 Posts 4 [RESOLVED] VBScript runtime error 800a0009 Fixed so removing the code Last edited by coolgirl; May 12th, 2010 at 01:17 PM. Reply With Quote May 12th, 2010,10:58 AM #2 SambaNeko View Profile View Forum Posts Visit Homepage Frenzied Member Join Date Apr 2009 Location CA, USA Posts 1,516 Re: VBScript runtime error 800a0009 The "Subscript http://www.vbforums.com/showthread.php?614527-RESOLVED-VBScript-runtime-error-800a0009 out of Range" error means you're trying to access an element of an array that doesn't exist; like if your array has 3 elements, and you try to access the 4th element. On line 123, you're using the aAppSrvs() array, which was defined as aAppSrvs(100,100), and the error message is telling you that "101" was used as either i or j. You either need to dim aAppSrvs with higher bounds, or you need to find out what's causing i or j to be 101 when they're expected to stay less than or equal to 100. Reply With Quote May 12th, 2010,11:47 AM #3 MarkT View Profile View Forum Posts PowerPoster Join Date Jun 2001 Location Trafalgar, IN Posts 4,112 Re: VBScript runtime error 800a0009 I assume this query is probably returning more than 101 record which will make the loop go beyond the bounds that you have delcared for the i dimension. 72 sSQL = "SELECT e.* FROM tblEnvironment e WITH (nolock) WHERE e.RealEnvironment = 1 " _ 73 & "and e.EnvironmentActive = 1 ORDER BY e.SortOrder" Reply With Quote May 12th, 2010,12:18 PM #4 coolgirl View Profile View Forum Posts Threa
Web Platform http://forums.iis.net/post/2073169.aspx Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 7 and Above Setup Microsoft VBScript runtime error '800a0009', Subscript out of range:... Re: Microsoft VBScript runtime microsoft vbscript error '800a0009', Subscript out of ran... View Complete Thread Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply peterviola 735 Posts Re: Microsoft VBScript runtime error '800a0009', Subscript out of range: '[number: 5]' Apr 02, microsoft vbscript runtime 2014 02:50 PM|peterviola|LINK Subscript out of range means you tried to access an element of an array that was either greater than its ubound or lower than its lbound. http://msdn.microsoft.com/en-us/library/aa264519%28v=vs.60%29.aspx Running Classic ASP Applications on IIS 7 and IIS 8 http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8 Peter Viola MCTIP SA, EST, DBA 2008 MCSA Windows Server 2012 Please 'Mark as Answer' if this post helps you. www.peterviola.com This site is managed for Microsoft by Neudesic, LLC. | © 2016 Microsoft. All rights reserved. Privacy Statement Terms of Use Contact Us Advertise With Us Hosted on Microsoft Azure Follow us on: Twitter Facebook Microsoft Feedback on IIS Powered by IIS8