473,765 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp.net 2.0 - build provider for aspx?

Hello,

Using ASP.NET v2.0.40607.42, I'm attempting to create a new file
extension that should be handled exactly like "aspx" pages. For
example, I just want to rename an aspx page from "test.aspx" to
"test.extx" , where .extx extensions are handled in exactly the same way
as aspx pages.

In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element
(below) to web.config, and adding a IIS mapping of "extx" to
aspnet_isapi.dl l was sufficient:

<httpHandlers >
<add verb="*" path="*.extx" type="System.We b.UI.PageHandle rFactory"/>
</httpHandlers>

Now, in 2.0 I get this error:

There is no build provider registered for the extension '.extx'. You
can register one in the <compilation><b uildProviders> section in
machine.config or web.config. Make sure the appliesTo attribute
includes the value 'Web' or 'All'.

I cannot find any good reference about build providers. I don't think
I should have to write a custom build provider because I want the page
to use whatever standard aspx pages use. What is the default build
provider class used for aspx pages?
Any advice will be greatly appreciated!

Best,
chris

Nov 19 '05 #1
3 2907
I believe the config would look something like this for 2.0:

<buildProviders >
<add extension=".ext x" appliesTo="" type="System.We b.UI.PageHandle rFactory"
/>
</buildProviders>

Although I'm not 100% about the appliesTo attribute.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Hello,

Using ASP.NET v2.0.40607.42, I'm attempting to create a new file
extension that should be handled exactly like "aspx" pages. For
example, I just want to rename an aspx page from "test.aspx" to
"test.extx" , where .extx extensions are handled in exactly the same
way as aspx pages.

In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element
(below) to web.config, and adding a IIS mapping of "extx" to
aspnet_isapi.dl l was sufficient:

<httpHandlers >
<add verb="*" path="*.extx" type="System.We b.UI.PageHandle rFactory"/>
</httpHandlers>
Now, in 2.0 I get this error:

There is no build provider registered for the extension '.extx'. You
can register one in the <compilation><b uildProviders> section in
machine.config or web.config. Make sure the appliesTo attribute
includes the value 'Web' or 'All'.

I cannot find any good reference about build providers. I don't think
I should have to write a custom build provider because I want the page
to use whatever standard aspx pages use. What is the default build
provider class used for aspx pages?
Any advice will be greatly appreciated!
Best,
chris

Nov 19 '05 #2
<buildProviders >
<add
extension="Stri ng"
appliesTo="Stri ng"
type="String" />
</buildProviders>

extension is the File Extension
appliesTo is the Directory where the file resides
type is the Type Name of the build provieder class used to invoke the
compliation

This is an exert from:
"A First Look at ASP.NET v. 2.0" (Homer/Sussman/Howard) (Addison Wesley).
Pg 431-432

There is an update, newer version, of this book as well... go get it.
I suggest this to ALL who are working with 2.0

--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Christophe r Baldwin" <cb******@gmail .com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
Hello,

Using ASP.NET v2.0.40607.42, I'm attempting to create a new file
extension that should be handled exactly like "aspx" pages. For
example, I just want to rename an aspx page from "test.aspx" to
"test.extx" , where .extx extensions are handled in exactly the same way
as aspx pages.

In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element
(below) to web.config, and adding a IIS mapping of "extx" to
aspnet_isapi.dl l was sufficient:

<httpHandlers >
<add verb="*" path="*.extx" type="System.We b.UI.PageHandle rFactory"/>
</httpHandlers>

Now, in 2.0 I get this error:

There is no build provider registered for the extension '.extx'. You
can register one in the <compilation><b uildProviders> section in
machine.config or web.config. Make sure the appliesTo attribute
includes the value 'Web' or 'All'.

I cannot find any good reference about build providers. I don't think
I should have to write a custom build provider because I want the page
to use whatever standard aspx pages use. What is the default build
provider class used for aspx pages?
Any advice will be greatly appreciated!

Best,
chris

Nov 19 '05 #3
Chris,

What you want to do ( process a custom file extension ) is
poorly documented in the ASP.NET 2.0 beta documentation,
but fairly easy to do.

Here's what you need to do :

Open the Internet Services Manager.
If your folder isn't configured as an Application,
configure it as an Application before proceeding.

1. Right-click the virtual folder that contains
your ASP.NET application, and then click Properties.

2. Click the Configuration button.

3. Highlight and Click the .aspx application mapping, and then click Edit.

4. Select the text in the Executable text box,
and then press CTRL+C to copy the text to your clipboard.
Click Cancel to return to the Application Configuration dialog box.

