|
I am having an interesting, but very annoying problem related to making web service requests from .NET to a Perl SOAP::Lite web service that is running on Linux. Here is the situation:
(1) In most cases, we are able to make web service calls from ASP.NET to the Perl web service just fine. There may be problems, but the test methods that we've tried seem to work fine.
(2) A .NET console application is able to make calls to the Perl web service without any visible problems.
(3) The problem comes in when the Perl web service throws a SoapException. When this happens and the web service was called from the ASP.NET client, a System.Runtime.Serialization.SerializationException is thrown that says the following:
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in Unknown Module.
Additional information: The type System.Web.Services.Protocols.SoapException in Assembly System.Web.Services, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f57f11d50a3a is not marked as serializable.
What is confusing is that we can make make the same call from a .NET console application to the Perl web service and it works properly, throwing a SoapException.
In each of the clients (ASP.NET & .NET console app), a web reference to the Perl web service was created the exact same way in Visual Studio based on a WSDL file, so there are no apparent differences in that area.
In summary, we are finding a difference in behavior between an ASP.NET client and a .NET console application and I can't figure out what the difference is between them.
If anyone has any suggestions or information on this, it would be most appreciated.
Thank you,
Clark Laughlin
|
|
|
|
|
hi,
Now, I'm developing installer using VS.net 2003.
When I installed, I would like to create directory except
for target directory.
for example,
c:\test <-- this is target directory
d:\test\test2 <-- my gole
The package installer have a function to create custom directory. But this directory create below target directory.
I looked for other function, but i couldn't do.
If you have some solution, please tell me.
And If you know some sites about Package installer,
please tell me.
best regards,
yu-yu
|
|
|
|
|
Use custom actions. Set the InstallerClass property to True, Then add a Insaller class to your app, and there are some methods that you can override (Ex. Install, Commit, Rollback). Add your code to create the directory (what ever you want) to this Installer class. I think this will do the job.
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
Mr.UB
thank you for your advice.
I resolved!
but I have some problem (ex. how to get install path).
If you have some solutions, please tell me.
thank you in advance for your kindness.
best regards,
yu-yu
|
|
|
|
|
Try System.Configuration.Install.Installer class's Context member. It is a type of InstallContext class which has a member - Parameters . With this you can get the command line parameters. I haven't try this, but you might be able get the install path with this. Pls let me know if this works.
Good Luck !
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
Dear UB
thank you for your advice.
Today, I will try this, so as a result of this,
i will announce you.
Anyway, I have a trouble.
I think you have many .Net knowledge, so could i ask you
my question?
I develop package installer, i set shortcut icon on my desktop.
After installed, i clicked this.
Then installer dialog( prepared install, canceled install)
appeared, and application was running.
I checked shortcut property. I noticed that this link was package installer msi file name.
When i clicked this, at first this check msi file, next check application.
I'd like to run application smoothly.
If you have some solutions, please tell me.
best regards,
yu-yu
|
|
|
|
|
Dear UB,
I resolved this.
I set Argument of shortcut property exe file name,
so I click shortcut, exe file run.
thank you.
yu-yu
|
|
|
|
|
I don't know the way you created that shortcut, but if you do it as follows then you shouldn't be having any problem.
1. Create a "primary output file" (your main exe file) in the "Application Folder" of your setup project.
2. Inside the Application folder right click the added primary output file and choose "Create shortcut" from the menu.
3. Drag & Drop the newly created shortcut to "User's Desktop" folder.
If you've done this the above way and still having the problem then I'm sorry, I don't have an answer to that.
Good Luck !
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
Dear UB
My case is different from yours.
My case didn't include exe file project in installer project.
Your case include this in installer project.
I believed this success, but today, I noticed a thing.
When I changed install path on install menu, I couldn't run
application smoothly. I tried to develop your case(the way
including exe file project in installer project).
But the same error occuered.
Now I'm looking for this solution.
If you look for this, please tell me how to do.
best regards,
yu-yu
|
|
|
|
|
I'm sorry, I still can't understand your problem, anyway here goes nothing.
1. If you have your Application project and the setup project under the same solution, then you can add the project output to the Application Folder in the setup project, and make shortcut then move it to the User's Dekstop folder in the setup project.
2. If you've created your setup project under a different solution then you can follow the above procedure, but instead of adding project output, right click the Application Folder and get Add-->File, and add what ever the files you want to add (EXEs, DLLs).
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
Dear UB,
I'm sorry, I'm luck of my explanation.
In my case,
At first I made some applications(exe files) using C# windows projects( a exe per project(solution)).
Next I made an install project using package wizard.
Then I included exe files only in this project and
I made one shortcut of them in Application Folder.
Build this.
When I installed default install path, a shortcut link exe file,
but when I installed defferent install path, a shortcut didn't link exe file.
Now I am looking for some solution.
Best Regards,
yu-yu
|
|
|
|
|
Sorry for being such an idiot. It's not your fault, it's my fault that I couldn't understand your problem.
So here goes.
I just tried it your way, I added two exe files, and created shortcuts for both of them and installed to default path, and to a custom path, but I wasn't having any problem, the two shortcuts worked just fine, for both ways. (I also checked - the shortcuts were linked to the correct path/file)
If it is possible here's a suggestion.
Try to get all your projects under one solution, then to that same solution add another setup project, then instead of adding files to Application Folder add project output of each project. If you are still having problems post your message to a new thread, I'm sure some one else will give you a good solution.
Good Luck!
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
Dear UB,
thank you, I looked for this cause. This is a function in Dll.
My installer called a dll. This dll have some functions.
One of them is the deleting installed files.
I used a dll except for a function deleting installed files,
so I could run application both install default path and custome path.
thank you for your advices,
best regards,
yu-yu
|
|
|
|
|
Hi yu-yu
You are most welcome. Glad you found the problem. Now you are a real pro in making installers .. ha?
Take care.
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
Dear UB,
I tyied this, I got install path.
Context.Parameters have the value of CustomActionData, assemblypath ....
best regards,
yu-yu
|
|
|
|
|
Just a quick question. Does the .NET Framework have any provisions for Single precision mathematics? I notice all the methods in the Math class take Double precision floating points, and I would like to keep my application pretty speedy, as it uses a large amount of these methods hundreds of times a second. I just don't need double precision math.
Thanks in advance.
--
Rob Hutchinson
|
|
|
|
|
The following line of C# code
using System.Data.OracleClient; generates the following error.
error CS0234: The type or namespace name 'OracleClient' does not exist in the
class or namespace 'System.Data' (are you missing an assembly reference?) I'm pretty sure that the resolution is to specify an assembly reference, but reference to what and how do you do that? Thanks. Incidentally I'm using version 1.1 of the .NET Framework, so the namespace 'OracleClient' is supposed to be there.
This begs a bigger question of why do some libraries require an assembly reference and others don't and how is a developer supposed to recognise this difference?
Chris Meech
It's much easier to get rich telling people what they want to hear. Christopher Duncan
I can't help getting older, but I refuse to grow up. Roger Wright
I've been meaning to change my sig. Thanks! Alvaro Mendez
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
|
|
|
|
|
After about 1/2 hour digging through the SDK documentation, I've got my answer. In order to use the namespace System.Data.OracleClient, I must compile with a reference to the assembly that implements the namespace. This assembly is noted on the documentation for all of the classes implemented in the namespace. The assembly reference is provided as a compile time command line option as follows
csc whatever.cs /reference:System.Data.Oracleclient.dll
Chris Meech
It's much easier to get rich telling people what they want to hear. Christopher Duncan
I can't help getting older, but I refuse to grow up. Roger Wright
I've been meaning to change my sig. Thanks! Alvaro Mendez
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
|
|
|
|
|
Is that the microsoft OracleClient ??
I've been using the Oracle OracleClient, and had the same problem. I found the solution adding the assembly myself to the GAC.
Free your mind...
|
|
|
|
|
Guillermo Rivero wrote:
Is that the microsoft OracleClient ??
That is correct. It is part of the 1.1 version of .NET
Guillermo Rivero wrote:
adding the assembly myself to the GAC.
The GAC. What is this? Is it part of Visual Studio .NET?
Chris Meech
It's much easier to get rich telling people what they want to hear. Christopher Duncan
I can't help getting older, but I refuse to grow up. Roger Wright
I've been meaning to change my sig. Thanks! Alvaro Mendez
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
|
|
|
|
|
GAC = Global Assembly Cache
And is not part of VS, is part of the Framework...
Free your mind...
|
|
|
|
|
Thanks. I'll dig into the doc's to learn more about GAC.
Chris Meech
It's much easier to get rich telling people what they want to hear. Christopher Duncan
I can't help getting older, but I refuse to grow up. Roger Wright
I've been meaning to change my sig. Thanks! Alvaro Mendez
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
|
|
|
|
|
If you are using Oracle, I suggest you to use the OracleData Provider.
It's built by Oracle people, so, it supports Oracle "better"
Free your mind...
|
|
|
|
|
I need a book/document/article/website that could detail (regardless of the programming language, if required for examples) how the Windows operating system exactly works internally.
Is there such a thing? I believe I cannot become a better programmer until I start understanding this: how the OS I'm coding for is actually behaving/responding to this code.
Sammy
"A good friend, is like a good book: the inside is better than the cover..."
|
|
|
|
|
I don't think that is necessary. If you don't know how an operating system works then a book that describes in general the workings and functions of an operating system will do.
If you are writing code that will interact with the operating system at a low level then a more specialised book will become necessary (e.g. if you are going to write hardware drivers). However, if all you are going to do is write business applications then knowing how to deal with SQL Server will be much more useful.
As a bit of personal history... When I started writing software after a while I came to a similar conclusion, however I have never found out "how the Windows operating system exactly works internally" - I doubt anyone really knows as it took several million man-hours to create - but what did make the difference was sometime after leaving University I was introduced to the concept of patterns. I read about them and came to realise that I was already using some of them without knowing, but I found more that I had never used or considered before and a whole new world opened up.
I think the question you need to ask yourself is: What sort of software do I want to write? or What sort of software does my employer want me to write? And from the answer you can work out what you need to know to do that effectively. For example, above I mentioned that learning about SQL Server would serve you better in a business application world. Also learning about DirectX would serve you better if you are going to write games.
--Colin Mackay--
EuroCPian Spring 2004 Get Together[^]
|
|
|
|
|