|
There are multiple ways you can do it:
a) .Net Remoting
b) Windows Communication Foundation
c) Web Service
d) WMI events
Tariq A Karim
http://moplah.blogspot.com/
|
|
|
|
|
Hi,
I have an class liabrary. To debug this liabrary when my application gets started, I try attaching the process (VS 2005 -> Debug -> Attach to process) but the debug symbol does not get loaded.
Also when I try to debug the project (F5), I get the following error "The operation could not be loaded. Parameter is incorrect"
Is there an debugger setting that missing out in this class liabrary project?
Regards,
Vipul Mehta
Regards,
Vipul Mehta
|
|
|
|
|
You need to make sure you have compiled everything in DEBUG mode, and that you have access to the .pdb file generated by the compiler for the assembly you want to debug.
|
|
|
|
|
Hi All,
Would someone plese tell me what the error :"The request failed with HTTP status 400: Bad Request" means. I am getting this when I try to send huge amount of data to web service.
Regards,
Ash.
|
|
|
|
|
Hi,
Even i am getting same kind of error .. but no one has replied yet
|
|
|
|
|
The error just means that the web service for some reason didn't like the request. Specifically, it may mean that the web service:
a) can't understand your request (bad headers/bad encoding/bad data).
b) has failed when processing your data (due to a bug or bad data).
c) doesn't accept your request (invalid data, too much data or whatever other rule it may enforce).
So as you see, the reasons can be infinitely many, and there is no simple answer. You may be doing something wrong, the web service may be doing something wrong or there may be a problem on the way (corrupting the request).
It's almost impossible to debug without carefully analyzing the entire raw request (including HTTP headers) and/or debugging the web service itself. If you didn't create the web service you could try sending the request to a fake web service you create and capture it there - then you have to analyze it for correctness somehow (proof-reading it or building a program that analyzes it) and finally, if you're certain it's correct, contact the ones responsible for the web service.
I think I remember seeing it intermittently in .NET 1.1 due to some bug or quirk (the request headers sometimes were incorrectly generated by the framework). Both the web service and consumer were built in .NET, and the error occured before my (web service) code even saw the request. Spent hours of fruitless debugging before I found the bug on Google... Haven't heard about that in a long time though - I think it got fixed in an early service pack.
Peter the small turnip
(1) It Has To Work. --RFC 1925[^]
|
|
|
|
|
One more thought: You say "huge amount of data"... could it be that the web service has a limit on the amount of data it accepts and you are exceeding it? That would qualify as a "bad request"...
Peter the small turnip
(1) It Has To Work. --RFC 1925[^]
|
|
|
|
|
Hi, how could we determine whether visual studio 2005 sp1 is installed in our system? Thank in advance
|
|
|
|
|
Go to Visual Studio > Help > About Visual Studio
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Thank you very much for your reply. I used to run windows update and i found that my computer require to update vs 2005 sp1. Then I download from an internet (431 Mb). I installed it but during the time that it is nearly finish (remain around 1mn) the eletricity was disconnect and i try to use the command
shutdown -s -f -t: 5 to force shutdown my machine before the electricity cut off. So I'm not sure whether i could install vs 2005 sp1 successfully or not. But when i try to run windows update again i fould that my computer still require vs 2005 sp1. So I doubt that it might not install properly. Thank in advance.
|
|
|
|
|
Look in the about box of VS2005.
I doubt it. If it isn't intuitive then we need to fix it. - Chris Maunder
|
|
|
|
|
|
What is the difference between WriteLine and Print methods of Debug class?
|
|
|
|
|
They are identical. In other words, they call exactly the same function internally.
You may find Reflector.NET handy for these situations.
|
|
|
|
|
Thanks leppie.
Do you know why then two methods with exactly the same functionality exist?
|
|
|
|
|
Maybe for legacy reasons. I didnt even know a Print method existed till you said it
|
|
|
|
|
Hi All,
I am currently working with web services and while sending data to web service i am getting this Error:
"The request failed with HTTP status 400: Bad Request"
Can anyone tell me why i am getting this Errr ...
Regards,
Perry
|
|
|
|
|
See this[^] answer. Not very helpful, I'm afraid, but that's how it is...
Peter the small turnip
(1) It Has To Work. --RFC 1925[^]
|
|
|
|
|
I'm using the
decimal for group totals in an application that exports financial data. The only calculation done on the total is accumulation; no multiplication, division, tax etc. In my output, I get a decimal total value of '13135984.162500000001985789145', where if I load the export file in Ecel and sum the values, none of which have beyond four decimal points with no explicit rounding, I get the same total as the control file I am comparing my export file to: '13135984.1625'.<br />
<br />
<br />
<br />
<div style="display:none;" class="CPhogPost"></div> <br />
<br />
<div class="ForumSig">Semicolons: The number one seller of ostomy bags world wide. - dan neely</div>
|
|
|
|
|
Anywhere in there that you cast to double? 29 precision looks like it has been converted to double somewhere.
|
|
|
|
|
I can't find anything. The only double I used in the whole project is in my PercentComplete event, totally unrelated to the totals. I'll have to go and sniff out what the database is returning.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
How are any numerical constants specified? The default format for numerical constants is double, so if you take your "decimal" number and add 1.3 to it, you'll really be adding something that isn't quite 1.3 and the "decimal" will capture that imprecision.
|
|
|
|
|
There are no constants, but I'm going to look at the data type carried in from SQL Server. It looks to be decimal for money fields, but their may be are 'money' fields that are not money but float, which the CLR converts to doubles.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
We're developing a new application framework and need to implement a script host so custom logic can be added at several places in the application. As a test, I put in the IronPython script host and it worked well. However, I'd rather use a language like JScript/JavaScript because it is a little more common. I have read that the DLR will support JScript eventually, but only IronPython by the end of the year.
We really need to be able to run these scripts in a sandbox environment, giving the script host access to the objects and methods that we want the users to have.
Does anyone know of a great script hosting solution for .Net?
|
|
|
|
|
You can execute script using ActiveScript technology. It works. Another great thing with this, WinForm components properties can be accessed like if they were ActiveX. Page me directly if you need to know more about this.
1. I will develop myself to the maximum of my potential in all ways
2. I will look for the good in all people and make them feel worthwhile.
3. If I have nothing good to say about a person, I will say nothing.
4. I will always be as enthusiastic about the success of others as I am about my own.
5. I will always remain loyal to God, my country, family and my friends - Chuck Norris
Ernest Laurentin
|
|
|
|