The specified StreamInsight instance 'StreamInsight' could not be found or is not valid for this product.

已答复 The specified StreamInsight instance 'StreamInsight' could not be found or is not valid for this product.

  • 2012年3月8日 17:03
     
     

    Hi, 

    I just installed Stream Insight 2.0 and created a sample application. For some reason I'm not able to obtain server reference using Server.Create like this:

    using (Server server = Server.Create("StreamInsight"))'

    StreamInsight is the instance name I use when I connect using the event flow debugger and that works beautifully. My user domain\user already have access to the instance and is in the group necessary.

    Anyone know why I'm receiving this error:

    The specified StreamInsight instance 'StreamInsight' could not be found or is not valid for this product.

    Thanks again.


全部回复

  • 2012年3月8日 17:13
     
     已答复
    Created a new visual studio project and moved the code to that which worked. Must have something to do with the fact that I upgraded a 1.2 app to 2.0. 
    • 已标记为答案 mortenbpost 2012年3月8日 17:13
    •  
  • 2012年3月8日 19:00
     
      包含代码

    Before you created the new project did you do one of the following:

    - Update your existing 1.2 references to 2.0?

    OR

    - Set the assembly binding redirect to use the 2.0 assemblies?

    The binding redirect will look like the following:

    <runtime>
    	<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    		<dependentAssembly>
    			<assemblyIdentity name="Microsoft.ComplexEventProcessing" publicKeyToken="89845DCD8080CC91" culture="neutral"/>
    			<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="20.0.0.0"/>
    		</dependentAssembly>
    		<dependentAssembly>
    			<assemblyIdentity name="Microsoft.ComplexEventProcessing.Adapters" publicKeyToken="89845DCD8080CC91" culture="neutral"/>
    			<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="20.0.0.0"/>
    		</dependentAssembly>
    		<dependentAssembly>
    			<assemblyIdentity name="Microsoft.ComplexEventProcessing.ManagementService" publicKeyToken="89845DCD8080CC91" culture="neutral"/>
    			<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="20.0.0.0"/>
    		</dependentAssembly>
    	</assemblyBinding>
    </runtime>


    DevBiker (aka J Sawyer)
    My Blog
    My Bike - Concours 14


    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.