web-config

Is the below error from GenericErrorPage.htm

Is the below error looks same as from GenericErrorPage.htm? Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the applicat...

Contents of GenericErrorPage.htm?

Could any post what the contents of GenericErrorPage.htm? ...

Web Application Problems (web.config errors) HTTP 500.19 with IIS7.5 and ASP.NET v2

This is driving the whole team crazy. There must be some simple mis-configured part of IIS or our Web Server, but every time we try to run out ASP.NET Web Application on IIS 7.5 we get the following error... Here's the error in full: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related co...

Scriptmanager not supporting for .net 2.0

I am deploying a website which is developed in 3.5 framework.Server only support 2.0. hence i recompliles the same project by changing the target framework. But there is a scriptmanger in my website. which is not supporting 2.0 framework... is there any work around for this? ...

SQL Symmetric Key and opening it from C#

Hi, I am trying to encrypt data in SQL Server via a Symmetric key. When a user submits data through a web form, I would like for the data to be encrypted, using my Symmetric Key that I have saved inside the SQL Server. I am trying to find out how to do this. Currently, I run the following: USE myDb GO OPEN SYMMETRIC KEY myKey DECRYPTIO...

Read web.config from browser-enabled InfoPath form

Hi I've built in C# a dll that accesses the appSettings section from the web.config file in the Inetpub\wwwroot\wss\VirtualDirectories\80. I do it the way it was described by Microsoft Community here. I use this dll in a browser-enabled form published to a SharePoint site collection. It works fine on my local machine, but when i publis...

ASP.Net partially ignoring my Custom error section in web.config

Here's my web.config customErrors section (you'll notice I've switched the mode to 'On' so I can see the redirect on my localhost): <customErrors defaultRedirect="~/Application/ServerError.aspx" mode="On" redirectMode="ResponseRewrite"> <error statusCode="403" redirect="~/Secure/AccessDenied.aspx" /> </customErrors> an...

Increase the session timeout of my web form ?

I need to increase session timeout of my web use form ... could anyone please help ? ...

MembershipProvider and web.config

Where can I get a list of all the configuration properties for the Membership provider that can be added to the web.config, i.e. <membership defaultProvider="MembershipProvider"> <providers> <clear/> <add name="MembershipProvider" type="Providers.MembershipProvider, Providers" description="membership provider" passwordFormat="...

Limit the number of config sections

In ASP.NET, when creating a custom config section, how do I limit the number of a particular section that can be declared? For example, if in web.config, I repeat the appSettings section... <appSettings /> <appSettings /> ...I get an exception when the configuration loads. If I do the same with my section... <employer /> <employe...

You are not authorized to view this page

I am getting the following error while browsing the my webpage i checked and seen anaymous access has been enabled and integrated aunthentication has been turned off ... Could you please help? You are not authorized to view this page You do not have permission to view this directory or page using the credentials that you supplied. ...

You are not authorized to view this page

I am getting the following error while browsing my asp.net page deployed in IIS You are not authorized to view this page You do not have permission to view this directory or page using the credentials that you supplied. -------------------------------------------------------------------------------- Please try the following: Contact ...

What is the best way to keep web app config ?

If I have some config for web admin to set e.g. number of post per page, some enum showing choice. How should I keep this settings in db ? Should I serialize it and save as blob. Thanks, I using rails and I want it to dynamically change this setting through web interface, so I think environment.rb would not fit this situation. So I s...

web.config explanation of profile properties

hi, I have a List<> as part of a users profile stroed in the web.config like so <properties> <clear/> <add name="EditorUploads" type="System.Collections.Generic.List`1[[System.String]]"/> </properties> Although this code works, I don't know why. I can't find any documentation on what the `1 means anywhe...

if session expires whether the viewstate remains ?

i have set the session timeout to 20 minutes in IIS level and there is no session entries in the web.config. How can i know whether my session exprired in my website? does the state will maintain ? do i can see the values in the text-boxes after the timeout? ...

ASP.NET location element override behavior

Assume I have the following in my web.config (most of the file omitted for brevity): <configuration> <location path="somefolder/somepage.aspx"> <system.web> <authorization> <allow roles="SomeRole" /> <deny users="*" /> </authorization> </system.web> </location> <system.web> <authorization> ...

Application does not log

I have a number of ASP.NET applications that use log4net without issue. I have not been able to get log4net to log anything in any of the services I wrote using the MVC libraries. I have the configuration identical (aside from log file name) in all the services. Each service is running as the same user and use the same application pool. ...

Reading web.config from JavaScript

IS there any way that I can read config values in web.config with javascript ? Why would I want to do that ? I have a timer in my website which would pop up a modal dialog with a count down timer (count down for 2 minutes) if the user is inactive for 20 minutes. If the user does not respond, it logs him out. If he does, it pings to the ...

ASP Web.config folder path isn't resolving

I've just been asked to fix an ASP site and I know absolute no ASP. When I try to load the site, I get greeted with the following error: MENU CACHE EXCEPTION:No menu xml file found for menu id 1. Make sure the xml file \menuxml\menu_1.xml exist. I've tried editing Web.config to point to the correct folder using a variety of different p...

Set Default Page in Asp.net

Hi everyone, Is there any section or code which allows us to set default page in web.config ? For example, when people first visit my website, I want them to see CreateThing.aspx rather than Default.aspx. The solutions I know : Put this line of code => Response.Redirect("CreateThings.aspx") in Default.aspx Page_Load event but this m...