Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Which database are you using? (I've assumed MS SQL) Can you post the exception detail please?</p> <p>Here's an approach. </p> <ol> <li>First comment out the <code>using (TransactionScope)</code> / <code>scope.Complete</code> and try connect to the remote database - i.e. to ensure that your local Sql client is configured for TCP/IP, the remote server allows remote TCP/IP connections (usually port 1433), and that your login credentials and access are correct.</li> <li>DTC is usually only required when 2 or more connections are used. If you reinstate the TransactionScope, but then remove the NHibernate transaction, then DTC might not be required at all. Also note that TransactionScopes default to Read Serializable isolation - <a href="https://stackoverflow.com/questions/7120738/transactionscope-functions">TransactionScope functions</a></li> <li><p>Ensure that DTC is configured on both your PC and the Server to allow remote connections etc - <img src="https://i.stack.imgur.com/UCJKt.png" alt="picture">. </p> <p>You also need to tackle firewall issues <a href="https://stackoverflow.com/questions/5343924/dtc-firewall-requirements">DTC firewall requirements?</a></p></li> </ol> <p><strong>EDIT</strong></p> <p>By default, SQL Express isn't open to remote connections - on the remote server, you will need to enable TCP/IP on SQL Configuration Manager, open up the firewall for 1433 / 1434, and as @Özgür mentions, ensure that the SQL the browser service is running (or change your instance name, or change your connection string to use ip, port). More on this here : <a href="http://www.sevenforums.com/system-security/58817-remote-access-sql-server-express-2008-windows-7-a.html" rel="nofollow noreferrer">http://www.sevenforums.com/system-security/58817-remote-access-sql-server-express-2008-windows-7-a.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload