473,513 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS5 Default File with Parameters?

2 New Member
I need to be able to have a default file in IIS5.0 that allows me to send parameters.

For instance: www.server.com/Test?bla=bla
instead of:
www.server.com/Test/file.asmx?bla=bla

When I set the default file for www.server.com/Test to file.asmx I get "Method not allowed" errors. Though, when I type out the full URI it will work fine.

Additionally, I need a similar thing. I need all requests to www.server.com/test2 to use the non-existent default file of file.cdsproxy. This way my speciall dll for the cdsproxy extension will fire. Though, It looks like IIS tests for mappings Before it adds the default file to the requested URI?
Dec 20 '07 #1
3 2475
kenobewan
4,871 Recognized Expert Specialist
One way would be URL Rewriting in ASP.NET
Dec 21 '07 #2
btarb24
2 New Member
Thank you for the suggestion. I went and read up on it a bit but now run into the question, how do I map asp.net since I need to request only a directory?

My requested URL needs to be server.com/LiveJobControl?sessionID=abc

I need to redirect that to server.com/LiveJobControl/LiveJobControl.asmx?sessionID=abc

would an ASP.net redirect be applicable in this situation? If so, how would I create a mapping to reference aspnet_isapi.dll from IIS since there technically isn't a file extension yet.

It looks like if I use a default document then IIS just discards my parameters when It loads the document. any thoughts?
Dec 21 '07 #3
kenobewan
4,871 Recognized Expert Specialist
It's important to understand that the ASP.NET engine gets its hands only on incoming Web requests whose extensions are explicitly mapped to the aspnet_isapi.dll in IIS. The events used are events of the System.Web.HttpApplication class. Notice with rewrite what the browser's address bar the URL reads and the user is actually are not the same thing. HTH.
Dec 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3027
by: Flemming Joensson | last post by:
I have an odd problem. I use PHP 4.3.2 I use Apache 1.3.28 on port 8080 I use IIS5 in Win2k on port 80 Both Apache and IIS use the same PHP version, and I thought they both read the %Systemroot%\php.ini - however, only when I execute ini_get('SMTP') in a php page on the Apache server I get the value from PHP.ini - which is test.com.
46
3460
by: J.R. | last post by:
Hi folks, The python can only support passing value in function call (right?), I'm wondering how to effectively pass a large parameter, such as a large list or dictionary? It could achieved by pointer in C++, is there such way in Python? Thansk in advance. J.R.
26
2453
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso = CreateObject("Scripting.FileSystemObject") set fold = fso.GetFolder(folderspec) for each subfolder in fold.subFolders Response.Write(subfolder.name & "<br>")
3
3737
by: John Chertudi | last post by:
We are poised to migrate about 600 ASP sites from a single IIS5 server to a new pair of IIS6 servers. However, it appears that all files with includes like: <!-- #include virtual="../../includes/file.asp" --> will not work on IIS 6, it returns ASP 0126, include file not found. We have enabled parent paths, but I can't find any...
2
4982
by: Ekim | last post by:
hy, I've got a question according default parameters of functions that are accessed from different files: ---- logging.h ---- void LogTrace(const char* errorLocation, const char* errorInfo = "-"); // define default-param ---- end of logging.h ---
1
1238
by: Luis Esteban Valencia Muñoz | last post by:
Hello, my customer has w2k with iis5. My boss says that I have to developer with vs.net 2002 because they have that configuration. He is not an expert as me so I think he is wrong. The an THe answer I gave to him is the only thing the customer needs is FrameWork 1.1 and that I can work on my office with vs.net 2003 and then generate a setup...
14
2455
by: Mark B | last post by:
Our webhost (www.usbusinessweb.net) had a W2K IIS5 server crash after a scheduled hard-boot occurred during a ms-security patch install overnight. They couldn't get the server working again so they transferred our site www.orbisoft.com to a new W2003 IIS6 server they set up. That was a week ago. Since that transfer, all of our ASPX pages...
6
2101
by: Mark | last post by:
I have a problem with a template class defined: // start matrix.h file template <class Tclass Matrix { public: Matrix() { // default constructor } Matrix(const Subscript rows, const Subscript cols)
4
3417
by: S.Tedeschi | last post by:
Hi all guru, for sure I'm too old for a bunch of no-sleep-nights. M$' drivin' me nut. Switching my ASP.NET 1.1 apps to 2.0 has made me tryin' for several days with no success. -My IIS5.1 (Xp Media Center, SP2) refuses to serve even the simplest aspx page (1 button + 1 textBox), rendering only "Server Application Error The server has...
0
7178
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...
0
7397
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. ...
1
7125
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...
0
5703
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...
1
5102
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4757
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...
0
3252
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...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
470
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...

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.