Connecting from within global.asax

Last post 06-23-2009 6:58 AM by gdmccarty-w. 3 replies.

Sort Posts:

  • Connecting from within global.asax

    06-16-2009, 2:05 PM
    • Member
      point Member
    • gdmccarty-w
    • Member since 06-16-2009, 1:55 PM
    • Posts 3

    I'm attempting to make a connection to a LDAP server from within global.asax.  I'm using a class lib dll I made.  Works great in a test program.

     Running on the same box, same credentials, etc., the call from within global.asax gives me 'LDAP server is unavailable'.  When I look at the LDAP log, it shows no connection activity.

     I think I'm being denied by .net security, but I don't know where to look.

     Any suggestions?

    GregM
  • Re: Connecting from within global.asax

    06-16-2009, 10:25 PM

     try adjusting DNS configuration settings. Also, check if you are using the correct port.

    Please Mark as Answer, if you find this helpful.
  • Re: Connecting from within global.asax

    06-17-2009, 8:20 AM
    • Member
      point Member
    • gdmccarty-w
    • Member since 06-16-2009, 1:55 PM
    • Posts 3

    It's neither DNS or wrong port.

     I had two test.  One using global.asax and one using a web page.  Each called the same class library.  Running one after the other resulted in the global.asax test failing while the web page test succeeded.  So it doesn't seem to be the code.  I suspect it's a security setting.  I suspect this because the global.asax is running under SharePoint, that doesn't run under full trust.

     Just looking for some ideas of where to research this.

    GregM
  • Re: Connecting from within global.asax

    06-23-2009, 6:58 AM
    • Member
      point Member
    • gdmccarty-w
    • Member since 06-16-2009, 1:55 PM
    • Posts 3

    Ok, problem wasn't related to connections at all.  In my code I was attempting to use a cert from the Windows cert store.  I didn't have the proper credentials to access the cert (sort of).  Then, when I used an incomplete cert in the ldap call, it failed.

    GregM
Page 1 of 1 (4 items)