Error deploying web service

L

Lucas Ponzo

I have used in many applications my library for sqlClient data access and
have no problem at the production server. Noe thye diference is:

I have an bussiness layer, that references sqlClient, and use the same
library as aI used many times that uses sqlClient too.

I built a web service, that consumes the bussiness layer and a web page that
consumes the web service.

On the local machine every thing works fine. But on the production server
the following exception was thrown:

Server was unable to process request. ---> Request for the permission of
type 'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

What is it and how to solve ?

I tryed:

[SqlClientPermission(System.Security.Permissions.SecurityAction.PermitOnly,
Unrestricted=true)]
before the class ...

System.Data.SqlClient.SqlClientPermission pSql = new
SqlClientPermission(System.Security.Permissions.PermissionState.Unrestricted);
pSql.Assert();

in the code ...

None work ... how to use these configurations and what can I do at server
side to put it to work ???

Thanks,
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top