473,782 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem reading web.config's <configSectio n> - returns null

Hi all.

i'm tryng to implement the Rewrite.NET url rewritining functionality into a
test project i've created, however i am hitting a problem at this line
(direct from the web example):

System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co nfigurationSett ings.GetConfig( "Rewrite.NE T/Index");

The value always returns me null, and just to check it was reading from the
same web.config, i added a, appSettings value which i could read fine.

These code examples are directly off the web example and nothing is changed,
however the above call to find "GetConfig" section returns null and i dont
know why?? any help appreciated!

Here is what my web.config looks like:

<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx" />
<add key="/Default.aspx?pa ge=Contact" value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>

thanks,
Paul
Mar 12 '07 #1
9 2720
On Mar 12, 9:11 am, "Milsnips" <milsn...@hotma il.comwrote:
Hi all.

i'm tryng to implement the Rewrite.NET url rewritining functionality intoa
test project i've created, however i am hitting a problem at this line
(direct from the web example):

System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co *nfigurationSet tings.GetConfig ("Rewrite.NE T/Index");

The value always returns me null, and just to check it was reading from the
same web.config, i added a, appSettings value which i could read fine.

These code examples are directly off the web example and nothing is changed,
however the above call to find "GetConfig" section returns null and i dont
know why?? any help appreciated!

Here is what my web.config looks like:

<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx" />
<add key="/Default.aspx?pa ge=Contact" value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>

thanks,
Paul
I'm not sure, but what does "Index" mean in "Rewrite.NE T/Index"?

Mar 12 '07 #2
Aah yes, that was the problem, there was a missing line in web.config with
name "Index" within the group section.
thanks,
Paul

"Alexey Smirnov" <al************ @gmail.comwrote in message
news:11******** **************@ 64g2000cwx.goog legroups.com...
On Mar 12, 9:11 am, "Milsnips" <milsn...@hotma il.comwrote:
Hi all.

i'm tryng to implement the Rewrite.NET url rewritining functionality into
a
test project i've created, however i am hitting a problem at this line
(direct from the web example):

System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co *nfigurationSet tings.GetConfig ("Rewrite.NE T/Index");

The value always returns me null, and just to check it was reading from
the
same web.config, i added a, appSettings value which i could read fine.

These code examples are directly off the web example and nothing is
changed,
however the above call to find "GetConfig" section returns null and i dont
know why?? any help appreciated!

Here is what my web.config looks like:

<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx" />
<add key="/Default.aspx?pa ge=Contact"
value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>

thanks,
Paul
I'm not sure, but what does "Index" mean in "Rewrite.NE T/Index"?
Mar 12 '07 #3
Just one more question regarding url rewriting -

In my code example i put a rule, say "Default.aspx?i d=4" - rewrite to
"products/default.aspx", and as i step through the code i can see it does
everything correctly, but when it gets to displaying the page, it says
"products/default.aspx not found"!

I assumed this just rewrote the name virtually that appears on the page
links/ or address bar, but not actually physically redirect to the location?

Have i misunderstood something here?
thanks,
Paul

"Milsnips" <mi******@hotma il.comwrote in message
news:OI******** ******@TK2MSFTN GP03.phx.gbl...
Hi all.

i'm tryng to implement the Rewrite.NET url rewritining functionality into
a test project i've created, however i am hitting a problem at this line
(direct from the web example):

System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co nfigurationSett ings.GetConfig( "Rewrite.NE T/Index");

The value always returns me null, and just to check it was reading from
the same web.config, i added a, appSettings value which i could read fine.

These code examples are directly off the web example and nothing is
changed, however the above call to find "GetConfig" section returns null
and i dont know why?? any help appreciated!

Here is what my web.config looks like:

<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx" />
<add key="/Default.aspx?pa ge=Contact" value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>

thanks,
Paul


Mar 12 '07 #4
On Mar 12, 9:31 am, "Milsnips" <milsn...@hotma il.comwrote:
Just one more question regarding url rewriting -

