Publishing the default visual studio ASP site on IIS everything is ok.
i set a windows autentification end with some effort in the top rigth corner i got Welcome MyDomain/MyAcount!.
Cool!
Later i had a simple EF query to the code (it work in local i get result) MyDomain/MyAcount exist as SQL windows account everything ok.
the probleme is when in application pool EF don't use the current user"MyDomain/MyAcount" that show in top rigth corner but use the pool user account "AUTORITE NT\NETWORK"
and it throw a nice autorisation error on page containing the EF query.
here my EF connection string:
<connectionStrings>
<add connectionString="metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=M35824\MSQL32BIT;initial catalog=UNITY_DB_PROD;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework"" name="UNITY_DB_PRODEntities" providerName="System.Data.EntityClient" />
</connectionStrings>
I don't want give rigth to "AUTORITE NT\NETWORK" in sql it would help but its not my need every query and stored procedure have to exec as the "conected user"