0

Hi All,

I'm trying to implement MVC pattern (Note: not by using ASP.net MVC framework). I'm not able to do view selection based on http request processing.I have added custom tag in web.config for URL mapping like this:

<controller.mapping>    <entries>      <entry key="/view/ActualPage1.aspx" url="ActualPage1.aspx" />      <entry key="/view/ActualPage2.aspx" url="ActualPage2.aspx" />    </entries>  </controller.mapping>
 <controller.mapping>

    <entries>

      <entry key="/view/ActualPage1.aspx" url="ActualPage1.aspx" />

      <entry key="/view/ActualPage2.aspx" url="ActualPage2.aspx" />

    </entries>

  </controller.mapping>

But, I'm getting the following error.

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section controller.mapping.

Please help me on this....

Thanks

Venkatesha

Edited by __avd: Added [code] tags. For easy readability, always wrap programming code within posts in [code] (code blocks).

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by __avd
0

>I'm trying to implement MVC pattern (Note: not by using ASP.net MVC framework).

Do not use web.config create your own configuration file instead.

0

How do I read configuration stuff from custom config file? Can you pls help me with some code ?

0

>Can you pls help me with some code ?

I will help you but I don't have a code.

How do I read configuration stuff from custom config file?

You may use class from Xml namespace or DataSet class.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.