In my code example i put a rule, say "Default.aspx?i d=4" - rewrite to
"products/default.aspx", and as i step through the code i can see it does
everything correctly, but when it gets to displaying the page, it says
"products/default.aspx not found"!

I assumed this just rewrote the name virtually that appears on the page
links/ or address bar, but not actually physically redirect to the location?

Have i misunderstood something here?
thanks,
Paul

"Milsnips" <milsn...@hotma il.comwrote in message

news:OI******** ******@TK2MSFTN GP03.phx.gbl...
Hi all.
i'm tryng to implement the Rewrite.NET url rewritining functionality into
a test project i've created, however i am hitting a problem at this line
(direct from the web example):
System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co *nfigurationSet tings.GetConfig ("Rewrite.NE T/Index");
The value always returns me null, and just to check it was reading from
the same web.config, i added a, appSettings value which i could read fine.
These code examples are directly off the web example and nothing is
changed, however the above call to find "GetConfig" section returns null
and i dont know why?? any help appreciated!
Here is what my web.config looks like:
<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx" />
<add key="/Default.aspx?pa ge=Contact" value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>
thanks,
Paul- Hide quoted text -

- Show quoted text -
It looks like you forgot to add a configuration line for

products/default.aspx

into web.config.

I think you should check the manual for software you used (I don't
know what Rewrite.NET is)

Mar 12 '07 #5
Rewrite.NET is some free code on the web to handle url rewriting in
asp.net - link: http://www.15seconds.com/issue/030522.htm

Anyway, to test my example i added the line in web.config:
<add key="/Default.aspx?id =4" value="/products/default.aspx" />

So, when i run it, i type in "localhost/project/default.aspx?id =4" and it
goes through the rules and finds it and calls the function:
Appl.Context.Re writePath("/products/default.aspx"); and here i get the 404
error saying page not found.

I thought that it was just meant to virtually rename the page url, but in
the background still use "default.aspx?i d=4" ??

regards,

Paul

"Alexey Smirnov" <al************ @gmail.comwrote in message
news:11******** **************@ 30g2000cwc.goog legroups.com...
On Mar 12, 9:31 am, "Milsnips" <milsn...@hotma il.comwrote:
Just one more question regarding url rewriting -

In my code example i put a rule, say "Default.aspx?i d=4" - rewrite to
"products/default.aspx", and as i step through the code i can see it does
everything correctly, but when it gets to displaying the page, it says
"products/default.aspx not found"!

I assumed this just rewrote the name virtually that appears on the page
links/ or address bar, but not actually physically redirect to the
location?

Have i misunderstood something here?
thanks,
Paul

"Milsnips" <milsn...@hotma il.comwrote in message

news:OI******** ******@TK2MSFTN GP03.phx.gbl...
Hi all.
i'm tryng to implement the Rewrite.NET url rewritining functionality
into
a test project i've created, however i am hitting a problem at this line
(direct from the web example):
System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co *nfigurationSet tings.GetConfig ("Rewrite.NE T/Index");
The value always returns me null, and just to check it was reading from
the same web.config, i added a, appSettings value which i could read
fine.
These code examples are directly off the web example and nothing is
changed, however the above call to find "GetConfig" section returns null
and i dont know why?? any help appreciated!
Here is what my web.config looks like:
<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx"
/>
<add key="/Default.aspx?pa ge=Contact"
value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>
thanks,
Paul- Hide quoted text -

- Show quoted text -
It looks like you forgot to add a configuration line for

products/default.aspx

into web.config.

I think you should check the manual for software you used (I don't
know what Rewrite.NET is)
Mar 12 '07 #6
On Mar 12, 10:13 am, "Milsnips" <milsn...@hotma il.comwrote:
Rewrite.NET is some free code on the web to handle url rewriting in
asp.net - link:http://www.15seconds.com/issue/030522.htm

Anyway, to test my example i added the line in web.config:
<add key="/Default.aspx?id =4" value="/products/default.aspx" />