5. Click the "Add" button, paste the clipboard text into the "Executable " textbox,
and write in the file extension you want ( chris, for example - don't include the dot)

6. In the Verbs section, click to select Limit To, and then copy and paste "GET, HEAD, POST, DEBUG"
( without the quotes ) in the text box.

Click OK 3 times to get out of the Application Properties.

Now, here's a sample web.config to enable the .chris extension :

web.config :
------------
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.web>
<httpHandlers >
<add verb="GET, HEAD, POST, DEBUG" path="*.chris" type="System.We b.UI.PageHandle rFactory"/>
</httpHandlers>
<compilation>
<buildProviders >
<add extension=".chr is" appliesTo="Web" type="System.We b.Compilation.P ageBuildProvide r" />
</buildProviders>
</compilation>
</system.web>
</configuration>
-----------------
That's it!

You can now access pages with the .chris extension,
and they will be processed just like .aspx pages are processed.

Easy, isn't it ?

Let us know how you do.

Juan T. Llibre
ASP.NET MVP
===========
"Christophe r Baldwin" <cb******@gmail .com> wrote in message news:11******** *************@z 14g2000cwz.goog legroups.com...
Hello,

Using ASP.NET v2.0.40607.42, I'm attempting to create a new file
extension that should be handled exactly like "aspx" pages. For
example, I just want to rename an aspx page from "test.aspx" to
"test.extx" , where .extx extensions are handled in exactly the same way
as aspx pages.

In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element
(below) to web.config, and adding a IIS mapping of "extx" to
aspnet_isapi.dl l was sufficient:

<httpHandlers >
<add verb="*" path="*.extx" type="System.We b.UI.PageHandle rFactory"/>
</httpHandlers>

Now, in 2.0 I get this error:

There is no build provider registered for the extension '.extx'. You
can register one in the <compilation><b uildProviders> section in
machine.config or web.config. Make sure the appliesTo attribute
includes the value 'Web' or 'All'.

I cannot find any good reference about build providers. I don't think
I should have to write a custom build provider because I want the page
to use whatever standard aspx pages use. What is the default build
provider class used for aspx pages?
Any advice will be greatly appreciated!

Best,
chris

4
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date: 11/11/2004
Nov 19 '05 #4

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

Similar topics

5
2977
by: DSISupport | last post by:
Hi, I'm planing to use the enterprise library in a new web project, and I was looking at the Security application block which came by defaul with one provider called database authentication provider. I want to develop new authentication provider that will work with LADP. My question where can I find a documentation and code samples on how to develop a new authentication provider? and how to entegrate this new provider with the...
2
1977
by: | last post by:
Hi all, How can I get a reference to my custom profile provider in my .aspx page? I have looked at httpcontext.current.profile. But from there where do I go? Ideally I would like to be able to get default profile provider without having to know the "name" configured in web.config. TIA!
3
1958
by: BS | last post by:
Hello everybody We are currently writting a small app that will be delivered on an Informix DB and a Sql Server DB. We will be doing some performance check pretty soon for both databases. Is anybody using something else other than the IBM informix provider, and the regular SqlServer provider coming with the .net framework ? And if so, anybody happy with the ones they chose ?
2
11793
by: WB | last post by:
Hi, I am revamping my company's website with ASP.Net 2.0. In order to use our existing user data in our SQL 2000, I have written a custom membership provider. However, when I try to logon with the Login control, it gives an error: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. Is it because I have not run the aspnet_regsql.exe yet? Do I have to?
8
5975
by: MR | last post by:
Is there a document or example that show how to write a MAPI server/provider? Is there was way to write it in .NET? this will be for an application that runs on XP but needs to exposes a third party store of contact information to an client application that can only get data from a MAPI source thanks m
6
1915
by: shapper | last post by:
Hello, What is the profiler provider type when using a Microsoft Access database? Thanks, Miguel
4
4733
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality above and beyond what the prodiver currently allows. I need the ability to access a user id and the user's permission id. With Forms authentication in 1.1, I would just create a custom identiy and principal and store the information in the identity....
0
2988
by: Scott M. | last post by:
I have a simple ASP .NET 2.0 page with no code added to it yet, just a couple of labels and textboxes. The page/project build just find and the page comes up as expected. However, when I look at the markup in the .aspx file, I've noticed that on the very first line (the page directives line), I have a blue-wavy underline with a message of: "There is no build provider registered for the extension". I've looked out on the web and all...
2
2715
by: =?Utf-8?B?TUNN?= | last post by:
I am using the compiler: Microsoft.VisualBasic.VBCodeProvider What are the different options I can specify using <providerOption>? So far I have: <system.codedom> <compilers> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System,
0
9568
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
10007
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
9951
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
9832
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
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
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
5275
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...
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.