Hi Juan
[...]
Kevin, who was only trying to point out to you that System.Environment
is available as a .Net resource, seems a bit unfair on your part.
OK, excuse me. It was not my intention...
But, if you read my first post, you can see that I already knew
System.Environment class.
It's easier to catch flies with honey than with vinegar.
After all, he was only trying to help you.
Yes, I know. And I appreciated this.
That said, what I'd like to know is *how* a hosting provider
can block requests to the System namespace, since that
namespace ( which includes System.Environment.MachineName )
is needed in order for the .NEt Framework to work,
since many internal processes use that namespace.
I'm going to explain this...
Environment.MachineName requires "EnvironmentPermission" as
"Unrestricted"...
I've never heard of turning off access to
individual classes within a namespace, either.
...so, hosting providers can turn off access to Environment.MachineName,
using restricted permissions for the Pool Identity user.
Thank you.
Bye!
Stefano