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

>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.

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

>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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.