Webrequest permission is denied



We have pro hosting on networksolutions for an ecommerce site.

We are trying to connect to authorize.net via webrequest. It seems
that NetworkSolutions has medium trust level and overriding is not
allowed. ( I have tried to change trust level and add the url in the
webrequest in web.config but nothing works)

The issue has been pending for over a month now. we have called
NetworkSolution many times. They are not replying via the email
support as well.

I have searched the web and the groups and didnt find any working
solution for the problem .
Btw opening the page via socket is also not permissible.

Does any one know about alternatives ????

Can any body help... Any help will be appreciated.



Kevin Spencer

You seem to have diagnosed the source of the problem without letting us in
on the symptoms. What exactly is going wrong when you run your application?


Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:


Sorry Spencer...
I must be too much frustrated .

I am quoting the error below:
Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the
required permission please contact your system administrator or change
the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Net.WebPermission, System, Version=,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I have tried chaning the trust level but override is not allowed.
i have also tried adding
<add prefix="http"
type="System.Net.HttpRequestCreator, System,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />

in the web.config.. but that does not seem to work either..
The hosters NS does not offer much help. I have placed so many calls
and emailed them many times..

Can any one suggest with the updated post.

thanks in advance.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question