473,385 Members | 1,353 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,385 software developers and data experts.

Front Controller Implementation in ASP.NET is full of BUGS

NGM
Hello All

When implementing FrontController sample MSDN
I am facing a lot of problems

try implementing the front controller patterm sample provided by microsoft: (http://msdn.microsoft.com/library/de...ollerInASP.asp)

The irony of microsoft asp.net sample is it does not work...and the WORKAROUND as they say it is provide
in article (http://support.microsoft.com/default...7036#appliesto
explains that this is a design flaw in ASP.NET,!!!!!!!

anway if you tried that sample here is the error

It gives the error

Server Error in '/MVCProto1' Application
-------------------------------------------------------------------------------

Error executing child request for MVCSuccess.aspx.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Error executing child request for MVCSuccess.aspx

Source Error:

Line 34:
Line 35: context.Server.Transfer("MVCSuccess.aspx")

and here is microsofts explaination for this, and the solution is bad as well, it asks me to
add code in "Application_BeginRequest " which i cant as it breaks the design of Front Controller Pattern !!!!!

The crux of the problem is that you cannot to do a Server.Transfer in the HttpHandler..
Response.Redirect works but it does not call the Page_Load for the redirected page as well..

I want the solution for my problem

after looking different ways of impelementing MVC model in asp.net (first of all ASP.NET does not provide it!

i selected the Front controller approach as Microsoft proposed it (where else in MSDN) and now this occurs..

PLEASE TELL ME HOW TO SOLVE THIS PROBLEM OR TELL ME HOW TO IMPLEMENT MVC MODEL IN ASP.NET IN A VERY CLEAN WAY???

You can reply solutions to my id: ng********@hotmail.com as well as i am desperate to solve this problem

Thanks in advance
NG

Nov 18 '05 #1
1 2177
I believe looking at using a HttpModule allows you to successfully implement
front controller, though I havent implemented it myself. However you might
find that there are ways of devleoping a site that doesnt use Front
Controller, but provides a number of OO benefits you might be striving for
with this pattern. I am having some great success in using a base class for
providing my "same look and feel" concept, and then creating aspx files each
of my views. The code behind is not a controller in my system - I dont
think it being called that generally with the code behind is exactly
accurate. I see the code-behind as nothing more than a conduit between my
real controller and the view. In my view, the code-behind page is a view
class, and nothing more.

Hope that gives you some food for thought,

Nick.

"NGM" <ng********@hotmail.com> wrote in message
news:77**********************************@microsof t.com...
Hello All,

When implementing FrontController sample MSDN
I am facing a lot of problems,

try implementing the front controller patterm sample provided by microsoft:
(http://msdn.microsoft.com/library/de...-us/dnpatterns
/html/ImpFrontControllerInASP.asp)
The irony of microsoft asp.net sample is it does not work...and the WORKAROUND as they say it is provided in article (http://support.microsoft.com/default...7036#appliesto) explains that this is a design flaw in ASP.NET,!!!!!!!!

anway if you tried that sample here is the error:

It gives the error:

Server Error in '/MVCProto1' Application.
-------------------------------------------------------------------------- ------
Error executing child request for MVCSuccess.aspx.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Error executing child request for MVCSuccess.aspx.
Source Error:

Line 34:
Line 35: context.Server.Transfer("MVCSuccess.aspx");
and here is microsofts explaination for this, and the solution is bad as well, it asks me to add code in "Application_BeginRequest " which i cant as it breaks the design of Front Controller Pattern !!!!!!

The crux of the problem is that you cannot to do a Server.Transfer in the HttpHandler... Response.Redirect works but it does not call the Page_Load for the redirected page as well...
I want the solution for my problem!

after looking different ways of impelementing MVC model in asp.net (first of all ASP.NET does not provide it!)
i selected the Front controller approach as Microsoft proposed it (where else in MSDN) and now this occurs...
PLEASE TELL ME HOW TO SOLVE THIS PROBLEM OR TELL ME HOW TO IMPLEMENT MVC MODEL IN ASP.NET IN A VERY CLEAN WAY????
You can reply solutions to my id: ng********@hotmail.com as well as i am desperate to solve this problem:
Thanks in advance!
NGM

Nov 18 '05 #2

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

Similar topics

3
by: Prasad Patil | last post by:
Hi I am trying to understand the article http://msdn.microsoft.com/practices/type/Patterns/Enterprise/DesFrontController/...
2
by: Colin Basterfield | last post by:
Hi, has anyone (tried to) implement the Front Controller pattern as described at http://msdn.microsoft.com/architecture/patterns/ImpFrontControllerInASP/ I'm having trouble resolving the...
2
by: Magdelin | last post by:
I am trying to implement the front controller web presentation design pattern proposed by MS at the following link: http://msdn.microsoft.com/practices/type/patterns/enterpris...
2
by: Alok Jain | last post by:
Hi, We are using Front Controller implementation in our DotNet application. I am trying to hide URL in my application. This is based on Front Controller model. I am able to achieve if I do...
5
by: garethdjames | last post by:
A while ago I read news about ASP.Net 2.0 having support for the Front Controller model, In all the reports I have read and in the latest beta download I can see no implicit support for this...
3
by: Ashish | last post by:
Is anyone aware of a good Front Controller Pattern implementation in ASP.Net, we are developing a new product, and contemplating whether we should use Front Controller Pattern implementation, due...
4
by: Griff | last post by:
Two questions really, the first one "conceptual" and the other more involved with design: 1 - There are two schools of thought where I work on the role of the "controller" task. The first is...
4
by: Kunle Odutola | last post by:
WebForms used to be a Page controller architecture (in .NET 1.x) which severely limited (prevented?) true MVC designs with WebForms. Any ideas? -- Don't talk unless you can improve the silence.
1
by: Aquaren | last post by:
I have a framework that uses the front controller design pattern for a single point of entry to the application and the autoload function for includes. I am trying to incorporate AJAX into the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.