Just set return value as an integer , which you can define for yourself that each number refer to specific error. You can return it in your catch block and outside it return 0 , just like many of win32 API do. Other way as I mentioned throwing SoapException which could be caught in client. You can search for it in Google for sample. Hope it helps.
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
But when I lauching my program and clicking much times on to invoke this code an exception occurs:
"Unable to write data to the transport connection"
It happens aproximately every 10-15 times. Could someone tell what wrong with my code? Thanx
Yes, all parameters are the same. Let imagine that this is one dialog with single button and all code are implemented in OnButton click function. This button just sends an sms to a mobile through php page, so I do not need any server response. But when I sending 20-30 sms during 10 min. after each 10-15 clicks I got this exception message. Can you tell me how can I encode my param values? Thanx for reply.
You could either reference the System.Web.dll assembly, or the JScript.NET assembly (don't remember off-hand what it's called) and use the HTML encoding method in there, or just do a simple replacement yourself, using Uri.HexEscape for all ASCII characters about 127 (implementing this your isn't hard either - just replace the character with &#XXX; where XXX is the decimal number equivalent. So, character 128 would be €.
I am currently having a hard time finding any good references for the needleman wunsch algorithm to learn and implement it in C#.
Does anyone please have a reference or can help me by supplying pseudo or proper code?
If you actually read the documentation, you'd see that it's in the System.Web.dll assembly under the System.Web.SessionState namespace (as Mazdak mentioned). You can't simply just use it, though. It's bound to the current HttpContext for a user. You can get this from the HttpContext.Current property (returns the current HttpContext, the class which defines a Session property) and the Page class.
DotNetAppTest is the calling assembly. The exception is either in DotNetAppHost or it can't find DotNetAppHost (most likely the latter since Fusion is giving you such a log). The log seems incomplete for an assembly binding error, though, since it doesn't seem to be probing additional, common paths, unless you've removed those lines.
If the assembly was missing, you should've been thrown a FileNotFoundException, which you've either not reported here or are catching in the Application.ThreadException or AppDomain.UnhandledException event handlers (or in a method that late-binds against DotNetAppHost).
To accurately help you solve the problem, please provide more information, such as the complete log (it applicable) or any exceptions that were thrown.