Enabling STA in .cshtml

Discussion created by ssuman Employee on Sep 23, 2011
Latest reply on Sep 27, 2011 by ssuman



A customer is seeing errors while calling updatevalue and updatevalues calls for writing annotations to PI Server using SDK which leads us to believe he is running against issues related to the need of using a Single Threaded Apartment (or an STA). Customer is using .cshtml. In, you can enforce an STA by setting the AspCompat attribute to true:


<%@ Page AspCompat="true" ... %>

However, we are not sure how to do this for .cshtml.


Any inputs would be valuable,


Thanks much,