Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 25th, 2009, 11:49 PM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
Exclamation IIS - Other - Need help my asp in iis

hello guys,

my problem is that when i try to submit my form i redirected
to page cannot be displayed

HTTP 405 - Resource not allowed
Internet Information Services

i have configured my asp page and enabled default document on the directory and my form looks like this

<form action="/?page=1" method="post" name="form1">
<input type="submit">
</form>

and i wonder why its not working, it works fine on my webhosting

Reply With Quote
  #2  
Old May 26th, 2009, 03:46 AM
icoombs's Avatar
icoombs icoombs is offline
Moderator
Click here for more information.
 
Join Date: Dec 2006
Location: West London, UK
Posts: 2,190 icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 21 h 26 m 5 sec
Reputation Power: 731
Send a message via MSN to icoombs Send a message via Skype to icoombs
Is your index page setup to accept query string parameters as the action of the form will effectively be calling "index.asp?page=1" or whatever your default document is set to.
__________________
Hope this advice helps.

If so please show your appreciation by adding reputation points (click gauge image on top right of this post).

- Post your code - Post your errors - Be clear - Be courteous -

AND PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed.

Visit My ASP Free Members Club Profile

Reply With Quote
  #3  
Old May 26th, 2009, 03:51 AM
icoombs's Avatar
icoombs icoombs is offline
Moderator
Click here for more information.
 
Join Date: Dec 2006
Location: West London, UK
Posts: 2,190 icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 21 h 26 m 5 sec
Reputation Power: 731
Send a message via MSN to icoombs Send a message via Skype to icoombs
Is your default document an ASP page i.e. index.asp or default.asp or is it an HTML file as in index.htm?

Reply With Quote
  #4  
Old May 26th, 2009, 05:08 AM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
Exclamation

thanks for the reply

yeah its default.asp or an asp page not .html page.

i just set my default document to default.asp

Reply With Quote
  #5  
Old May 27th, 2009, 08:27 PM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
Exclamation

any ideas anyone?

your help is greatly appreciated

Reply With Quote
  #6  
Old May 27th, 2009, 09:32 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,237 mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h
Reputation Power: 2012
try this:
Code:
<form action="index.asp?page=1" method="post" name="form1">
__________________
Come JOIN the party!!!

Quote of the Month:
Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious.

Questions to Ponder:
You can be overwhelmed and underwhelmed, but why can't you be simply whelmed?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #7  
Old May 28th, 2009, 02:24 AM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
Exclamation

Quote:
Originally Posted by mehere
try this:
Code:
<form action="index.asp?page=1" method="post" name="form1">


i mean...

i want to hide my webpage extension
thats why i add my asp page as default document on the iis coniguration.
it works fine on a "<a href="/?page=1">try</a>"
but doesn't work on form submition.

<form action="index.asp?page=1" method="post"> yup this one works

but
i want this one
<form action="/page=1" method post>

sorry for my bad english
hope you could help me
setup my iis passing only querystrings on forms

Reply With Quote
  #8  
Old May 28th, 2009, 04:06 AM
icoombs's Avatar
icoombs icoombs is offline
Moderator
Click here for more information.
 
Join Date: Dec 2006
Location: West London, UK
Posts: 2,190 icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 21 h 26 m 5 sec
Reputation Power: 731
Send a message via MSN to icoombs Send a message via Skype to icoombs
If the form page is in the same folder as the index page try...

Code:
<form action="?page=1" method="post">

Reply With Quote
  #9  
Old May 28th, 2009, 11:17 PM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
Red face

Quote:
Originally Posted by icoombs
If the form page is in the same folder as the index page try...

Code:
<form action="?page=1" method="post">


yup i tried that one but it gives me http 405 resource not allowed?
i think theres a problem with my iis

Reply With Quote
  #10  
Old May 29th, 2009, 03:17 AM
icoombs's Avatar
icoombs icoombs is offline
Moderator
Click here for more information.
 
Join Date: Dec 2006
Location: West London, UK
Posts: 2,190 icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 21 h 26 m 5 sec
Reputation Power: 731
Send a message via MSN to icoombs Send a message via Skype to icoombs
Actually thinking about it, leaving the action attribute blank or not specifying a file name just parameters defaults to the same page. So if your form is frm.asp and have no action attribute or just a parameter like ?page=one then submitting the form will reload the frm.asp.

If you say it works on your web host then i would look at your IIS, off the top of my head check the Application Configuration, Mappings tab then check that the asp entry has GET,HEAD,POST,TRACE in the verbs section if it is set to limited to:

Reply With Quote
  #11  
Old June 3rd, 2009, 01:04 AM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
i followed your instructions and still i received the same error, is there any other solutions you can share?
btw thanks a lot for your reply

Quote:
Originally Posted by icoombs
Actually thinking about it, leaving the action attribute blank or not specifying a file name just parameters defaults to the same page. So if your form is frm.asp and have no action attribute or just a parameter like ?page=one then submitting the form will reload the frm.asp.

If you say it works on your web host then i would look at your IIS, off the top of my head check the Application Configuration, Mappings tab then check that the asp entry has GET,HEAD,POST,TRACE in the verbs section if it is set to limited to:

Reply With Quote
  #12  
Old June 3rd, 2009, 03:25 AM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
i even tried putting the directory in my form's action

Code:
<form name="form1" action="../mytest/?page=1" method="post">
<input type="text" name="test">
<input type="submit" value="submit">
</form>


but still no luck , i think my iis here is screwed how i wish i can find solution to this one

Reply With Quote
  #13  
Old June 3rd, 2009, 03:38 AM
icoombs's Avatar
icoombs icoombs is offline
Moderator
Click here for more information.
 
Join Date: Dec 2006
Location: West London, UK
Posts: 2,190 icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level)icoombs User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 21 h 26 m 5 sec
Reputation Power: 731
Send a message via MSN to icoombs Send a message via Skype to icoombs
wiil it work if you add the page name to the action...

Code:
<form name="form1" action="../mytest/PageName.asp?page=1" method="post">
<input type="text" name="test">
<input type="submit" value="submit">
</form>

Reply With Quote
  #14  
Old June 4th, 2009, 10:35 PM
weeps weeps is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 102 weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level)weeps User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 5 m 44 sec
Reputation Power: 7
yes it works fine with pagename name included, its kinda weird ive checked already the application mappings and and in asp extension ive edited limit to GET,HEAD,POST,TRACE and still i received resource not allowed

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > IIS - Other - Need help my asp in iis


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek