machine.config

asp.net / MySQL: Access denied for user ''@'localhost' (using password: NO)

血红的双手。 提交于 2020-01-30 02:39:14
问题 I'm a web dev rookie and I'm hoping someone with more experience can help sort this out. I was ambushed by a MySQL upgrade. Background: I have two XP PCs (let's ambitiously call them "web server" and "MySQL server"). I recently built and successfully hosted an asp.net site that drew data from the MySQL db. It's just a site designed for a few local users so they don't have to learn SQL to get data...nothing fancy. So far so good. Problem: This week I installed MySQL on the "web server", and

.NET using wrong 2.0 machine.config instead of 4.0

谁都会走 提交于 2020-01-24 09:18:21
问题 I have a .NET web application install on IIS 7.0 Windows Server 2008 R1. I have installed .NET 4.0 on the server and configured an app pool for 4.0 and integrated pipeline. For some reason I am getting the following error: (500.19) The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration. It appears that it is using the wrong machine.config file from V2.0 .NET rather than the machine.config file which has defined the system.web.extensions

The best way to get a path to machine.config of a different .NET version

主宰稳场 提交于 2020-01-14 03:22:11
问题 Whats the best way to get a path to .net 2.0 machine.config file, if the application is running on .net 4.0? One way would be to do string manipulation and file system access to replace v4.0* with v2.0* in new ConfigurationFileMap().MachineConfigFilename; and then pass it to ConfigurationManager.OpenMappedMachineConfiguration(new ConfigurationFileMap(<HERE>)) . I will resort to this solution if nothing better is available. 回答1: Since I needed the path to machine.config for ASP.NET versions, I

Clean Web.Config file in Asp.NET 4.0?

痴心易碎 提交于 2019-12-24 15:26:28
问题 Okay, I am wondering having clear web.config file could be good but you know some shared web hosting companies don't allow us to touch things like machine.config and etc. So If a lot of things have been moved onto machine.config, then will we be allowed to change things like we used to through web.config file. 回答1: Nothing is changing in this regard with ASP.NET 4.0: the way the ASP.NET configuration model has always worked is that you can override settings in machine.config with a web.config

Can't find httpModules and httpHandlers inside machine.config

半世苍凉 提交于 2019-12-24 09:28:51
问题 I've read a post about httpHandlers and httpModules in ASP.NET and it said that there are such nodes (<httpModules> and <httpHandlers>) defined by default inside machine.config but when I looked they are not there. I've searched the machine.config at path "$WINDOWS$\Microsoft.NET\Framework\$VERSION$\CONFIG". The only references are these 2 lines: <section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken

API to modify the machine.config file - 'DbProviderFactories' section can only appear once per config file

女生的网名这么多〃 提交于 2019-12-23 20:08:44
问题 I've recently encountered the following error on a client machine: The 'DbProviderFactories' section can only appear once per config file. It appears that the machine config contains a duplicate DbProviderFactories element. <system.data> <DbProviderFactories> <add name="IBM DB2 for i .NET Provider" invariant="IBM.Data.DB2.iSeries" description=".NET Framework Data Provider for IBM i" type="IBM.Data.DB2.iSeries.iDB2Factory, IBM.Data.DB2.iSeries, Version=12.0.0.0, Culture=neutral, PublicKeyToken

ClickOnce and configuration for a C# application

白昼怎懂夜的黑 提交于 2019-12-23 03:22:42
问题 What and how should I put into an app.config file. The scenario is this, I have created a C# Windows Forms application (.NET 4.0), and it runs fine on the development computer. When I deploy it using ClickOnce on other computers I get a permission error for the machine.config file. This is a corporate domain so I do not have rights to change the permissions in the machine.config file on the target computers. From what I have been reading, I believe that whatever is being accessed in the

Is Forms Authentication Ticket safe enough?

折月煮酒 提交于 2019-12-20 12:37:13
问题 When a user logs in based on default Forms Authentication method, the server creates a cookie containing encrypted data (using Machine Key as key for encryption). It means that if someone find/guess/access Machine Key for the server, he will be logged in to the web application. I've developed some applications which are on 4 servers. So, I hard-coded the same Machine Key for all the servers in machine.config and I can't use Auto Generate mode. Is it possible to brute force the Machine Key? Is

machine.config appSettings are null

空扰寡人 提交于 2019-12-19 00:42:35
问题 In my machine.config file I have the following <configuration> .... <appSettings> <add key="key" value="value"/> </appSettings> </configuration> I am trying to retrieve it on an asp page by using ConfigurationManager.AppSettings["key"]; and it returns null every time. 回答1: You probably put it in the wrong machine.config. Remember that there is the same machine.config for .NET 2.0 and 3.5 as they both target CLR 2.0 ( c:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\ ) and a separate

Connection Strings for Entity Framework

[亡魂溺海] 提交于 2019-12-17 17:44:12
问题 I want to share same Database information across multiple entities in Silverlight.. but I want the connection string to be named xyz and have everyone access that connection string from machine.config... The meta data part of the entities will be different since I didn't name the entities the same.. Can I put multiple entities in that metadata section? Here is an example.. I want to use this connection string but note that i put multiple entities in the metadata section.. Basically I want to