PC Review


Reply
Thread Tools Rate Thread

How to debug Interop?

 
 
Hitesh
Guest
Posts: n/a
 
      25th Aug 2003
Hi all,
I am migrating from VB6 to ASP.NET. My VB6 code is using
MSScriptControl to execute some VBScript. I added
reference to MSScriptControl in .NET web application. This
created Interop.MSScriptControl.dll

Look at the line 10 and 13 in the source below.

1 Dim myscriptcontrol As New
MSScriptControl.ScriptControl()
2 Dim strScript As String
3 Try
4 myscriptcontrol.UseSafeSubset = True
5 myscriptcontrol.Language = "VBScript"
6
7 strScript = "dim a, b, c" & vbCrLf
8 strScript = strScript & "a = 2 " & vbCrLf
9 strScript = strScript & "b = 3 " & vbCrLf
10 strScript = strScript & "stop" & vbCrLf
11 strScript = strScript & "c = a+b" & vbCrLf
12
13 myscriptcontrol.AddCode(strScript)
14
15 Catch .....
16 ...

Line 13 executes and script stored in the variable
strScript

In VB6 when the "stop" statement is encountered (see Line
10), it starts the debugger and let me debug the VBScript.
But the same code in .NET is not invoking debugger.

...NET code is not generating any error it is executing the
script well. Only problem is I am not able to debug the
script executed by ScriptControl.

I also downloaded msscript.pdb and copied it to system
folder, also I have environment variable _NT_SYMBOL_PATH
set correctly, but still no luck.

If any one knows the solution or have any suggestions,
please let me know.

Thanks in advance,
Hitesh

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interop.CDO uses Interop.ADODB which has a higher version... muriwai Microsoft C# .NET 7 27th Oct 2011 08:00 PM
Debug .NET Interop-dll From VB6? Peter Plumber Microsoft C# .NET 2 7th Feb 2007 11:57 AM
Why Interop in BIN folder for ActiveX DLL in debug mode is deleted =?Utf-8?B?U29yaW4=?= Microsoft Dot NET 0 16th Dec 2004 07:43 PM
Visual C++ Debug Library. Debug Error! Abnormal program termination John Microsoft Outlook Discussion 1 25th Sep 2004 09:00 PM
Is there a published COM Interop Wrapper for Interop.MSDASC.dll? Burton G. Wilkins Microsoft ADO .NET 0 10th Nov 2003 01:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.