Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Front Controller Implementation in ASP.NET is full of BUGS

Reply
Thread Tools

Front Controller Implementation in ASP.NET is full of BUGS

 
 
=?Utf-8?B?TkdN?=
Guest
Posts: n/a
 
      01-24-2004
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: http://www.velocityreviews.com/forums/(E-Mail Removed) as well as i am desperate to solve this problem

Thanks in advance
NG

 
Reply With Quote
 
 
 
 
Nick
Guest
Posts: n/a
 
      01-25-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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: (E-Mail Removed) as well as i am

desperate to solve this problem:
>
> Thanks in advance!
> NGM
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugs and Bugs...get rid of them Jason Computer Security 1 01-31-2006 10:47 PM
Still use 'ruby-bugs' for Ruby bugs? Josef 'Jupp' Schugt Ruby 2 11-04-2004 10:10 PM
Front Controller pattern! Colin Basterfield ASP .Net 2 12-22-2003 09:27 PM
Front Controller design pattern and HTTP handler Magdelin ASP .Net 2 12-22-2003 04:14 PM
Redirecting Command in Front Controller moid ASP .Net 0 12-19-2003 10:48 AM



Advertisments