Arpita Dutta Arpita Dutta - 18 days ago 5
reST (reStructuredText) Question

Call to REST BASED service with Parameter value "CON" fails

I am using rest based service to perform DML operations.

Here is my client:

var resourcePath = DeleteSubApplicationUri.Apply("AppCode", AppCode);
var DeleteSubAppuri = resourcePath.Apply("SubAppCode", SubAppCode);
result = await RefAppServers.RestClient.PostAsync < string, SaveDataMessage >(DeleteSubAppuri, SubAppCode);


For
AppCode
value
"CON"
, the call is not reaching the service. I had to change it to some other value (i.e.
"CNT"
) to get it working. But May I know why the value
"CON"
is not allowing the service from being called? Is there any special inbuilt meaning for CON?

Answer

"CON" is a reserved filename on Windows: if you try and create a file or folder with that name it will fail.

See this question for a full list, and on MSDN for all the details.

Comments