web-config

System.Net defaultProxy section in web.config

Hello! I'm seeing a very strange issue on our live platform that consists of four webserver Windows Server 2003 boxes sitting in a cluster behind an ISA server cluster. They are all running IIS 6. We have the need for webservice requests to be made from a .Net 2.0 webapp to the outside world so we have utilised the 'defaultProxy' ...

Web.config Error

I developed an asp.net application and tested on my pc and every thing works fine. But, when i deployed it on the server it comes up with the follwing error: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find th...

It is possible to have different web.config files for a Team Foundation Server project?

Hi folks, I've got a simple ASP.NET MVC website. It has Debug, Testing and Release configuration modes. We're using TFS as our source control and bug tracking, etc. Nice. Now, we're about to embark on using Team Builds to automate some Continuous Intergration. The thing is, we're not sure how to make it so that if we want to make a DE...

ASP.NET MVC - NHaml issue on web.config file

Hello There, I'm trying to implement NHaml views on my application, and it's all working well. But strangely I'm getting some warnings on web.config files when publishing the application. My nhaml parameters are: <configSections> ... <section name="nhaml" type="NHaml.Configuration.NHamlConfigurationSection, NHaml"/> </configSection...

Do web.config role and usernames allow whitespace?

Is the following valid? Are roles/usernames allowed to have whitespace? <location path="MyPage.aspx"> <system.web> <authorization> <allow role="Good User" /> </authorization> </system.web> </location> ...

More than one way to register an ASP.NET Http Handler in web.config?

What is the difference of adding and removing handlers in as oppose to ? In a new web project I made with VS2008, the handlers are defined as this: <system.web> ... <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandle...

Unable to set maxReceivedMessageSize through web.config

Hello there, I have now investigated the 400 - BadRequest code for the last two hours. A lot of sugestions goes towards ensuring the bindingConfiguration attribute is set correctly, and in my case, it is. Now, I need YOUR help before destroying the building i am in :-) I run a WCF RestFull service (very lightweight, using this resourc...

Web.Config AllowDefinition Error when visiting from local machine

The issue we're running across is that we use a screen scraper to generate non copy-and-pasteable images of web pages for users who don't have access to raw data to hamper copy-and-paste activity. We have a class that's set up to instantiate a web browser object in memory, and then it accesses the page and we render it to a bitmap that w...

ASP.NET + IIS6: whitelist users via authorization section in web.config

Consider an IIS6 Application under a web site: Windows authentication is enabled. anonymous is off This is an ASP.NET MVC application with Areas. The root web.config has the authentication and authorization nodes as follows: <authentication mode="Windows"></authentication> <authorization> <allow users="domain\abc, domain\xyz, ...

Sharing connectionstrings between 2 .NET applications

Suppose I have an ASP.NET website running with its corresponding web.config file, which contains a bunch of connectionstrings for database access. I also have a little helper console program (deployed to the same folder as the web app) that does maintenance tasks and other stuff. This helper programs shares a bunch of dll's with the web...

Does web.config override any app.configs?

If I have a web application (with its own web.config) and a .dll it uses happens to have its own app.config which settings file wins when there is a conflict? ...

Is it possible to change web.config without ending all user sessions?

Is it possible to change the web.config file without giving all the users on the site a new session? ...

createuserwizard refuese to add users due to password

When working with the the createuserwizard control, I found it always showed a "select a different password" message (in the example InvalidPasswordErrorMessage="Parola trebuie sa contina minim 7 caractere." ) when I try to add a user. The passwordregularexpression property is empty by default, I also tried to change it to some simple...

ASP.NET 3.5 IIS7 Roles Security Implementation

I'm working on a ASP.NET 3.5 application running on IIS7 (Server '08) using the stock MS Forms Authentication and SqlRolesProvider. (I used the aspnet_regsql tool to generate the tables). We have three roles: SysAdmins, AppAdmins, and Users. All users are in Users, and a user can be in either SysAdmins, AppAdmins or both. I can't ...

How to clear inherited customErrors elements in Web.config?

As the article ASP.NET Configuration File Hierarchy and Inheritance says the Web.config file for a specific Web site contains settings that apply to the Web site and inherit downward through all of the ASP.NET applications and subdirectories of the site. I have these settings for a "parent" application <customErrors mod...

asp.net Problem with assembly reference

Here is my code that tries to get a custom configuration object from web.config: LdapConfiguration ldapConfig = (LdapConfiguration)ConfigurationManager.GetSection("ldapConfiguration"); When that line of code is ran I get this error page. Here is screenshot showing that I have included the reference to the project that contains the co...

WSRP - Server was unable to process request. Security Validation failed at Sharepoint Server

I'm trying to implement a WSRP (web services for remote portlets) solution. I want to consume webparts with a portal. Enviroment SERVER 1: CentOS 5, Liferay 5.2.3/Tomcat 6, portlet WSRP consumer. SERVER 2: Windows Server 2008, Sharepoint 2007, WSE 2 SP 3, SharePoint Producer Web Service version 1.0 (WSRP producer). Both servers in ...

Testing against Web Configuration from Class Library

I'm storing my application settings in my web.config file and accessing them using ConfigurationManager.GetSection or ConfigurationManager.AppSettings. I've created a test to ensure that the settings I'm getting from my class are the correct settings in the web.config file, however, it's returning null values. How can I tell my unit test...

Inherited web.config files and HttpContext bug in WCF?

I'm using WCF to create a SOAP service with the following file layout hosted on IIS: / /web.config /service /service/test.svc /service/web.config In the /web.config, I have a few general settings (system.codedom, etc) and in the /service/web.config I have an appSettings section with a few settings defined. <?xml version="1.0"?> <conf...

ASP.NET How to add assembly in web.config?

I have a assembly made in another project (projA). Now I want to import this dll in another project (projB). How can I achieve this? This is what I've tried (in projB). 1 Put dll in same dir as my project. (the bin dir) 2 In we.config: <assemblies> <add assembly="projA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E...