web-config

Insufficient permissions for setting the configuration property 'checkCertificateName'

Hi Friends, I have hosted my web site on go-daddy with shared hosting plan.when i am trying to browse any page which content logic to send email i get below error Insufficient permissions for setting the configuration property 'checkCertificateName' But page without the send email logic working fine so any can help me to resolve thi...

Setting the ASP.NET ConnectionString to a specific domain user

Hi, We have a windows account in the SQL Server 2008 called drwho for example and a password. In the connection string we disabled integrated security and added User Id and password values. User Id=THEDOMAIN\drwho;Password=...... However ASP.NET keeps thinking we are using SQL server authentication. Any suggestions? ...

what part of web.config do i insert the elmah tag?

I want to write this <elmah> <errorlog type="Elmah.XmlFilerErrorLog, Elmah" logPath="~/App_Data" /> </elmah> or <elmah> <errorLog type="Elmah.SQLiteErrorLog, Elmah" logPath="~/App_Data" /> </elmah> however every place i tried putting this tag in i get an Unrecognized configuration section elmah. error. I found this question h...

ASP.NET IIS Web.config [Internal Server Error]

I changed PC / Windows (XP -> 7) so IIS (6 -> 7,5) and trying to move my website But I can't run my site from this server . . . error : Error description: Error HTTP 500.19 - Internal Server Error The requested page is not available because of incorrect configuration data for this page. Error Details Module...

Wildcard HttpHandler not handling Static Files

I had a look through some of the older questions, but I can't find anything. I have a Wildcard HttpHandler on my web app which is processing the url and working out if it can do anything with it If it can't, then the StaticFile Handler should pick it up and just serve it as a static file (like an html file). The problem is, it's going...

How to use ASP.NET Authorization Yet Permit Access to .css Files?

<authentication mode="Forms"> <forms loginUrl="Login.aspx"/> </authentication> <authorization> <deny users="?"/> </authorization> I am using forms authentication, and when i place the arguments cited above, the css formatting I have done for the whole document is not being implemented, it's vanishing. what should i be doing...

Unable to regress web application from AJAX Control Toolkit 3.0 back to 1.0

I was recently asked to stop using the Ajax Control Toolkit 3.0 in my application and need to go back to 1.0. Luckily I only have one calendar control which I don't believe will be affected by this. I have removed the reference to the 3.0 .dll and added a reference to the 1.0 .dll. These are the assemblies in web.config: <asse...

Why do I randomly get a "error to use section registered as allowDefinition='MachineToApplication'" when building an MVC project?

I have seen a few questions on SO about a similar error when deploying a website, but I seem to randomly get this error when building an ASP.NET MVC website in Visual Studio. Performing a clean usually fixes it, but is there any way to avoid this completely? It is an error to use a section registered as allowDefinition='MachineToAppl...

Microsoft Reporting v.10 load problem

Hi, I am trying to reference microsoft reporting v.10.0.0.0 in my vs studio web site. For some reason it can't achieve that as it is always giving me a compile error that it could not load the type. Error 2625 Could not load type 'Microsoft.Reporting.RdlBuildProvider' from assembly 'Microsoft.ReportViewer.Common, Version=10.0.0.0, Cultu...

How to encrypt and decrypt custom configuration files (XML files) in C#

Hi guys... I am new to the forums. I've just started working on C# and webservices for the past 3 months and I've got a great web service rearing to go. Unfortunately, there is a custom "configuration" file (really an XML file) that we use to store our connection strings. We don't want to use the web.config connectionstring section bec...

Custom error pages shown using IIS6 rather than web.config settings

Hi, this is my first post on this great source of programming information. I have developed new site for client and just doing some finishing touches. I am trying to create custom error pages which would be read from web.config <system.web> <customErrors mode="RemoteOnly"> <error statusCode="404" redirect="404.aspx" />...

Can you modify the web.config and NOT restart the ASP.NET application?

Possible Duplicate: How to prevent an ASP.NET application restarting when the web.config is modified? Was just thinking about uptime. Thanks. ...

Web.config Combining authorization rules

I have the following authorization rules in my web.config: <location path="Register.aspx"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> <location path="ForgotCredentials.aspx"> <system.web> <authorization> ...

cannot load web.config in mstest

I need read connection string from web.config which in asp.net mvc project, but all i get are null. how can i obtain connection string in mstest, do i need additional configuration in some where? ...

Implementing a Custom Error page on an ASP.Net website.

I have an ASP.Net website and I want to use a custom error page. I put the following code in my web.config <customErrors mode="On" defaultRedirect="~/error.aspx"> <error statusCode="404" redirect="~/error.aspx" /> </customErrors> The problem is when i go to a URL that does not exist is still uses the 404 error page specified in II...

Is there an equivelent of Microsoft.Web.Administration for IIS versions prior to 7.0?

Seems this namespace is limited to IIS7 and upwards. Are there any managed libraries from Microsoft or elsewhere that enable you to survey the configuration (just looking for read only config) for a given set of IIS installations? Otherwise one would have to poke through web.configs, the metabase, and try to cobble it all together. ...

Http-handler load error

I successfully added and configured HttpHandler in an Asp.Net WebApplication, but facing problems while trying to add same HttpHandler to Asp.Net WebSite. I have registered it in the web.config, am i missing something This is the error I am getting Configuration Error Description: An error occurred during the processing of a conf...

Retrieving configuration sections through WebConfigurationManager and Configuration objects

hi We can retrieve configuration sections from web.config in the following two ways: Configuration config = WebConfigurationManager.OpenWebConfiguration("/"); AuthenticationSection authSection = (AuthenticationSection) config.GetSection(@"system.web/authentication"); OR AuthenticationSection authSection = (Authen...

ConnectionString not read from web.config by a strongly typed Dataset? SQLiteException (0x80004005): unable to open database

Please some help on how to debug this! On my development machine I can succesfully host a local WCF service that uses a SQLIte database for its storage. I simply xcopied the wcf service dll's, the database file and the System.Data.SqLite.dll to the win 2008 server. The server hosts the the WCF service in IIS7.This worked without a hitch...

Which redirection is better - web.config or global.asax

I need to redirect some of the older pages in my application to new pages. I thought urlMapping in web.config is the efficient way to achieve this. But there is also another way to redirect using global.asax. Which one is the efficient way for this. At what point in request execution does this asax and config file comes into the picture?...