I am developing an MVC application using nHibernate; through VS the built-in web server the application starts without errors. When configuring and running through IIS7 on localhost, the application throws an SQlClientPermission exception after calling System.Data.SqlClient.PermissionDemand (SqlClient calls this internally)
I have included the application to run under full trust, but it does not seem to affect the result.
From the description, I assume that you are using Integrated Security in your connection string. Maybe something similar to the lines below.
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;
VS - .
IIS,
( , , )
Source: https://habr.com/ru/post/1735998/More articles:Session management and linking user accounts with OpenID, in ASP.NET - c #WinForm - WPF integration; Piece by piece - .netSQL is equivalent to LEFT JoIn? - sqljQuery animation background position in pieces? - jqueryUICatalog and Keyboard Events - iphoneHow can I keep my MVC views, models, and model bindings as clean as possible? - asp.net-mvcHow to transfer DDL changes from one environment to another? - sqlPlay video in SWT app? - swtWhy doesn't my .NET Windows service start automatically sometimes? - windowsLines in Objective-C ++ - objective-cAll Articles