Webrequest permission is denied

R

rashid.anwer

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.

thanks..

Rashid
 
K

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?

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
R

rashid.anwer

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

I am quoting the error below:
<QUOTE>
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=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
</QUOTE>

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

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.
Rashid
 

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

Top