Hi ghouse_silver,
Based on your description. I understand that you want to find user’s IP address using code, but the program throws an exception.
My suggestion is as the followings:
- Implement a custom CAS policy for your web application.
- Require strongly naming for the DLL.
Here is a similar case for you to take a look:
Using custom CAS policy files in SharePoint 2010:
Please inform me freely if you have any questions.
Thanks,
Qiao Wei
TechNet Community Support
No comments:
Post a Comment