machine.config

The remote server returned an error: (407) Proxy Authentication Required

半腔热情 提交于 2019-12-17 17:35:15
问题 I'm getting this error when I call a web service: "The remote server returned an error: (407) Proxy Authentication Required". I get the general idea and I can get the code to work by adding myProxy.Credentials = NetworkCredential("user", "password", "domain"); or by using DefaultCredentials in code. My problem is that the call to the web service works in production without this. It seems like there is a non code solution involving Machine.config, but what is it? At the moment I can't get to

“When the site administrator has locked access to this section using <location allowOverride=”false“> from an inherited configuration file.”

半世苍凉 提交于 2019-12-13 14:01:08
问题 So I get this error when publishing my ASP.NET MVC application. It works fine locally: " This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file. I had this error before that I fixed: "System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." I used the

Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty

杀马特。学长 韩版系。学妹 提交于 2019-12-13 04:12:04
问题 I'm currently setting up my website on a new SQL Server 2008 server, however I'm getting the following error: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty. Source Error:

Override machine.config with web.config

这一生的挚爱 提交于 2019-12-12 18:44:25
问题 I have recently decided to move my connection strings to machine.config as this seems to be by far the most elegant approach for managing multiple environments. However, I would still like to be able to override these settings in my local web.config if the need arises (or the non-enlightened masses begin to complain). How can I override settings from machine.config in my web.config without getting a ConfigurationErrorsException because the value has already been set? 回答1: If you're trying to

C# Graphics.RotateTransform works on localhost, but not on remote server

懵懂的女人 提交于 2019-12-11 03:18:26
问题 It works on my machine... I have a problem with using a C# Graphics method on my ASP.NET web host. I'm combining two map pins into a single image. I load an empty pin image and write a number on top of it. I then combine two of these, having rotated one 15 degrees and the other -15 degrees. It looks fine running through my localhost web server: Expected http://harriyott.com/images/stackoverflow/expected.png I upload this to my shared server, and I get this instead: Actual http://harriyott.com

Processmodel Configuration in web.config

天大地大妈咪最大 提交于 2019-12-10 11:23:07
问题 To configure Process model for Asp.Net I have seen, asp-net-processmodel-configuration-optimization asp-net-processmodel-configuration This does not give me clear information and im having a scenario- i want to configure a custom processmodel for specific ASP.NET Webservice (i will put it in a separate App pool if needed) but other webservice/site in the IIS should use the default processmodel configuration that is exist in machine.config. My question is, Is it possible to configure a

The 'DbProviderFactories' section can only appear once per config file

两盒软妹~` 提交于 2019-12-10 02:30:56
问题 We are receiving this error when calling a WCF .net 4.0 service using entity framework. The 'DbProviderFactories' section can only appear once per config file It is the first app on the server using EF and other .net 4.0 WCF services are not receiving this error. Is there any way to correct this error with out editing the machine config file on the server? 回答1: Maybe you could create web.config entries which override any machine-wide settings you want changed. Described here: Override machine

IIS 7.5 - Change Application Pool Start Mode to Always Running

一曲冷凌霜 提交于 2019-12-09 13:05:27
问题 I have IIS 7.5 and I have installed the Application Initialization Module for it. Now, I am trying to change the StartMode of an application pool, but do not see the StartMode option in the IIS Manager. I have looked under Basic and Advanced Settings. I am thinking that the next place to edit this value would be in the Machine.Config. So, I have found that file, but I am unsure where the update would be placed in there. I believe it should be set to AlwaysRunning. Any help would be

Generate Machine Key using power Shell - Unrecognized Command

ⅰ亾dé卋堺 提交于 2019-12-08 09:06:53
问题 I am trying to generate a machine key to place in my web configs, but its saying it is not recognized. I have already read the following question and use the same commands without success Generate Machine Key. Please check what am i doing: I took the Powershell Script from microsoft site, then executed the commands below: PS C:\> C:\Users\myuser\Desktop\Docs\KeyGeneration\machinekey.ps1 Then PS C:\> Generate-MachineKey -validationAlgorithm SHA1 It says that: The term 'Generate-MachineKey' is

ConnectionString management for many projects on one server, should I make my own ConnectionString provider for our code

你。 提交于 2019-12-08 01:22:37
问题 I have on a single Windows Server about 10 different .NET projects, mostly .NET 4.0 but some .NET 2.0 Some of these projects are asp.net, some are background utilities/services. These projects interact with over a hundred different databases in our infrastructure. The ConnectionStrings they use to do that changes at least a few times a month. The issue here is that forgetting to put a ConnectionString in one of these projects can cause a lot of problems, and new projects/updates are deployed