Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kennji
    New Member
    • Sep 2006
    • 3

    Error

    I got the following codes written in vwd 2005 and it works after i ran it.i was able to open a notepad.exe after clicking the button but after i put the folder into inetpub\wwwroot and try to view the website using another com, i got the following error below. Why is it the vwd can run it perfectly but after putting it into IIS 5.1 got problem?Does it concern the Interop.IWshRun timeLibrary.dll ?cos i need this file in order to make the program work in vwd but i also got copy this file into the IIS folder.Can anyone help me.thanks

    Protected Sub Button1_Click(B yVal sender As Object, ByVal e As System.EventArg s) Handles Button1.Click

    Dim oSH As New IWshRuntimeLibr ary.WshShell

    oSH.Run("%windi r%\notepad.exe" )

    End Sub





    c:\inetpub\wwwr oot\website\Def ault.aspx.vb(6) : error BC30002: Type 'IWshRuntimeLib rary.WshShell' is not defined.

    Dim oSH As New IWshRuntimeLibr ary.WshShell

    ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
Working...