So, when i run it, i type in "localhost/project/default.aspx?id =4" and it
goes through the rules and finds it and calls the function:
Appl.Context.Re writePath("/products/default.aspx"); and here i get the 404
error saying page not found.

I thought that it was just meant to virtually rename the page url, but in
the background still use "default.aspx?i d=4" ??

regards,

Paul

"Alexey Smirnov" <alexey.smir... @gmail.comwrote in message

news:11******** **************@ 30g2000cwc.goog legroups.com...
On Mar 12, 9:31 am, "Milsnips" <milsn...@hotma il.comwrote:


Just one more question regarding url rewriting -
In my code example i put a rule, say "Default.aspx?i d=4" - rewrite to
"products/default.aspx", and as i step through the code i can see it does
everything correctly, but when it gets to displaying the page, it says
"products/default.aspx not found"!
I assumed this just rewrote the name virtually that appears on the page
links/ or address bar, but not actually physically redirect to the
location?
Have i misunderstood something here?
thanks,
Paul
"Milsnips" <milsn...@hotma il.comwrote in message
news:OI******** ******@TK2MSFTN GP03.phx.gbl...
Hi all.
i'm tryng to implement the Rewrite.NET url rewritining functionality
into
a test project i've created, however i am hitting a problem at this line
(direct from the web example):
System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co **nfigurationSe ttings.GetConfi g("Rewrite.NE T/Index");
The value always returns me null, and just to check it was reading from
the same web.config, i added a, appSettings value which i could read
fine.
These code examples are directly off the web example and nothing is
changed, however the above call to find "GetConfig" section returns null
and i dont know why?? any help appreciated!
Here is what my web.config looks like:
<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx"
/>
<add key="/Default.aspx?pa ge=Contact"
value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>
thanks,
Paul- Hide quoted text -
- Show quoted text -

It looks like you forgot to add a configuration line for

products/default.aspx

into web.config.

I think you should check the manual for software you used (I don't
know what Rewrite.NET is)- Hide quoted text -

- Show quoted text -
Paul, what the URL you want to rewrite?

As I understood, you have a page named default.aspx, located in /
project

So, the URL

http://localhost/project/default.aspx?id=4

should work somehow without any rewriting engine.

The Rewrite.NET is designed to make

http://localhost/products/default.aspx or http://localhost/project/products/default.aspx

working as

http://localhost/project/default.aspx?id=4

So, you should call http://localhost/products/default.aspx or
http://localhost/project/products/default.aspx to get it working.

As second, you page is under "/project" and the config key refer to
"/"

<add key="/Default.aspx?id =4" value="/products/default.aspx" />

Mar 12 '07 #7
Hi Alexey,

Thanks for the info, yes i understand what you mean however this is what i
am trying to achieve..
"
say i have a online store with dynamic product list, instead of my page
showing http://onlinestore/shop/product.aspx?id=25, I want to show:
http://onlinestore/shop/25/nokia-6610.htm

I've seen it on many sites and im pretty sure that nokia-6610 is a
non-existant file, just a virtual redirection from products.aspx?i d=25 - if
you know what i'm after.

thanks,
Paul
"Alexey Smirnov" <al************ @gmail.comwrote in message
news:11******** **************@ s48g2000cws.goo glegroups.com.. .
On Mar 12, 10:13 am, "Milsnips" <milsn...@hotma il.comwrote:
Rewrite.NET is some free code on the web to handle url rewriting in
asp.net - link:http://www.15seconds.com/issue/030522.htm

Anyway, to test my example i added the line in web.config:
<add key="/Default.aspx?id =4" value="/products/default.aspx" />

So, when i run it, i type in "localhost/project/default.aspx?id =4" and it
goes through the rules and finds it and calls the function:
Appl.Context.Re writePath("/products/default.aspx"); and here i get the
404
error saying page not found.

I thought that it was just meant to virtually rename the page url, but in
the background still use "default.aspx?i d=4" ??

regards,

Paul

"Alexey Smirnov" <alexey.smir... @gmail.comwrote in message

