I am trying to setup my winforms app to run in a remoting environment but am getting a 401 error which I can seem to solve and am hoping someone else may have a solution.
I have the dataportal setup to run in its own Application Pool using .net 2.0. The Application Pool is using the Network Service identity. A portion of my web.config file is:
<appSettings>
<add key="CslaAuthentication" value="CSLA"/>
</appSettings>
<connectionStrings>
<add name="DBName" connectionString="Data Source=SQLServer;Initial Catalog=MyDB;Integrated Security=True"/>
<add name="Security" connectionString="Data Source=SQLServer;Initial Catalog=MyDB;Integrated Security=True"/>
</connectionStrings>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="SingleCall" objectUri="RemotingPortal.rem" type="Csla.Server.Hosts.RemotingPortal, Csla"/>
</service>
<channels>
<channel ref="http">
<serverProviders>
<provider ref="wsdl"/>
<formatter ref="soap" typeFilterLevel="Full"/>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
I have added NT AUTHORITY\NETWORK SERVICE as a login to SQL Server and also as a user of the database.
Any help solving this would be appreciated as I have spent for too much frustrating time on this already.
Thanks!
Copyright (c) Marimer LLC