I get this error: A potentially dangerous Request.Path value was detected from the client (?). when this URI: http://www.site.com/%3f.
How can I write an integration tests around of all of this type of errors?
I want to test against all this erros:
A potentially dangerous Request.Path value was detected from the client
A potentially ...
I have broken down the horribly unwieldy web.config file into individual files for some of the sections (e.g. connectionStrings, authentication, pages etc.) using the configSource attribute.
This is working fine, but the individual xml files that hold the section 'snippets' cause warnings in VS.
For example, a file named roleManager....
Hi,
I have an application I have just deployed which, for complicated reasons, stores all the data from the database in a module the first time any data from the specific table is required (i.e. when a customer requests to view a product for the first time, all the product data is stored in the ProductManager class (of which an instance...
Hello
I'm getting this error:
Compiler Error Message: CS0118: 'Configuration' is a 'namespace' but is used like a 'type'
Configuration myWebConfig = WebConfigurationManager.OpenWebConfiguration("~/");
This code has been in place for 5+ months without this issues, only today after adding this sitemap code do I have this issue.
<siteMap...
I want to put an comment in web.config file, something like this:
<httpRuntime
requestValidationMode="2.0" // require for [ValidateInput(false)] in .net-4.0
requestPathInvalidCharacters="" // include & character in the url
enableVersionHeader="false" // disable X-AspNet-Version header
/>
Is there any way to put co...
I'm trying to increase the execution timeout and file upload limit on my asp.net website but when i try to add
<httpRuntime
executionTimeout="110"
maxRequestLength="4096">
</httpRuntime>
i get the following errors:
Could not find schema information for the element 'httpruntime'.
Could not find schema information for the el...
Hi There Stackoverflow,
I am running into some problems while trying to get DAAB from Enterprise library 5.0 running. I have followed the steps as per the tutorial, but am getting errors...
1) Download / install enterprise library
2) Add references to the blocks I need (common / data)
3) Imports
Imports Microsoft.Practices.Enterprise...
Hi!
I have a aspx file that suppose to write to a file in the server while loading. On the local machine it works fine, but when i deploy it to a live server it gives me an exception "Access to the path 'd:\DZHosts\LocalUser\asafz83\www.asafz83.somee.com\lala.htm' is denied."
WHen i asked my serverAdmin for the reason - he told me to re...
I just upgraded my Web Site project from 2.0 to 3.5 to take advantage of the TimeZoneInfo class. When I did this, I started getting an ambiguous assembly error (*see below). The problem is, I'm not using ScriptManager, an old version of SyncFusion is. I can't upgrade SyncFusion right now, so I need to tell ASP.NET to use version 1.0.6102...
Is there something fundamentally wrong with the following design, or can anyone see why would the static properties sometimes loose their values ?
I have a class library project containing a class AppConfig; this class is consumed by a Webforms project.
The skeleton of AppConfig class is as follows:
Public Class AppConfig
Implemen...
I am having problems trying to map an HttpHandler in the web.config.
This is the relevant config bit:
<httpHandlers>
<add verb="*" path="*.hndlr" type="MyAssembly.MyHandler, MyAssembly" validate="false" />
</httpHandlers>
When I navigate to http://localhost/myApp/whatever.hndlr I am getting a server error 404 (not found).
It's the...
I've been getting "Connection forcibly closed" errors and in researching a resolution, I have seen suggestions to money with the following web.config options, which currently are not set in my web app.
Before I change them, I'd like to know what they are currently set to.
Can someone tell me how to read these values from .NET code, pre...
Hi,
I have a class that represents a configuration element:
public class ProductLevelConfigurationElement
: ConfigurationElement, IProductLevelConfiguration
{
[ConfigurationProperty("level",IsKey = true, IsRequired = true)]
public ProductLevel Level
{
get { return (ProductLevel)this["level"]; }
set { th...
I have written a custom protected configuration provider for my web.config.
When I try to encrypt my web.config with it I get the following error from aspnet_iisreg
aspnet_regiis.exe -pef appSettings . -prov CustomProvider (This is running in my MSBuild)
Could not load file or assembly 'MyCustomProviderNamespace' or one of its ...
I'm messing about with controller organisation and I've hit a problem.
If I have the following physical structure
/Home/HomeController.cs
/Home/Index.aspx
/Home/About.aspx
and I request the URI:
/Home/Index
I get a 403 Directory Listing Denied :(
(im using a custom IControllerFactory and IViewEngine to look in this non-default pa...
I have implemented a web app using session state management as per the instructions found on:
http://blog.maartenballiauw.be/post/2008/01/ASPNET-Session-State-Partitioning-using-State-Server-Load-Balancing.aspx
http://en.aspnet-bhs.info/post/State-Server-Partitioning.aspx
My SessionIDManager inheritor includes the code:
public class ...
Hi
I have a Silverlight application calling a WCF service. SimplehttpBinding stuff.
Every I make changes to silverlight xaml code, the web.config gets refrshed also.
Even if make any changes to web.cofig file, they get overwritten too.
Its as if, some other process is writing these files. Why is that happening? How can I make sure t...
The basic idea is we have a test enviroment which mimics Production so customErrors="RemoteOnly". We just built a test harness that runs against the Test enviroment and detects breaks. We would like it to be able to pull back the detailed error. But we don't want to turn customErrors="On" because then it doesn't mimic Production.
I'v...
I have a DLL that provides logging that I use for WebForms projects and now wish to use it in an ASP.Net MVC 2 project.
Some aspects of that DLL are configured in app.config:
<configuration>
<configSections>
<section name="Tools.Instrumentation.Properties.Settings"
type="System.Configuration.Client...
In my web.config for my very simple web app I have the code:
<sessionState
cookieless="false" regenerateExpiredSessionId="true" mode="Custom"
customProvider="NCacheSessionProvider" timeout="20">
<providers>
<add
name="NCacheSessionProvider"
...