Remoting Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron L

    Remoting Problem

    We are working on a distributed VB.Net application which will access a SQL
    database located on a known server. Each client will run on the user's
    local machine. To implement this, we are trying to use remoting for our
    access to the SQL server, with the remoting being via IIS. Since all of our
    users will have accounts in the destination domain, we want to have IIS
    handle the security for us and not allow anonymous. We have set this up
    with one of our development clients and servers, but when we try to connect
    we get the following error message:
    An unhandled exception of type 'System.Net.Web Exception' occurred in
    mscorlib.dll

    Additional information: the remote server returned an error: (401)
    Unauthorized.



    Our configuration is this:
    Component Running on
    Module1 the development machine
    RemotingTest IIS on the development machine
    NorthWind DB SQL Server on another server

    IIS is configured for Windows Authentication, and the directory with the
    RemotingTest object has "Script Source Access" set and the Execute
    Permissions are set to "Scripts and Executables". We have also tried with
    setting IIS to Allow Anonymous, which moves the error out to the SQL
    connection (with the error message of "can't make a connection for user
    NULL"). Even if anonymous did work, it would be a problem for us since the
    application we are using requires the username to be accessible.

    The SQL server is in a different domain from development machine, however a
    trust relationship exists between the two domains. We have verified that
    the trust works by opening the NorthWind database in Enterprise Manager on
    the development machine.

    Can anyone tell us what we are doing wrong here?



Working...