For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > March 2006 > Exception has been thrown by the target of an invocation. ODBC MS Text file driver









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Exception has been thrown by the target of an invocation. ODBC MS Text file driver
jason@cyberpine.com

2006-03-29, 10:02 pm

Running VS.NET 2005 beta.

Created a simple report who's data source is ODBC's microsoft text file
driver.

Here's the file:
f1 string, f2, f3, f4,f5
"a", "1", "c","d", "e"
"a", "2", "c","d", "e"
"b", "b", "c","d", "e"
"2", "b", "c","d", "e"
"3", "b", "c","d", "e"
"a", "a", "c","d", "e"
"a", "3", "c","d", "e"
"a", "2", "c","d", "e"

I'm able to add the connection and insert the fields into the report.
I added a selection of f1 equal a, and when I Main report preview I see
the select is working as the data reported is fine.

Howevever when I attempt to test via F5, I get:

Exception has been thrown by the target of an invocation.

Here's what I've tried:

* in ie i turned off disable script debugging.
* in vs.net I set all debug, exception switches to true
* I modified, C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\VSTestHost.exe.config to look as follows, but no log file
is produced, when I retest.


VSTestHost.exe.config:
<?xml version ="1.0"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="PrivateAssemblies;PublicAssemblies"/>
</assemblyBinding>
</runtime>
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="c:\VSTestHost.log" />
</listeners>
</trace>
<switches>
<!-- You must use integral values for "value". Use 0 for off, 1 for
error, 2 for warn, 3 for info, and 4 for verbose. -->
<add name="EqtTraceLevel" value="4" />
</switches>
</system.diagnostics>
</configuration>
===
Any help or information is greatly apprecieated.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com