web-config

Oracle.ManagedDataAccess The system cannot find the file specified

孤者浪人 提交于 2020-01-03 05:34:09
问题 In my website project built on .net 3.5, when I add reference to the Oracle.ManagedDataAccess.dll by adding this in the web.config <add assembly="Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/> it give this 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

<pages validateRequest=“false” /> and <httpRuntime requestValidationMode=“2.0” /> not working

纵饮孤独 提交于 2020-01-03 05:12:23
问题 I've inherited an MVC asp.net app using framework 4.0. I'm getting the dreaded "A potentially dangerous Request.Form value was detected from the client" error and all my research leads me to believe that this should fix it: <system.web> <httpRuntime requestValidationMode="2.0" /> <pages validateRequest="false" /> </system.web> However, I've added that to my web.config and still get the error. I'm at the end of my rope here, what am I missing? 回答1: In addition to what you did you also have to

Settings from system.webserver sometimes removed from web.config file

橙三吉。 提交于 2020-01-03 02:43:26
问题 We've come across a rather annoying bug in IIS7.5 where it occasionally removes the contents of the tag in the web.config. It doesn't just remove the contents at runtime, it actually physically updates the file. On our local machines it happens when we rebuild everything (which includes replacing application.config from source control) and on our server machines it happens on app pool restart. Both cases are intermittent. It seems to be happening because we have some config at the root of the

What is the standard way to handle web.config files in SVN that differ between servers?

房东的猫 提交于 2020-01-02 13:11:46
问题 I am trying to determine a good way to handle web.config files that differ between environments. My workstation, development server, staging server, and production server have slightly different settings in the web.config file. I would like to keep the different web.config files under version control. In addition to the the history, it makes moving files between servers easy. What is the best way to handle this situation? Here is my current strategy/procedure: My project contains 4

What is the standard way to handle web.config files in SVN that differ between servers?

杀马特。学长 韩版系。学妹 提交于 2020-01-02 13:11:29
问题 I am trying to determine a good way to handle web.config files that differ between environments. My workstation, development server, staging server, and production server have slightly different settings in the web.config file. I would like to keep the different web.config files under version control. In addition to the the history, it makes moving files between servers easy. What is the best way to handle this situation? Here is my current strategy/procedure: My project contains 4

Allow chinese chracters in url rewriting

白昼怎懂夜的黑 提交于 2020-01-02 10:33:26
问题 I had wrote URL rewrite Rule: <match URL="^([_0-9a-z-]+)/([_0-9a-z-]+)/([_0-9a-z-‘!@#$%^*()!~`\."]+)"/> But there are some Chinese characters in my URL like: 'http://www.ilanbio-international.com/News/4443/中国陕西西安---渭南验室奠基石庆典' Which is not support by this rule. So how can I support Chinese characters through URL rewriting? 回答1: Just add this: <match url="^([_0-9a-z-]+)/([_0-9a-z-]+)/([_0-9a-z-‘!@#$%^*()!~`\."\u4e00-\u9fa5]+)"/> In place of this: <match URL="^([_0-9a-z-]+)/([_0-9a-z-]+)/([_0-9a

Configure Entity Framework to pick connection strings from Azure CloudConfiguration File?

大兔子大兔子 提交于 2020-01-02 09:10:07
问题 We are using EF-6 in our web roles & worker roles. These roles are encapsulated into a single cloud service project. In order to manage config settings in a better way, we have moved most of our config keys into cloud project & we read them using CloudConfigurationManager. But for packages like Entity Framework or Enterprise Library we can't tell AppDomain to read settings from Cloud Config file. EF looks into respective App.Config or Web.Config of the project. Is there any way to tell EF to

Validation of double using System.Configuration validator

纵饮孤独 提交于 2020-01-02 07:27:20
问题 I had to create a custom configuration section for my library. One of the parameters in the configuration should be positive double. However, for some reason I could not find any Validator for double. For instance, here's how I use the integer validator: [ConfigurationProperty("someProp", IsRequired = false, DefaultValue = 15)] [IntegerValidator(MaxValue = 200, MinValue = 0)] public int SomeProperty { get { return (int)this["someProp"]; } set { this["someProp"] = value; } } I've looked

Encrypting web.config on shared hosting

不羁的心 提交于 2020-01-02 06:29:21
问题 I want to encrypt the connection strings in a web.config file in a shared hosting environment. I have read most of the articles on MSDN on the subject (http://msdn.microsoft.com/en-us/library/53tyfkaw.aspx) and concluded that I need to use RSAProtectedConfigurationProvider so that I can export the config file with key container to our shared hosting provider. However, when I do this I get an error "The RSA key container could not be opened." I assume this is because I need to grant access to

Moving <httpredirect> out of web.config in separate config file

人盡茶涼 提交于 2020-01-02 05:47:06
问题 We have many (more than 100) redirects in our web.config like <configuration> <system.webServer> <httpRedirect enabled="true" exactDestination="true" httpResponseStatus="Found"> <add wildcard="/a" destination="/a/dfdf/default.htm" /> <add wildcard="/sad" destination="/aasd/dfdf/defsadault.htm" /> <add wildcard="/asdsaa" destination="/aasdas/dfasddf/default.htm" /> <add wildcard="/aasdsa" destination="/asdsaa/dfdf/defsdault.htm" /> <add wildcard="/aasd" destination="/adsa/dfdf/default.htm" />