Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Dynamically mapping a URL

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  ASP.NET 1.1 June 2003 rollup  
Author Message
brianmtyler

External


Since: Feb 12, 2004
Posts: 6



(Msg. 1) Posted: Thu Feb 12, 2004 2:12 pm
Post subject: Dynamically mapping a URL
Archived from groups: microsoft>public>inetserver>iis (more info?)

Is there any way in IIS/ASP.NET to dynamically map a URL to a class?
Basically I have code (implements IHttpHandler) in the GAC that I want to
handle certain URLs, but I want the mapping to be done at runtime, rather
than putting it in the config file or creating an ashx file in my directory
path.

Brian

 >> Stay informed about: Dynamically mapping a URL 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Fri Feb 13, 2004 12:33 am
Post subject: Re: Dynamically mapping a URL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This is an ASP.Net question. Try microsoft.public.dotnet.framework.aspnet
or www.asp.net Forums .

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Brian Tyler" <brianmtyler.RemoveThis@yahoo.com> wrote in message
news:%23jVyptY8DHA.696@tk2msftngp13.phx.gbl...
Is there any way in IIS/ASP.NET to dynamically map a URL to a class?
Basically I have code (implements IHttpHandler) in the GAC that I want to
handle certain URLs, but I want the mapping to be done at runtime, rather
than putting it in the config file or creating an ashx file in my directory
path.

Brian

 >> Stay informed about: Dynamically mapping a URL 
Back to top
Login to vote
brianmtyler

External


Since: Feb 12, 2004
Posts: 6



(Msg. 3) Posted: Sat Feb 14, 2004 3:39 pm
Post subject: Re: Dynamically mapping a URL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I didn't want to cross-post until it has fermented in this group a bit, but
it actually is both and IIS and ASP.NET question.

IIS is configured to send certain extentions to the ASP.NET process by
default. If I wanted a new extension handled by ASP.NET I would need to go
into the IIS configuration and change it. However, I don't know if there is
an API for that. Ideas?

"David Wang [Msft]" <someone.RemoveThis@online.microsoft.com> wrote in message
news:%23mlDHRt8DHA.3404@TK2MSFTNGP09.phx.gbl...
 > This is an ASP.Net question. Try microsoft.public.dotnet.framework.aspnet
 > or <a style='text-decoration: underline;' href="http://www.asp.net" target="_blank">www.asp.net</a> Forums .
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no
rights.
 > //
 > "Brian Tyler" <brianmtyler.RemoveThis@yahoo.com> wrote in message
 > news:%23jVyptY8DHA.696@tk2msftngp13.phx.gbl...
 > Is there any way in IIS/ASP.NET to dynamically map a URL to a class?
 > Basically I have code (implements IHttpHandler) in the GAC that I want to
 > handle certain URLs, but I want the mapping to be done at runtime, rather
 > than putting it in the config file or creating an ashx file in my
directory
 > path.
 >
 > Brian
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamically mapping a URL 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Sun Feb 15, 2004 3:13 am
Post subject: Re: Dynamically mapping a URL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

IIS Administration API is able to configure what extensions are hanlded by
which Script Engine. Look up MSDN documentation for the "ScriptMaps"
property.

<a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/alphabeticmetabasepropertylist.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissd...is/alph</a>

Look at how %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs modifies
properties.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Brian Tyler" <brianmtyler.DeleteThis@yahoo.com> wrote in message
news:eFQBvny8DHA.2656@TK2MSFTNGP11.phx.gbl...
I didn't want to cross-post until it has fermented in this group a bit, but
it actually is both and IIS and ASP.NET question.

IIS is configured to send certain extentions to the ASP.NET process by
default. If I wanted a new extension handled by ASP.NET I would need to go
into the IIS configuration and change it. However, I don't know if there is
an API for that. Ideas?

"David Wang [Msft]" <someone.DeleteThis@online.microsoft.com> wrote in message
news:%23mlDHRt8DHA.3404@TK2MSFTNGP09.phx.gbl...
 > This is an ASP.Net question. Try microsoft.public.dotnet.framework.aspnet
 > or <a style='text-decoration: underline;' href="http://www.asp.net" target="_blank">www.asp.net</a> Forums .
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no
rights.
 > //
 > "Brian Tyler" <brianmtyler.DeleteThis@yahoo.com> wrote in message
 > news:%23jVyptY8DHA.696@tk2msftngp13.phx.gbl...
 > Is there any way in IIS/ASP.NET to dynamically map a URL to a class?
 > Basically I have code (implements IHttpHandler) in the GAC that I want to
 > handle certain URLs, but I want the mapping to be done at runtime, rather
 > than putting it in the config file or creating an ashx file in my
