Hi, Philipp.
If all you want to do is add a specific extension
to the pages which are served by your server, use this :
<httpHandlers>
<add verb="GET, HEAD, POST, DEBUG" path="*.angel"
type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>
<compilation>
<buildProviders>
<add extension=".angel" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
</compilation>
and map the extension .angel to aspnet_isapi.dll in the
Application's configuration section in the Internet Service Manager.
That will cause ASP.NET to process the .angel extension
in the exact same way it processes files with the .aspx extension.
That should be enough for your needs.
If it isn't, post what you want to do with your .angel extension,
that can't be done in an aspx file.
See my custom extension .juan running at :
http://asp.net.do/test/version.juan
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
Philipp Schmid said:
I've also tried to create another class library (HandlerLib) project that
contains the ASHX file and then reference that assembly from my web site
project (which promptly adds HandlerLib.dll to the Bin directory). When I
then use the assembly name HandlerLib in my web.config file it still
doesn't work. Maybe I need to put it in the GAC?
- Philipp
BTW, I am using VS.NET 2005 B2 in case that makes any difference.
Philipp Schmid said:
Sorry about that:
Parser Error Message: The 'type' attribute must be set to a valid Type
name (format: <typename>[,<assemblyname>])
- Philipp
What is the error ?
You did not include it.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
I am trying to add a Generic Handler (ASHX) to my web site solution. In
order to do that I have to specifiy an assembly name in the web.config
file. But since 2.0 web sites are no longer pre-compiled I get an error
when trying to load the first page.
<system.web>
<httpHandlers>
<add verb="GET,POST" path="*.angel" type="Namespace.MyHandler" />
</httpHandlers>
</system.web>
I get the following error:
Line 51: <system.web>
Line 52: <httpHandlers>
Line 53: <add verb="GET,POST" path="*.angel"
type="Namespace.MyHandler" />
Line 54: </httpHandlers>
Line 55: </system.web>
- Philipp