iis

IIS HTTP Error 500: The requested Page cannot be accessed because related configuration data is invalid [duplicate]

那年仲夏 提交于 2021-02-07 13:12:58
问题 This question already has answers here : MVC 6 Hosted on IIS HTTP Error 500.19 (3 answers) Closed 4 years ago . I have successfully published an ASP.NET Core website on IIS (version 10) on my local machine (Windows 10) and browsed it. However, when I deploy it on IIS on another PC (using same versions), it gives HTTP Error 500.19 : I am using the same Web.config and IIS_IUSRS has permissions on both the virtual directory and config file. I also added the permission for the app pool `IIS

AWS SDK for .NET can't access credentials with IIS

二次信任 提交于 2021-02-07 12:51:05
问题 I'm having some trouble accessing the AWS credentials in the SDK Store, but it seems to only be a problem when running under IIS. If I hit the same code by invoking an NUnit test with ReSharper the dependency injection works and the S3 client is able to authenticate. IAmazonS3 s3Client = new AmazonS3Client(); Has anyone else run into this problem? How were you able to get the dependency injection to work? [Edit] The credential file approach has been recommended for use with IIS because the

How to start a process from an IIS hosted WCF service?

試著忘記壹切 提交于 2021-02-07 12:14:32
问题 I would like to run a process from an intranet client on the WCF service side. In my case a client asks a server to create a new process on the server's machine under the provided credentials. WCF service is hosted on IIS 7.5 and I start a process using this code var processInfo = new ProcessStartInfo("C:\\Windows\\System32\\notepad.exe") { UserName = "some user", Password = MakeSecureString("some password"), UseShellExecute = false, LoadUserProfile = true }; Process process = Process.Start

How to start a process from an IIS hosted WCF service?

时光毁灭记忆、已成空白 提交于 2021-02-07 12:14:32
问题 I would like to run a process from an intranet client on the WCF service side. In my case a client asks a server to create a new process on the server's machine under the provided credentials. WCF service is hosted on IIS 7.5 and I start a process using this code var processInfo = new ProcessStartInfo("C:\\Windows\\System32\\notepad.exe") { UserName = "some user", Password = MakeSecureString("some password"), UseShellExecute = false, LoadUserProfile = true }; Process process = Process.Start

Where does console output go in an IIS hosted app?

微笑、不失礼 提交于 2021-02-07 11:40:35
问题 Say I have a WCF app hosted in IIS. And in that app I run this line of code: Console.WriteLine("Testing, testing 1 2 3"); Where will that be written to? Or is it ignored and just lost? Is there someway to capture it when needed? 回答1: Nowhere. More specifically: NullStream , which is defined as "A Stream with no backing store.". All the methods do nothing or return nothing. It is an internal class to Stream . The following code is taken from Microsoft's source code. Basically, when one of the

Where does console output go in an IIS hosted app?

一曲冷凌霜 提交于 2021-02-07 11:40:03
问题 Say I have a WCF app hosted in IIS. And in that app I run this line of code: Console.WriteLine("Testing, testing 1 2 3"); Where will that be written to? Or is it ignored and just lost? Is there someway to capture it when needed? 回答1: Nowhere. More specifically: NullStream , which is defined as "A Stream with no backing store.". All the methods do nothing or return nothing. It is an internal class to Stream . The following code is taken from Microsoft's source code. Basically, when one of the

Ionic NTLM Authentication - IIS

一笑奈何 提交于 2021-02-07 10:10:17
问题 I am building an iOS mobile application using the Ionic framework. The app will be accessing APIs that will be served by an ASP.NET 5 (MVC 6) application hosted on IIS using Integrated Windows Authentication. The server already has a web interface to it that uses an AngularJS client. I have been trying to get a $http call to the server from within an Ionic/Angularjs controller and have had no luck getting through the IIS Integrated windows authentication (I have tried running on the device

IIS document root in subfolder

旧城冷巷雨未停 提交于 2021-02-07 09:16:13
问题 Hey, I have a PHP Windows Azure project but I am new to IIS. I have my PHP libs in root folder and client files like index.php, style sheets or javascripts in a subfolder called document_root. How can I set up IIS 7 (probably using Web.config) to use the document_root as the default folder for the site (making the root invisible) so i can call mydomain.tld/ instead of mydomain.tld/document_root/ I have used: <defaultDocument> <files> <clear /> <add value="document_root/index.php" /> </files>

IIS document root in subfolder

南笙酒味 提交于 2021-02-07 09:14:18
问题 Hey, I have a PHP Windows Azure project but I am new to IIS. I have my PHP libs in root folder and client files like index.php, style sheets or javascripts in a subfolder called document_root. How can I set up IIS 7 (probably using Web.config) to use the document_root as the default folder for the site (making the root invisible) so i can call mydomain.tld/ instead of mydomain.tld/document_root/ I have used: <defaultDocument> <files> <clear /> <add value="document_root/index.php" /> </files>

Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits

做~自己de王妃 提交于 2021-02-07 05:53:05
问题 I have an Asp.NET Core app with no special setup of DataProtection stack - just AddMvc. While everything works on IISExpress/(Kestrel), on the IIS server I got this error: 11/23/2016 18:50:14:warn: Microsoft.AspNetCore.Session.SessionMiddleware[7] Error unprotecting the session cookie. System.Security.Cryptography.CryptographicException: The key {6d00462a-ba7f-4f65-bb36-711605de93f2} was not found in the key ring. at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector