Target Designer fails during CMI

N

Nick

I am trying to add a "Settings" page to some components in my sld file. My
example is a text box that will store the entered text as a value in the
registry.
The asp that accepts input is :
<%asp%>
<%= ASP.Header %>
<%= ASP.PropHandlers %>
<h1>
</h1>
<p>
</p>
<table>
<tr>
<td><label for="cmioemIPAddress">IP Address:</label></td>
<td><input type="text" style="WIDTH:120px" name="cmixDefPropHandler"
ID="cmioemIPAddress"></td>
</tr>
</table>
<%= ASP.Footer %>
and the vbs that is supposed to set the reg value is :

Option Explicit

'//event fired as part of the processing of method calls on CMI objects
Sub cmiOnEndBuild(dwFlags)

'//Trace Enter
Dim sProcName : sProcName = "INtimeDNS::cmiOnEndBuild"
oPL.TraceEnter sProcName ' //oPL - global object present
in Platform Script

'//Turn on DNS
oPL.TargetRegEdit cRegOpWrite, cRegCondAlways, cmiREG_SZ,
"HKEY_LOCAL_MACHINE\SOFTWARE\TEST\DNS", "", "ON", cmiString

'//Trace Exit
oPL.TraceLeave sProcName

End Sub


when i try to build the image with target designer i get a error :

Configuration Management Interface (CMI) Error
Code = 0x80042337
Description = The CMI encountered an unexpected COM error. For more
information see the application event log.


Now, i'm neither a ASP or VBS expert, so any help would be appreciated.
 
M

mich1985

Hello Nick,

try this line...
oPL.TargetRegWrite cmiREG_SZ, "HKEY_LOCAL_MACHINE\SOFTWARE\TEST\DNS",
"", "ON", cmiString


regards,
flo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top