Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

sql command in web part library template

  Asked By: Samir    Date: Nov 16    Category: Sharepoint    Views: 6201

i am trying to acess data base from my cusom web part

the piece of code for connection is working fine when i use it as
ASP web

but when i use the same in web part library template it is not
giving the

i made trust level as WSS_Medium

and in assembly info.cs i have added the following line

[assembly: AllowPartiallyTrustedCallers()]

i would like to know is there any other technique to be followed

can anyone please give the solution



1 Answer Found

Answer #1    Answered By: Doris Leach     Answered On: Nov 16

Are you working  on a server that it would be safe to set the trust  level to
Full? If so, have you tried that to see if the connection  will succeed?

Didn't find what you were looking for? Find more on sql command in web part library template Or get search suggestion and latest updates.