473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Help with a trace..

Hi all,

I've written a small Index Server class library which will me to make simple
lookups...I've just tied this in to a .aspx page and for a one word search
was working nicely.

I then added some code to enable multiple words to be used, ie, breaking the
criteria up, plonking it into an arraylist, then, whilst building the sql,
iterating through it etc etc...

I keep getting the same error, about a conversion from a String() to a
String....very odd....

My other slight niggle is that I can only really test this on our production
server as thats the only place I have a nice big catalog to rifle through,
but unfortunately when its there I cannot debug it properly - when I've
tried debugging on my own localhost it all seems ok - but obviously dies
when it tries to connect to the catalog.

Here's the trace from the .aspx - any help would be really appreciated, I
cant even work out what line number/function/sub to be looking at!

[InvalidCastException: Cast from type 'String()' to type 'String' is not
valid.]
Microsoft.VisualBasic.CompilerServices.StringType. FromObject(Object
Value) +616
IndexServer_Component.Result..ctor(DataRow dataRow) +2207
IndexServer_Component.Results.SearchIndexServer(St ring searchCriteria)
+317
NBTPublicSearch.Search.Button1_Click(Object sender, EventArgs e) +82
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
Thanks in advance,

Regards

Rob
Feb 16 '06 #1
4 1013
If you can't see what the line number is generating the exception, you could
try to put the .pdb file (with the same name as the dll) in the same bin (or
equivalent) directory and the next time you have an unhandled exception, it
will give you the exact line number...

Also I assume you still compile your proyect in debug mode...

hope this helps
Hans

"Rob Meade" <ku***************@edaem.bor> escribió en el mensaje
news:er*************@tk2msftngp13.phx.gbl...
Hi all,

I've written a small Index Server class library which will me to make
simple lookups...I've just tied this in to a .aspx page and for a one word
search was working nicely.

I then added some code to enable multiple words to be used, ie, breaking
the criteria up, plonking it into an arraylist, then, whilst building the
sql, iterating through it etc etc...

I keep getting the same error, about a conversion from a String() to a
String....very odd....

My other slight niggle is that I can only really test this on our
production server as thats the only place I have a nice big catalog to
rifle through, but unfortunately when its there I cannot debug it
properly - when I've tried debugging on my own localhost it all seems ok -
but obviously dies when it tries to connect to the catalog.

Here's the trace from the .aspx - any help would be really appreciated, I
cant even work out what line number/function/sub to be looking at!

[InvalidCastException: Cast from type 'String()' to type 'String' is not
valid.]
Microsoft.VisualBasic.CompilerServices.StringType. FromObject(Object
Value) +616
IndexServer_Component.Result..ctor(DataRow dataRow) +2207
IndexServer_Component.Results.SearchIndexServer(St ring searchCriteria)
+317
NBTPublicSearch.Search.Button1_Click(Object sender, EventArgs e) +82
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
Thanks in advance,

Regards

Rob

Feb 16 '06 #2
"Hans Baumann" wrote ...
If you can't see what the line number is generating the exception, you
could try to put the .pdb file (with the same name as the dll) in the same
bin (or equivalent) directory and the next time you have an unhandled
exception, it will give you the exact line number...
Thats very useful information Hans, many thanks - I will try that now..
Also I assume you still compile your proyect in debug mode...


I think on a couple of occassions it might have gone across in release mode
(as I couldn't debug it anyway) - but I will ensure that its in Debug mode
now...

Thanks for your suggestions - I'll try them now!

Rob
Feb 16 '06 #3
Hi Rob,

I assume it is trying to convert String array type to String. Can you
please check that?

Cheers,
Kris

Feb 16 '06 #4
Hi Rob,

I assume it is trying to convert String array type to String.

Check the casting and ensure it is just String type.

Cheers,
Kris

Feb 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pratchaya | last post by:
This is my sample error in my MySQL Log New value of fp=(nil) failed sanity check, terminating stack trace! Please read http://www.mysql.com/doc/en/Using_stack_trace.html and follow instructions...
0
by: paul.rusu | last post by:
(:// start/stop trace:) (: for $x in doc ($doc_name)/ProcessValueTrace/Trace, $y in $x/StartTrace, $z in $x/StopTrace return <Trace> { $y } { $z }
2
by: Amanda | last post by:
From a guy in Microsoft newsgroups: | In *comp.databases.ibm-db2* there are always IBM guys | from the Toronto labs on line.Post with the | -for the love of god please help- | line...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
0
by: john | last post by:
Hi,All MS Tech Gurus: I need your help!!! It is the second time I post this message, I need get some feedback ASAP, Please Help!! Thanks a lot in advance. John I have a csharp method, using...
3
by: dibblm | last post by:
Below is current code used. I can only list one directory then move to next. I want to search one more directory further and can't seem to find how to get one deeper. What I want to accomplish is...
3
by: Keith Mills | last post by:
Hello, please find attached a basic outline of what I am attempting to accomplish... basically I want to create a number of THREADS (which I can do fine), but I then need a method for them to be...
5
by: weidongtom | last post by:
Hi, I tried to implement the Universal Machine as described in http://www.boundvariable.org/task.shtml, and I managed to get one implemented (After looking at what other's have done.) But when I...
3
by: Stephen Torri | last post by:
Below is a class that is suppose to represent a segment of memory or a contents of a binary image (e.g. ELF executable). I have started to read Modern C++ Design and thought the best way to ensure...
5
by: mcfly1204 | last post by:
I am attempting to use WebRequest to access a page that requires a login/password to access. My last WebRequest continues to timeout. Any help or thoughts would be appreciated. namespace...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.