directory
 > path.
 >
 > Brian
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamically mapping a URL 
Back to top
Login to vote
brianmtyler

External


Since: Feb 12, 2004
Posts: 6



(Msg. 5) Posted: Mon Feb 16, 2004 1:19 pm
Post subject: Re: Dynamically mapping a URL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks. That is what I was looking for.

Brian

"David Wang [Msft]" <someone RemoveThis @online.microsoft.com> wrote in message
news:ut6e1u58DHA.2316@TK2MSFTNGP09.phx.gbl...
 > IIS Administration API is able to configure what extensions are hanlded by
 > which Script Engine. Look up MSDN documentation for the "ScriptMaps"
 > property.
 >
 >
<a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/alphabeticmetabasepropertylist.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissd...is/alph</a>
 >
 > Look at how %SYSTEMDRIVE%\Inetpub\AdminScripts\adsutil.vbs modifies
 > properties.
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no
rights.
 > //
 > "Brian Tyler" <brianmtyler RemoveThis @yahoo.com> wrote in message
 > news:eFQBvny8DHA.2656@TK2MSFTNGP11.phx.gbl...
 > I didn't want to cross-post until it has fermented in this group a bit,
but
 > it actually is both and IIS and ASP.NET question.
 >
 > IIS is configured to send certain extentions to the ASP.NET process by
 > default. If I wanted a new extension handled by ASP.NET I would need to go
 > into the IIS configuration and change it. However, I don't know if there
is
 > an API for that. Ideas?
 >
 > "David Wang [Msft]" <someone RemoveThis @online.microsoft.com> wrote in message
 > news:%23mlDHRt8DHA.3404@TK2MSFTNGP09.phx.gbl...
  > > This is an ASP.Net question. Try
microsoft.public.dotnet.framework.aspnet
  > > or <a style='text-decoration: underline;' href="http://www.asp.net" target="_blank">www.asp.net</a> Forums .
  > >
  > > --
  > > //David
  > > IIS
  > > This posting is provided "AS IS" with no warranties, and confers no
 > rights.
  > > //
  > > "Brian Tyler" <brianmtyler RemoveThis @yahoo.com> wrote in message
  > > news:%23jVyptY8DHA.696@tk2msftngp13.phx.gbl...
  > > Is there any way in IIS/ASP.NET to dynamically map a URL to a class?
  > > Basically I have code (implements IHttpHandler) in the GAC that I want
to
  > > handle certain URLs, but I want the mapping to be done at runtime,
rather
  > > than putting it in the config file or creating an ashx file in my
 > directory
  > > path.
  > >
  > > Brian
  > >
  > >
  > >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Dynamically mapping a URL 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Wildcard Mapping bug in XP? - Hi, Not sure whether this is a known problem, but I stumbled upon a problem with wildcard mappings in IIS (on Windows XP) If you add a wildcard mapping to a Virtual Directory that has a period (.) in the name, the mapping seems to prevent IIS from..

Network mapping - Hi Folks, i need to map an IIS Virtual Directory on a mapped network drive. the matter is i can map it from the Internet Services Manager but if i specify the mapped drive (i.e. Z:\) i cannot access it by IE (and the IIS Manager shows the error icon) and...

Site mapping - Hi all, maybe this is stupid question, but ... That's the situation: I have a Win2K domain controller, which acts as web-server also. This is the only server, exposed to internet. In it there is a second NIC, connected to the internal network. On one of...

Site Mapping - I wish to redirect to a page which is located on different web site of different server when the user load a page. But, I don't want to use Response.Redirect method as it needs to connect back to the user's browser. I just want to forward to a page....

Web service num er mapping - I am required by my company to zip the IIS logs stored on e:\logs\w3svc[n]\exyymmdd.log on a regular basis. Writing a script to do this is trivial. However, the part I am finding non trivial is how do I map from the w3svc[n] to web addresses. VBscript is...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]