Unexpected behavior using ConstructionEnabled attribute

G

Guest

I am using the ConstructionEnabled attribute to pass in a SQL connection
string.

<Transaction(TransactionOption.RequiresNew), _
ConstructionEnabled([Default]:="Data
Source=mymacinename\NetSDK;Integrated Security=SSPI; Initial
Catalog=mydatabase"), _
JustInTimeActivation(True)> _
Public Class MyServicedComponent
Inherits ServicedComponent

Private myConnectString As String

Protected Overrides Sub Construct(ByVal constructString As String)
myConnectString = constructString
'otherstuff follows
End Sub

My tracelog shows that constructString contains the string "Data
Source=localhost\NetSDK;Integrated Security=SSPI; Initial
Catalog=mydatabase". What is causing this replacement
(mymachinename->localhost) within the connection string?

Thanks
 
G

Guest

SORRY for the repost. I received an error with my first attempt and didn't
think it was sent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top