I get a Security Permission error when trying to call a web service on a shared host or use my web service on a shared host. Any ideas how to make it work?
Sincerely,
Samu Zhang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Samu Zhang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
kahanu
Member
90 Points
147 Posts
Web service call doesn't work on Shared Hoster
Oct 20, 2007 08:46 PM|LINK
I get a Security Permission error when trying to call a web service on a shared host or use my web service on a shared host. Any ideas how to make it work?
Thanks,
Kahanu
MVC Central
http://www.mvccentral.net
Samu Zhang -...
All-Star
62163 Points
6101 Posts
Re: Web service call doesn't work on Shared Hoster
Oct 23, 2007 03:49 AM|LINK
Hi kahanu,
Try to add objProxy.credentials = System.Net.CredentialCache.DefaultCredential before you invoke the web service method.
__________________________________________________
Sincerely,
Samu Zhang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Samu Zhang
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Guang-Ming B...
Star
9049 Points
654 Posts
Re: Web service call doesn't work on Shared Hoster
Oct 25, 2007 08:58 AM|LINK
Hi kahanu,
Check if the Directory you accessing with the web service can be accessed with your current role.
You can config access rules in the web.config.
There is a detail secure permission of web service:
http://msdn2.microsoft.com/en-us/library/ms996415.aspx
Best regards,
Guang-Ming Bian - MSFT