473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DTD Entity in Web.config

Hi, I would like to use DTD entity in web.config. For example

Here is my DTD
<?xml version="1.0" encoding="us-ascii" ?>
<!ENTITY SessionTimeout "30" >

In the Web.config
Add the following line below the xml declaration
<!DOCTYPE configuration SYSTEM "Environment.dtd">

Then in the appSettings Section i am referencing the entity

<appSettings>
<add key="SessionTimeout" value="&SessionTimeout;"/>
</appSettings>

If i mouse hoover on "&SessionTimeout " it shows the actual value. This also
works fine in XML file without no issues when your open it in IE.

But when i use ConfigurationManager to get the value it is returning the
variable instead of actual value. Do you know how to solve this issue? I
appreciate your help.

Thanks
Sen
Mar 28 '07 #1
0 1271

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chris Curvey | last post by:
I'm writing an XMLRPC server, which is receiving a request (from a non-Python client) that looks like this (formatted for legibility): <?xml version="1.0"?> <methodCall>...
1
by: Zandy Marantal | last post by:
Hello everyone, I'm having trouble using Xerces2(2.4, 2.5) when validating against an XML schema if a general entity reference is defined within the XML file. The error I'm getting is this:...
11
by: Douglas Reith | last post by:
Hi There, Can someone please tell me why the XML spec states that an attribute value with an external entity is forbidden? Or point me to the appropriate document? Or better still, perhaps you...
2
by: Pablo | last post by:
We are calling a web service running in IIS 6.0 (Windows 2003 Server) When we call a web service method to send a large xml document (2Mb) obtain an http error 413 (entity too large) We have...
2
by: icebear | last post by:
Ubuntu Drake comes with or allows you to install something called "entity" which sounds like it ought to be the world's ultimate Python GUI tool. Nonetheless all I can get it to do looks like this:...
2
by: Mae Lim | last post by:
Dear All, I'm using WinXP Pro with IIS 5.1, and my program in ASP.NET C#, I encounter a problem with my program running locally. Below is the error message: - System.Net.WebException: The...
1
by: Harold Howe | last post by:
When .NET loads an app.config at runtime (myapp.exe.config), will it honor an entity declaration? Based on what I am seeing, the answer is no, but I think, or hope, that I am doing something wrong....
1
by: Steve Wofford | last post by:
I am recieving the following. This happens when I moved it from my development system to our production SBS 2003 w/ latest .net frameworks and service packs . I developed under XPSP2 and VS2008. ...
0
by: Andy B | last post by:
I wanted to try out the ado.net entity framework model and see how it was different from linq to sql entities. I put a page in a web application project, added an ado.net entity model and told it...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.