news:11******** **************@ 30g2000cwc.goog legroups.com...
On Mar 12, 9:31 am, "Milsnips" <milsn...@hotma il.comwrote:


Just one more question regarding url rewriting -
In my code example i put a rule, say "Default.aspx?i d=4" - rewrite to
"products/default.aspx", and as i step through the code i can see it
does
everything correctly, but when it gets to displaying the page, it says
"products/default.aspx not found"!
I assumed this just rewrote the name virtually that appears on the page
links/ or address bar, but not actually physically redirect to the
location?
Have i misunderstood something here?
thanks,
Paul
"Milsnips" <milsn...@hotma il.comwrote in message
news:OI******** ******@TK2MSFTN GP03.phx.gbl...
Hi all.
i'm tryng to implement the Rewrite.NET url rewritining functionality
into
a test project i've created, however i am hitting a problem at this
line
(direct from the web example):
System.Collecti ons.Specialized .NameValueColle ction SectionIndex =
(System.Collect ions.Specialize d.NameValueColl ection)System.C onfiguration.Co **nfigurationSe ttings.GetConfi g("Rewrite.NE T/Index");
The value always returns me null, and just to check it was reading
from
the same web.config, i added a, appSettings value which i could read
fine.
These code examples are directly off the web example and nothing is
changed, however the above call to find "GetConfig" section returns
null
and i dont know why?? any help appreciated!
Here is what my web.config looks like:
<?xml version="1.0"?>
<configuratio n>
<configSections >
<sectionGroup name="Rewrite.N ET">
<section name="SimpleSet tings"
type="System.Co nfiguration.Nam eValueSectionHa ndler,System" />
</sectionGroup>
</configSections>
<Rewrite.NET>
<SimpleSettings >
<!-- sample test page urls to rewrite -->
<add key="/Default.aspx?pa ge=Home" value="/default.aspx" />
<add key="/Default.aspx?pa ge=About" value="/about.aspx"
/>
<add key="/Default.aspx?pa ge=Contact"
value="/contact.aspx"
/>
</SimpleSettings>
</Rewrite.NET>
<appSettings>
<add key="test" value="test"></add>
</appSettings>
<connectionStri ngs/>
<system.web>
<httpModules>
<add type="Rewrite.N ET.Rewrite,Rewr ite.NET"
name="Rewrite.N ET" />
</httpModules>
<compilation debug="true" />
<authenticati on mode="Windows" />
</system.web>
</configuration>
thanks,
Paul- Hide quoted text -
- Show quoted text -

It looks like you forgot to add a configuration line for

products/default.aspx

into web.config.

I think you should check the manual for software you used (I don't
know what Rewrite.NET is)- Hide quoted text -

- Show quoted text -
Paul, what the URL you want to rewrite?

As I understood, you have a page named default.aspx, located in /
project

So, the URL

http://localhost/project/default.aspx?id=4

should work somehow without any rewriting engine.

The Rewrite.NET is designed to make

http://localhost/products/default.aspx or
http://localhost/project/products/default.aspx

working as

http://localhost/project/default.aspx?id=4

So, you should call http://localhost/products/default.aspx or
http://localhost/project/products/default.aspx to get it working.

As second, you page is under "/project" and the config key refer to
"/"

<add key="/Default.aspx?id =4" value="/products/default.aspx" />
Mar 12 '07 #8
On Mar 12, 10:41 am, "Milsnips" <milsn...@hotma il.comwrote:
Hi Alexey,

Thanks for the info, yes i understand what you mean however this is what i
am trying to achieve..

Sorry, but...

you have the following in the config

<add key="/Default.aspx?id =4" value="/products/default.aspx" />

It means you should call /products/default.aspx to rewrite from /
Default.aspx?id =4

Please check the original example at http://www.15seconds.com/issue/030522.htm

Mar 12 '07 #9
Hi Alexey,

yes you are right! i misunderstood it and was doing the key/value the wrong
way around that is why i was getting the problem.
I understand it now well. thanks again for your time and help.

