473,836 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Http Exception: Error executing child request for MVCSuccess.aspx

Source Error:

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

and here is microsofts explaination for this, and the solution is bad as well, it asks me to
add code in "Application_Be ginRequest " 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.Redire ct 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********@hotm ail.com as well as i am desperate to solve this problem

Thanks in advance
NG

Nov 18 '05 #1
1 2202
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********@hot mail.com> wrote in message
news:77******** *************** ***********@mic rosoft.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/ImpFrontControl lerInASP.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.Http Exception: Error executing child request for MVCSuccess.aspx .
Source Error:

Line 34:
Line 35: context.Server. Transfer("MVCSu ccess.aspx");
and here is microsofts explaination for this, and the solution is bad as well, it asks me to add code in "Application_Be ginRequest " 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.Redire ct 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********@hotm ail.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
4422
by: Prasad Patil | last post by:
Hi I am trying to understand the article http://msdn.microsoft.com/practices/type/Patterns/Enterprise/DesFrontController/ http://msdn.microsoft.com/practices/type/Patterns/Enterprise/ImpFrontControllerInASP/ [/url which describes Enterprise Solution Patterns Implementing Front Controller in ASP.NET Using HTTPHandler. When i created the web application and tried to run the same It gives me Parser Error Message: Unrecognized configuration...
2
1387
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 controller.mapping section in the web.config file, as it is used in UrlMap.cs and that is used by RedirectingCommand.cs in the samples given in the article above.
2
1919
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 e/desfrontcontroller/ Alternative source: Downloadable pdf for "Enterprise Solution Patterns Using Microsoft .NET" at http://msdn.microsoft.com/practices/type/Patterns/Enterpris
2
1945
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 not use postback in ASP.Net control. If I post back from a ASP.Net control it takes me to the correct page and the URL is displaeyd as it is.
5
1437
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 model Does anyone have any ideas?
3
2480
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 to the flexiblity it provides for navigation and loading views etc.... any pointers/comments would be appreciated. regards -ashish
4
1933
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 that the business object will provide the business rules and that the controller will implement the rules and then pass the result set to the view (i.e. do most of the grunt work).
4
1592
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
3039
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 framework, but the javascript calls to php ignore my front controller code when instantiating classes. Can someone please provide me with some hints on how I can make this work? Thank you.
0
9825
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
9673
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
10859
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...
0
10560
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10602
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,...
0
10260
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6984
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5653
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...
1
4463
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

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.