473,769 Members | 6,203 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 2719
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
1690
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
46727
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
1747
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
9589
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
9423
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,...
0
10211
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9994
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,...
1
7409
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5299
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
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
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.