regards,
Paul

"Alexey Smirnov" <al************ @gmail.comwrote in message
news:11******** **************@ j27g2000cwj.goo glegroups.com.. .
On Mar 12, 10:41 am, "Milsnips" <milsn...@hotma il.comwrote:
>Hi Alexey,

Thanks for the info, yes i understand what you mean however this is what
i
am trying to achieve..


Sorry, but...

you have the following in the config

<add key="/Default.aspx?id =4" value="/products/default.aspx" />

It means you should call /products/default.aspx to rewrite from /
Default.aspx?id =4

Please check the original example at
http://www.15seconds.com/issue/030522.htm

Mar 13 '07 #10

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

Similar topics

0
1692
by: PJdotnet | last post by:
Hi, I'm trying to use out of the box "XmlSerializerSectionHandler" section handler (without doing any custom section handler devlopment) and although I've gone thruogh all the CMAB documentation and 'quick starts' it seems I can't find the XML schema which this section handler expects to see in the configuration file. Here is the CMAB section of my 'web.config' file:
0
2253
by: Ricardo Pereira | last post by:
Hi, I wrote a simple program to test the "out-of-the-box" functionalities of the CMAB (Configuration Management Application Block). After having added 2 values to an hashtable, and having written that hashtable (using the XmlHashtableSectionHandler) to an XML file (using the XmlFileStorage) I try to read back the hashtable with those values. I am adding a "string" value (with a string key) and a "double" value (also with a string key) to...
4
46728
by: Devante | last post by:
Hi, I am fairly new to ASP.NET and have been working on a web form that will allow a user to upload images to a database. I have found a sample web form that I have been trying to get working, and the web form loads up fine but upon submitting the image, it comes with the following error: The ConnectionString property has not been initialized. Description: An unhandled exception occurred during the execution of the current web...
0
1748
by: yatharth | last post by:
Hi Well i tell you the situation , i am having the configsection settings like below. what i need to do is to display the sections automatically when i add new section name. after this the all section settings coresponding to section name will
1
4869
by: Jason | last post by:
Hi, I'm trying to integrate Microsoft's Configuration Management Application Block (CMAB), and have run into a bit of trouble. Would appreciate any input anybody could provide at this point. I simply keep running into exceptions when trying to integrate the block into my app. Here's what I've done thus far: 1. Installed the CMAB 2. Started a new C# project.
1
1934
by: R. Raghuraman | last post by:
Hi, Q1: Do the section handlers in .NET work with CMAB? The CMAB seems to say so, but I am not sure. Q2: I am having trouble using CMAB with the standard section handler - I've been able to use CMAB with the HashtableSectionHandler. However, when I try to replace this with DictionarySectionHandler, I get a null reference exception: See below for App.config file and the referenced config file.
2
4363
by: Joseph Geretz | last post by:
Parser Error Message: Only one <configSections> element allowed. It must be the first child element of the root <configuration> element. OK, fine, easy enough to fix, I just need to copy and paste this block to where .NET wants it to be. But I can't help but think, why??? Doesn't this insistense on ordinal placement run counter to the whole XML 'philosophy'? I mean the node "/configuration/configSections" should be just as accessible...
5
1545
by: Jeff | last post by:
ASP.NET 2.0 This code crashes. It generate this error: Value cannot be null. Parameter name: type I've created some custom web.config settings and this crash is related to accessing theme custom settings. This code is where the crash occur: _instance = (DAL)Activator.CreateInstance(Type.GetType(min.test.Config.Settings.msgElement.ProviderType));
0
1597
by: BrianKer | last post by:
Hi! It's my first discussion on this forum. First I have a exe like this below (the object can invoke by console) public class DynamicLoad { public Type AssemblyType = null; public Assembly TestAssembly1 = null; public DynamicLoad () { string load_path = "..\OuterAssembly1\OuterAssembly1.dll"; TestAssembly1 = Assembly.LoadFrom(load_path);
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.