Home > Microsoft Vbscript > Microsoft Vbscript Runtime Error Object Required 'session'

Microsoft Vbscript Runtime Error Object Required 'session'

Those [] brackets are what cause it to be resolved to the actual real path.Phil Wilson Marked as answer by Manuel Wedel Wednesday, July 06, 2011 3:25 PM Thursday, June 30, Best wishes,Mike [MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark them share|improve this answer edited Jan 25 '14 at 21:37 answered Jan 22 '14 at 8:21 Ekkehard.Horner 30.6k11936 Here is my openRecordset function Function openRecordSet(ByVal strSQL, ByRef objConnection) On Error M.Wedel Wednesday, June 29, 2011 12:46 PM Reply | Quote Answers 1 Sign in to vote The most obvious thing that is wrong is the use of WScript. weblink

Can't remove it at this time. Here is my script so far: Dim WShell, DISKID Set WShell = WScript.CreateObject("WScript.Shell") DISKID = WShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Services\Disk\Enum\0") Session.Property(DISKID) = DISKID I've scrolled the internet and found very little that resembles what i'm The project file 'item1' contains invalid key 'item2'. Contact your support personnel or package vendor." I also tried different options like: - VBS code: Session.Property("SourceDir") (I know you mentioned it wouldn't work) - CustomActionData: /name="[SourceDir]\" (of which I know http://stackoverflow.com/questions/1568120/how-do-you-catch-the-vbscript-runtime-error-object-required-session-deve

Press F1 for more information. Function openRecordSet(ByVal strSQL, ByRef objConnection) On Error Resume Next Set openRecordset = objConnection.Execute(strSQL) End Function output: TypeName(openConnectionAdmin()): Connection TypeName(openRecordset(...)) : Empty ... Thank you for that advice. Line 'item1': Property 'item2' in 'item3' had an invalid value.

When the application installs, the ca.vbs and the batch file should be inside that folder [ProductName]. Since when has Darth Vader had a sense of humor? Am I missing somehting in my IIS setup? Is it correct to use "/SourceDir="SOURCEDIR\"" as parameter in the CustomActionData property?

What about this problem now? The WScript object model is provided by Windows Script Host when you run a script with wscript.exe. Join Us! *Tek-Tips's functionality depends on members receiving e-mail. check my blog Not the answer you're looking for?

The points system is explained in the main forum, and you can click on the "Rate Posts" to award points. [:D] Cheers! [:D] Answered 05/23/2005 by: brenthunter2005 Please log in to Browse other questions tagged vbscript asp-classic runtime-error or ask your own question. Set DatabaseConnection = Server.CreateObject("ADODB.Connection") DatabaseConnection.Open "FILEDSN=my.dsn;UID=;PWD=" 'Create a record set object. For example, you may receive this error if you try to assign a value to a read-only property.

RetVal = CreateObject("Excel.Application") RetVal.Visible = True ' Error occurs here. you could try here Word for fake religious people Extensible code to support different HR rules How can 'HD 140283' be older than the universe? I'd bet that would be your problem (and caused by an incorrect connection string). –Ted Jan 22 '14 at 14:53 add a comment| Your Answer draft saved draft discarded Sign Microsoft VBScript runtime error '800a01a8' P: n/a Matrix I just got one virtual directory setup and try to run my web application from there.

Legal | Feedback 8971ac5 Tue November 1 16:43:30 EDT 2016"www.itninja.com Login with LinkedIN Or Log In Locally Email Password Remember Me Forgot Password?Register ENGINEERING.com Eng-Tips Forums Tek-Tips Forums http://goglospex.com/microsoft-vbscript/microsoft-vbscript-runtime-error-800a01a8-object-required-windows-xp.html A script required for this install to complete could not be run. This error happens just after the "scriptProc.StartInfo.FileName = vbsPath;" line of code. Like I wrote, the setup path will only have a Setup.exe and an MSI, and I cannot know what the folder name will be when the application is installed.

Open the Microsoft Management Console, bring up the properties of a virtual directory in which SendMail.asp is placed, and on the main property tab, click the "Create" button under the Application Custom action Action1 script error -2146827864, Microsoft VBScript runtime error: Object required: 'WScript' Line 3, Column 1, However, when i run the script by itself i get: Line: 5 Char: 1 In this way, you can use the registry key to store the application directory information, then you can read form this key before you execute the unzip proceed. check over here It is about three folders that need to be extracted into the Application Folder.

Toggle navigation Software Tips Questions Blogs Links Communities Questions & Answers VBScript to set MSI Property VBScript to set MSI Property Scotty How helpful is this to you? I'm copying the application folder without making any changes and it won't run under IIS 7 on the 2008 machine. I'm sure there's a "Points" system operating here so i'm more than happy to award some to Mr B Hunter but dont know how.

Make sure you are using the version of the control that was provided with your application.

I see that you have your Custom Action in the Install and that the OnAfterInstall of Installer1.cs is called. Line 'item1': Missing or invalid control name in file 'item2'. The idea of passing the source directory via CustomActionData should be retained by this solution. That an automatic repair may run after replacing some files was unknown to me.

It turns out that the problem was really just ignorance on my part. Phil Wilson Marked as answer by Manuel Wedel Thursday, July 14, 2011 12:54 PM Wednesday, July 13, 2011 8:56 PM Reply | Quote Moderator 0 Sign in to vote HiManuel, In It is not provided by Windows Installer. this content The code of the script: set fs = CreateObject("Scripting.FileSystemObject") set ws = WScript.CreateObject("Wscript.Shell") set Scriptdatei = fs.GetFile(WScript.ScriptFullName) ws.CurrentDirectory = Scriptdatei.ParentFolder extractTo = ws.CurrentDirectory set arguments = WScript.Arguments If arguments.count = 0

Best wishes, Mike [MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark Related Links Status-Message Home Page Windows File Protection Query OPSI Product FAQ Shortcut OPSI Documentation PolicyMaker Home Page Network View KiXtart Scripting - Downloads Related Posts Scripting Resources Using Secedit To As far as good. The load behavior for 'item' could not be updated because of current registry permissions.

security on asprunner code directories scripts only in IIS config virtual folder? / application config - allow parent paths? - here you can also turn on ASP debugging to be returned After you build the setup project, you will need to copy the vbscript and zip file to the setup project debug folder with the installer files. If you replace it after it's been installed an automatic repair may run and restore them to what was installed by the MSI.Phil Wilson Proposed as answer by Cosmin Pirvu Wednesday, Difference between "raise" and "lift" An exercise in the properties of Lebesgue integrals Is /dev/nvram dangerous to write to?

Ray at work "Matrix" wrote in message news:11**********************************@microsof t.com...I just got one virtual directory setup and try to run my web applicationfrom there. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed BTW, are you trying to access the property during the UI execute? –KMoraz Dec 16 '09 at 11:26 add a comment| 2 Answers 2 active oldest votes up vote 1 down Again if I understand the migration path - then you will need to configure 32 bit support / IIS in 2008 to get ASP running - not enabled by default settings

asked 2 years ago viewed 798 times active 2 years ago Blog Stack Overflow Podcast #97 - Where did you get that hat?! This action will reset your project, proceed anyway? I am getting following error Microsoft VBScript runtime error '800a01a8' Object required: 'Session' I even try to create test.asp and put it in wwwroot folder only code I had was <% Join UsClose Developer resources Microsoft developer Windows Windows Dev Center Windows apps Desktop Internet of Things Games Holographic Microsoft Edge Hardware Azure Azure Web apps Mobile apps API apps Service fabric

Register now while it's still free! The time now is 10:46 AM.