My webservice can not connect with database

Discussion in 'DNS/Domain names' started by Dritan Lena, Sep 16, 2011.

  1. Hi,
    I try to connect my webservice with database but appears a error in Winhost environment.
    My web service use adodbConnection As New ADODB.Connection.
    the connectionstring is:
    "Provider=SQLOLEDB;Network Library=DBMSSOCN;Data,1433;Initial Catalog=DB_30290_a0012;User ID=*****;Password=******;"

    this connectionstring works correcty in my local environment.
    Anybody can help me?

    Thanks in advance
    Last edited by a moderator: Oct 14, 2015
  2. Elshadriel

    Elshadriel Winhost Staff

    Last edited by a moderator: Oct 14, 2015
  3. I've tried your example but is not work

    Of course i have tried the connectionstring in the example but is not work.

    the error message is:

    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers.
    at Service.getRecordSet(String sqlScript, String ID_KLIENTI)
    The action that failed was:
    The assembly or AppDomain that failed was:
    App_Code.70sxb7se, Version=, Culture=neutral, PublicKeyToken=null
    The Zone of the assembly that failed was:
    The Url of the assembly that failed was:
    file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/smiws/888360ff/a7c2d5af/App_Code.70sxb7se.DLL
    --- End of inner exception stack trace ---
  4. Elshadriel

    Elshadriel Winhost Staff

    Last edited by a moderator: Oct 14, 2015
  5. wouuuuu

    you guys are amazing.

    Thanks a lot.
  6. Elshadriel

    Elshadriel Winhost Staff

    Hello Tyomni,

    What's the error message you're getting?
  7. Monitor Database


    My client wants to monitor the persons thats logins and logout in the database throught the Sql Server Managment Studio.

    Winhost offer this service.

    Thanks in advance

Share This Page