ServiceConfig not supported on this platform - MS Press

  • Thread starter Thread starter Bill Dodd
  • Start date Start date
B

Bill Dodd

Oh dear, Microsoft. Please if we need to contact you for
bad content in your books. Pease make it easy, I have been
sent to the same webpage at least 5 times through
different directions..
Whoever is mediating on this forum, can you make sure the
right department gives me an answer:-
MS Press 0-7356-1891-7 101 VB .Net applications. First
example, after following non clear method of loading
example databases etc. I get a ServiceConfig not supported
on this platform when running the example 101 on Chapter
1. Yes its the latest version of SQL server for developer
and the latest service pack.
Please help as the book is useless if the samples don't
work and one has spent upwards of 5 hours downloading
associated MS packages, and about 2 days double checking
against bad setup instructions.

Please help.

Many thanks
 
* "Bill Dodd said:
Oh dear, Microsoft. Please if we need to contact you for
bad content in your books. Pease make it easy, I have been
sent to the same webpage at least 5 times through
different directions..
Whoever is mediating on this forum, can you make sure the
right department gives me an answer:-
MS Press 0-7356-1891-7 101 VB .Net applications. First
example, after following non clear method of loading
example databases etc. I get a ServiceConfig not supported
on this platform when running the example 101 on Chapter
1. Yes its the latest version of SQL server for developer
and the latest service pack.
Please help as the book is useless if the samples don't
work and one has spent upwards of 5 hours downloading
associated MS packages, and about 2 days double checking
against bad setup instructions.

Do you have a code snippet?
 
Private Sub btnSimpleUsage_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnSimpleUsage.Click
Dim config As New ServiceConfig
config.TrackingEnabled = True
config.TrackingAppName = "EntSrv"
ServiceDomain.Enter(config)
'COM+ Available here
ServiceDomain.Leave()
End Sub

pp 12++. The yellow bar and error message was on the Dim Config line
 
* Bill Dodd said:
Private Sub btnSimpleUsage_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btnSimpleUsage.Click
Dim config As New ServiceConfig
config.TrackingEnabled = True
config.TrackingAppName = "EntSrv"
ServiceDomain.Enter(config)
'COM+ Available here
ServiceDomain.Leave()
End Sub

pp 12++. The yellow bar and error message was on the Dim Config line

I don't have the book, but what is 'ServiceConfig'? It's not included
in the .NET Framework...
 
Bill,
Are you running a XP? ServiceConfig may utilise something exclusive to
COM+1.5 which I think is XP only, although I could be wrong (in which case
it would be 2000 at the very least). Ensure you've got the COM+ Service
correctly installed on your machine also, as it *may* be an optional
component (slap in your Windows CD to install it if you haven't).

Finally, ServiceConfig is only available in .NET 1.1, so you of course need
the latest version of the framework. I know that your code most likely
wouldn't even compile against v1.0 due to the likely absence of
ServiceConfig, but it is possible that it's one of those "NotImplemented"
areas that MS put into v1.0 and actually implemented in 1.1 (unlikely, but
possible).

Cheers,
Alex Clark
 
Back
Top