Configuration :: Set Default Page In Web.config File?

Jul 16, 2010

I have a website with 3 different homepage designs. Is there a way I can set which homepage is loaded in the web.config file?

View 2 Replies

Similar Messages:

Configuration :: Redirect To The Default Login URL As Defined In The Web.config File

Jul 28, 2010

I have what I think is a very common scenario but I've searched quite some time now and can't seem to find the answer! I have a standard web app that has a web.config in the root directory. I have some account management pages in a subdirectory called Accounts. Any timeouts at the root level work fine - the user is redirected to Default.aspx as indicated in my Forms authentication. My problem is when the users are in the Accounts (or any) subdirectory and they go off for coffee and the app times out. On the next click, they get an error saying "Accounts/Default.aspx" cannot be found. And Default.aspx is not there as it sits at the root level. It's trying to redirect them to the default login URL as defined in the web.config file but that doesn't work when the user is sitting in a subdirectory. I don't want to put a default page in this any every sub directory. I have tried putting a web.config file in the subdirectory but it throws the error about machine to application level/IIS.

View 1 Replies

Configuration :: Create A Custom Error Page In Web.config File?

Apr 14, 2010

If I create a custom error page in my web.config file, how do I retrieve error details in the error page?

So with ...

<customErrors mode="On" defaultRedirect="/error/error.aspx">
<error statusCode="404" redirect="/error/404.aspx" />

I am referring to errors generated by my For example I created a sample page and wrote 'throw new Exception("some error")' as a test. How can I retrieve an instance of the exception or exception details in my "/error/error.aspx" page? Currently in my error page if I query Server.GetLastError() the return value is null.

View 6 Replies

Configuration :: How To Merge A Distribution Web.config File And An Existing Web.config File

Mar 30, 2010

I'm preparing to deploy a ASP.NET web application. The target server has already a previous version of my web application with parameters specified on the web.config file.

In the new version of this web application, the web.config file contains new sections I would like they appear into the target web.config file on the server.

However I can't find the way to merge the new web.config sections into the existing web.config file ?

