473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

VirtualPathProvider without a file name

Hi all,

I am working on a VPP and i would need some help.

I built my VPP using the model in the Sept 06 issue of Visual Studio
Magazine article RESTful ASP.NET app (Page 46).

I got the code done (In C# instead of VB.NET) and if i use the url
http://locahost/Test all i get is the 404 message from IIS.

I mapped an extension (.ip) throught the .NET dll and if i type
http://localhost/test.ip then it works.

I would like to get ride of the extension.

Notes:
The test directory doesn't exists on the hard drive, the point of using
a VPP was that i didn't have to create the directory or a file, from
what i understood. All the info is in a db and will be retreived from
there.
I am using VS 2005, SQL 2005 standard, IIS 6.0. Win XP pro SP2 on my pc
and Win 2k3 on the production server.

Anybody can help me?

Nov 22 '06 #1
1 1867
I believe what you are looking for is to map a wildcard ( .*) mapping in IIS
to the ASPNET Isapi dll.

Here's a link, you can find many more:

http://scottwater.com/blog/articles/Wildcard.aspx

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"md*****@paradox.ca" wrote:
Hi all,

I am working on a VPP and i would need some help.

I built my VPP using the model in the Sept 06 issue of Visual Studio
Magazine article RESTful ASP.NET app (Page 46).

I got the code done (In C# instead of VB.NET) and if i use the url
http://locahost/Test all i get is the 404 message from IIS.

I mapped an extension (.ip) throught the .NET dll and if i type
http://localhost/test.ip then it works.

I would like to get ride of the extension.

Notes:
The test directory doesn't exists on the hard drive, the point of using
a VPP was that i didn't have to create the directory or a file, from
what i understood. All the info is in a db and will be retreived from
there.
I am using VS 2005, SQL 2005 standard, IIS 6.0. Win XP pro SP2 on my pc
and Win 2k3 on the production server.

Anybody can help me?

Nov 22 '06 #2

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

Similar topics

3
by: Jonathan Buckland | last post by:
Can someone give me an example how to append data without having to load the complete XML file. Is this possible? Jonathan
5
by: Ariel Dolan | last post by:
Can I use HtmlInputFile to only get the selected file name but not actually upload the file? Clicking the control's Browse button let's the user select a file. All I need is the HtmlInputFile...
0
by: Kenny | last post by:
Help...wimper.. been trying to get a virtualpathprovider to work and I have to be missing something. I want users to be able to enter something like mydomain.com/userentereddirectory/ and have...
0
by: Pavel Kocar | last post by:
Hi all, how to detect existing .ascx control in Net 2.0? I try to use method in VirtualPathProvider: HostingEnvironment.VirtualPathProvider.FileExists("~/App_UserControls/ucDataPager.ascx");...
1
by: VV | last post by:
I've created virtualpathprovider class in my application. Everything is ok in developer enviroment (asp.net dev server), but when I switch to IIS everything crashes with Server 500 and 404 error....
0
by: forge1968 | last post by:
I want to handle URLs like this on my IIS site: http://localhost/myapp/REST/foo/1 ('REST/foo/1' doesn't exist - I'll dynamically create the content). I have implemented my own...
0
by: Shane | last post by:
Hello, I'm using VirtualPathProvider for a CMS-like system. As soon as I register the VPP I can no longer debug code with a normal Build -- any changes that I've made since the first build are...
5
by: Charles Zhang | last post by:
I am creating dynamic web pages according to the user inputs from a web page. For instance, a user typed in a text, I would want the text being the source code of the dynamic page. My...
1
by: Sriram Srivatsan | last post by:
Hi We are trying to build an application where we render some of the .aspx pages from the database using a class derived from System.Web.Hosting.VirtualPathProvider. Users configure the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.