ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / .Net functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the error for the last .Net procedure that failed.
Note This procedure was carried out by function DotNetRun or DotNetRunXML.
Example
// Cet exemple est basé sur la présence du module eightball sur le site "www.gotdotnet.com".
// Si le module n'était plus disponible sur le site, l'exemple ne fonctionnerait plus
DotNet.Value[1] = "mettre ici une question, en anglais de préférence " + ...
	"pour le fun de l'exemple : que pourra-t-on nous répondre ?"
DotNet.Name[1] = "psQuestion"
DotNet.Type[1] = DotNetStringType
IF DotNetRun("www.gotdotnet.com/playground/services/EightBall/eightballws.asmx", ...
		"Ask", "http://tempuri.org/","http://tempuri.org/Ask") = True THEN
	Info(DotNetGetResult(DotNetResult))
ELSE
	IF DotNetError(DotNetErrMessage) ~= "" THEN
		Error(ErrorInfo()) 
	ELSE
		Error("Erreur DotNet : " + DotNetError(DotNetErrMessage))
	END
END
Syntax
<Result> = DotNetError(<Type of error>)
<Result>: Character string
  • Error of the last .Net procedure that failed.
  • An empty string ("") if:
    • no error was returned by the server,
    • no connection was established to the server.
<Type of error>: Constant
Type of error to return:
DotNetErrActorURL of the server that triggered the error (useful if the procedure is run by several servers).
DotNetErrCodeError of the last .Net procedure run:
  • "VersionMismatch": The DotNet version used on the current workstation is different from the one used on the server.
  • "MustUnderstand": The server does not understand the parameter specified in the header (only if the parameter <Procedure Execution> in the header is set to True).
  • "Client": Incorrect settings for procedure execution.
  • "Server": The server has not executed the Procedure.
Remark: This string can be completed with additional information.. The following format is used: "<Error>.<Information>". For example: "Client.Authentication" if the error is due to client authentication.
DotNetErrDetailsError details. This message is in XML format.
DotNetErrMessageError message returned by the server on the last .Net procedure run.
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help