Does I have to do it programmatically, or is there a tool to merge the both files during installation ? (I'm using Web Setup Project).

View 2 Replies

Configuration :: OpenWebConfiguration Cannot Open Default Web.config?

Mar 25, 2011

I m trying to get SMTP settings from standard "web.config". I have properly filled "" section there. But when i m calling

Configuration config = WebConfigurationManager.OpenWebConfiguration("~\web.config");MailSettingsSectionGroup settings = (MailSettingsSectionGroup)config.GetSectionGroup(@"");

I get the error:


Still, I am able getting standard settings from very same "web.config" as follows


How can I get SMTP settings the same way without explicitly opening the config?

View 4 Replies

Configuration :: How To Read Web.config File In App.Config In Web Application

Jan 5, 2011

I am developing web applicaiton. I want to read web.config in App.config file. I have appSettings and connectionStrings in web.config. How to read that?

View 10 Replies

Configuration :: Error 1 Could Not Open Source File: Could Not Find File 'C:11-22 EstobjDebugCSAutoParameterize RansformedWeb.config'. 0 0 Test

Nov 24, 2010

I have built an ASP.NET (.NET v4) application in VS 2010. It is working just fine. But when I try to create deployment package (so I can deploy it in our test IIS 7.5 Server), it gives me error like this,

Error 1 Could not open Source file: Could not find file 'C:11-2 estobjDebugCSAutoParameterize ransformedWeb.config'. 0 0 test

Thing is in past, I had deployed the SAME application using the SAME method.

View 2 Replies

Configuration :: How To Add Web.config File

Feb 14, 2011

i'm working in vs2010 and am just about ready to deploy a Web sitei've read elsewhere that i should be able to add a web.release.config file and should be able to select it for the release buildso i added a web.release.config file right below my web.config file but it doesn't show up in my Configuration Manager

View 1 Replies

Configuration :: Using Web.config Value In A Xsl File?

Apr 5, 2010

in my xslt i am at present hardcoding an value. <td><tr>HI</tr></td> Can i get this 'HI' instead from app settings in my web.config file?

View 3 Replies

Configuration :: How To Create A New Web.config File

Jun 15, 2010

I want to publish my website from the development machine to QA server. Do I need to create a new web.config file which has the new data connection strings and copy it on the QA server or is there a better way of doing this, so that every time I publish modified files, the web.config does not get overwritten.

View 9 Replies

Configuration :: What Are The Different Sections In Web.config File

Jun 9, 2010

what are the different sections in web.config file?

View 1 Replies

Configuration :: Settings For Web.Config File?

Sep 22, 2010

I am designing a web application for Leave Application of our faculties. There is a form in my website which represent the existing paper-back leave application form. Users(faculties) have to fill-up this web form and after validation an email will be send to the email address of our principal/hod. I hope that email address(s) will be provided to our group members. Now I want to know that what will be the required configuration of the web.config file? I found this blog ScottGu's Blog. Here the given configuration is:


But I think this is not acceptable for my project as the smtp from="", userName, password are unknown to me. So what should I do. Am I able to understand my requirement to you?

View 4 Replies

Configuration :: ConnectionString And Config File?

Feb 4, 2011

how can i encrpt database password and store to Visual Studio's connectionString areaalso, i would like to know how can i set all config in config file and how the program can read.

View 2 Replies

Configuration :: Reference Dll's App.config File?

May 27, 2010

retrieve appsettings from the app.config file stored in a DLL directory?

I have read many posts on this and it appears as though it's not possible. I've tried all configurationmanager options without success.

Of course, when my .net web app runs, it configurationmanager pulls the settings from the web.config which I understand. I would just like to have a configuration file dedicated to the dll. (like app.config).

View 2 Replies

Configuration :: Can Dynamically Change Web.config File

Jan 31, 2011

Is it possible to change web.config file at run time...

(here i want to change database connection details at run time)

View 1 Replies

Configuration :: Encrypting Config File Using Aspnet_regiis?

Sep 23, 2010

If I encrypt something in my config file using aspnet_regiis.exe -pef "appsettings" "path" which i think will use my logged in id's credentials. If i deploy this application on some other machine where some other user id is used to login. Will there be any issues or .......?

View 1 Replies

Configuration :: Blank Web.config File And AJAX?

Jul 21, 2010

I have two test machines that both have the same issue. I have one running IIS7.5 with Windows 2008 R2 and another server running IIS7 on WIndows 2008. I am having a problem with my Web.config files not being published to the server using WebDAV. The file seems to be replaced with a blank Web.config file. Since the Web.config file is blank non of my AJAX web pages are working. I have AJAX web pages that use Microsoft's AJAX 2.0 or 3.5 (they were created in Visual Studio 2008) and I have AJAX web pages that use pure javascript accessing Codebehind classes by AjaxPro2.dll I found on the Web. All these projects worked on Windows Server 2003 with ASP.NET v3.5 because it published the Web.config file.I believe the issue has something to do with the validation process Windows 2008 uses to make sure the Web.config file is not corrupt. I tried many Web.configs and nothing works. All my applications are running from a single root folder located in inetpubwwwroot
and that single folder is "converted to application" using the DefaultAppPool (ASP.NET v2.0 Integrated Mode).

I found a workaround which is to publish my normal Web.config and a copy of it name something else like Web2.config. The Web.config is replaced on the server with a blank one, which I delete directly from the server (via Remote Desktop) and I rename the other Web2.config. This works for all my AJAX webpages both the MS AJAX and the "native" ones using pure javascript and the AJAXPro2.dll.

I tried setting the application on IIS to another Application Pool "ASP.NET v4.0 Integrated" and my MS AJAX web pages work perfectly with the blank Web.config file and not using the workaround at all. However, the "native" AJAX using purjavascript and the AJAXPro2.dll do not work because they require settings in the Web.config. This means there is something that ASP.NET 4.0 has that allows it to run the MS AJAX without a proper Web.config. I thought this might help you figure out my problem.

I have been racking my brain over this for a few weeks now and I am stuck. I really need help with getting my Web.config file from my VS2008 applications to publish (via WebDAV) to my IIS server. I can do this in either setup IIS7.5 Windows Server 2008 R2 or IIS7 Windows Server 2008. I am a programmer not system administrator. I have admin access of these servers and the system adminstrator is also stumped.Let me know if you need any additional information like my Web.config file or log files from the server.

View 1 Replies

Configuration :: Web.config File Extension Precedence?

Jan 14, 2011

I need to set file extension precedence. I want the browser to show default.html before default.aspx. Is there a way to set this up in a web.config file?

View 2 Replies

Configuration :: Select Web.Config File Programmatically?

May 2, 2010

I have 1 web application, 2 databases (same design, with different data), and 2 web.config files (web1.config. web2.config) ;

What I do need is a way to change the web.config file name programaticcaly on code behind.

So, this way I can select on runtime accoerding to the current theme the web.config currently being used.

Ofcourse that if I could do inheritnce of the web.config files it would be te best approaach, but only one web.config file is allowed per directory.

deploy this configuration to achieve a multiple websites to one web project.

View 10 Replies

Configuration :: Connection String In Web Config File?

Feb 3, 2011

I have this in the web config file <connectionstrings> section. Why is there an add and then remove and then again an add...what is it trying to accomplish here? and in the second code section, I use that string in a sqldatasource control. Second question: Can I just use the name attribute value "localsqlserver" form web config file, in place of the connection string in the data source? is it why that attribute is for?


View 2 Replies

Configuration :: Site Settings File Vs. Web Config?

Nov 12, 2010

I've been thinking about this for a couple days but still would like some feedback on the best way to go about this:

I have multiple sites (domains) that will be running the same code. However, there are a couple settings I have in the appsettings web.config file which are relative to each site. (ie: defaultSiteTitle, emailFromAddress, etc).

I would like to deploy this application in only one location (folder) and point the domains in IIS to that one directory.

To do this, I believe I cannot use the web.config file to hold these settings...

So, I decided to make a SiteSettings.xml file and load the site settings in there:

<oSite domain="" defaultSiteTitle="This is Site ABC" emailFromAddress="" />
<oSite domain="" defaultSiteTitle="This is Site XYZ" emailFromAddress="" />

So when I need to access the site settings I just call a function in my datalayer that reads this xml file and via the httpRequest I pass it it determines which site settings to use.

Okay, that works when I call it from a page where I have the httpRequest...

Howver, now when I'm into some business layer functions say sendEmail and I need to find the emailFromAddress from the SiteSettings.xml file, I don't have the httpRequest. I know I could probably hack something together and pass it someway...

But I'm trying to figure out the best way to do this...

I don't really want to store it into session.

Is it possible to tell IIS what web.config file to look at, if I had multiple web.config files? (I don't think this is possible).

View 2 Replies

Configuration :: Get The File Path Test.config?

Mar 9, 2011



I want to I get the file path test.config.How do find the the path to that file ?I tried something this but it appears an error:Object reference notes Set to an instance of an object.

View 2 Replies

Configuration :: Changing Config File After Publishing?

Sep 14, 2010

Is it ok to change the config file after publishing a site? I use shared hosting. It would be nice to do things like change connection strings and smtp settings with out having to republish the site.

View 4 Replies

Configuration :: Hide File Names Ex. Default.aspx In Url After Domain Name?

Mar 11, 2011

Is it possible to hide the file names ex: default.aspx after my domain name and is it recommended?

I want users only to see whether they are on or any other pages, only should be visible in the url.

View 6 Replies

How To Retrieve Configuration Settings From The Web.config File Programmatically

Jun 17, 2010

I have this portion of my web.config file;


I need to be able to retrieve the value of "from" in my application. How do I read this value into my code?

View 3 Replies

Copyrights 2005-15, All rights reserved