HELP! Web Services Permissions/Security Settings problem

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default HELP! Web Services Permissions/Security Settings problem

    Hie,

    I have developed some codes both in C# and VB using CDO
    and ADO,which work perfectly fine in a windows
    application, but they donot seem to work in a web services
    application.
    I am using the .NET platform with win 2k server and
    exchange 2k server, with service pack 2.

    The small code part is as follows(which works okay in a
    windows application but not in a ASP NET web service web
    method. Is it that my machine security/settings policies
    need to be changed??? );

    ADODB.Connection EmailCon=new ADODB.Connection();
    EmailCon.Provider ="ExOLEDB.Datasource";
    ADODB.Record EmailRec=new ADODB.RecordClass();
    ADODB.Recordset EmailRs=new ADODB.RecordsetClass ();
    string strInboxQuery,strURLInbox, strURLMailbox,
    strUserName,strPassword;
    ADODB.Fields Flds;
    ADODB.Field Fld;
    strUserName="admin";
    strPassword="adminpass";
    strURLMailbox="file://./backofficestorage/mytestdomain.com/
    MBX/" + strUserName;
    /*THROWS EXCEPTION HERE IN ASP .NET WEBSERVICES APPLICATION
    /*EXCEPTION IS "Authentication Failed" while the same code
    works for a forms(windows application)*/

    EmailCon.Open(strURLMailbox,strUserName,strPasswor d,0);

    EmailRec.Open( strURLMailbox,EmailCon ,
    ADODB.ConnectModeEnum.adModeReadWrite,
    ADODB.RecordCreateOptionsEnum.adFailIfNotExists,
    ADODB.RecordOpenOptionsEnum.adOpenSource, strUserName,
    strPassword);

    strURLInbox = EmailRec.Fields
    ["urn:schemas:httpmail:inbox"]. Value. ToString () ;






    Usman Shami Guest

  2. Similar Questions and Discussions

    1. Change Flash Security Settings? Security ManagerOffline?
      Hello I have downloaded firefox and flash player, I have content which when I run it, flash blocks it wisely and reports that the page is trying...
    2. Regional settings and web services
      I have a web service which returns a dataset. This web service is called by a windows form. If i open the application, change the regional settings...
    3. Security permissions...
      I an attempting to serialize a custom exception class that is derived from System.Exception during runtime. I am getting a the following security...
    4. Problem with security permissions on new folder
      Hi Andy, try with this article: http://support.microsoft.com/default.aspx?scid=kb;en-us;322293 I hope it solves your problem... -- Mike...
    5. problem with security settings (trusted sites)
      Hi Whenever I visit windowsUpdate or hotmail I get the message that I have to change the security settings of Internet Explorer. The security...
  3. #2

    Default HELP! Web Services Permissions/Security Settings problem

    Hie,

    I have developed some codes both in C# and VB using CDO
    and ADO,which work perfectly fine in a windows
    application, but they donot seem to work in a web services
    application.
    I am using the .NET platform with win 2k server and
    exchange 2k server, with service pack 2.

    The small code part is as follows(which works okay in a
    windows application but not in a ASP NET web service web
    method. Is it that my machine security/settings policies
    need to be changed??? );

    ADODB.Connection EmailCon=new ADODB.Connection();
    EmailCon.Provider ="ExOLEDB.Datasource";
    ADODB.Record EmailRec=new ADODB.RecordClass();
    ADODB.Recordset EmailRs=new ADODB.RecordsetClass ();
    string strInboxQuery,strURLInbox, strURLMailbox,
    strUserName,strPassword;
    ADODB.Fields Flds;
    ADODB.Field Fld;
    strUserName="admin";
    strPassword="adminpass";
    strURLMailbox="file://./backofficestorage/mytestdomain.com/
    MBX/" + strUserName;
    /*THROWS EXCEPTION HERE IN ASP .NET WEBSERVICES APPLICATION
    /*EXCEPTION IS "Authentication Failed" while the same code
    works for a forms(windows application)*/

    EmailCon.Open(strURLMailbox,strUserName,strPasswor d,0);

    EmailRec.Open( strURLMailbox,EmailCon ,
    ADODB.ConnectModeEnum.adModeReadWrite,
    ADODB.RecordCreateOptionsEnum.adFailIfNotExists,
    ADODB.RecordOpenOptionsEnum.adOpenSource, strUserName,
    strPassword);

    strURLInbox = EmailRec.Fields
    ["urn:schemas:httpmail:inbox"]. Value. ToString () ;


    Usman Shami Guest

  4. #3

    Default HELP! Web Services Permissions/Security Settings problem

    Hie,

    I have developed some codes both in C# and VB using CDO
    and ADO,which work perfectly fine in a windows
    application, but they donot seem to work in a web services
    application.
    I am using the .NET platform with win 2k server and
    exchange 2k server, with service pack 2.

    The small code part is as follows(which works okay in a
    windows application but not in a ASP NET web service web
    method. Is it that my machine security/settings policies
    need to be changed??? );

    ADODB.Connection EmailCon=new ADODB.Connection();
    EmailCon.Provider ="ExOLEDB.Datasource";
    ADODB.Record EmailRec=new ADODB.RecordClass();
    ADODB.Recordset EmailRs=new ADODB.RecordsetClass ();
    string strInboxQuery,strURLInbox, strURLMailbox,
    strUserName,strPassword;
    ADODB.Fields Flds;
    ADODB.Field Fld;
    strUserName="admin";
    strPassword="adminpass";
    strURLMailbox="file://./backofficestorage/mytestdomain.com/
    MBX/" + strUserName;
    /*THROWS EXCEPTION HERE IN ASP .NET WEBSERVICES APPLICATION
    /*EXCEPTION IS "Authentication Failed" while the same code
    works for a forms(windows application)*/

    EmailCon.Open(strURLMailbox,strUserName,strPasswor d,0);

    EmailRec.Open( strURLMailbox,EmailCon ,
    ADODB.ConnectModeEnum.adModeReadWrite,
    ADODB.RecordCreateOptionsEnum.adFailIfNotExists,
    ADODB.RecordOpenOptionsEnum.adOpenSource, strUserName,
    strPassword);

    strURLInbox = EmailRec.Fields
    ["urn:schemas:httpmail:inbox"]. Value. ToString () ;

    Usman Shami Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139