473,394 Members | 1,699 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,394 software developers and data experts.

What are the possible reasons for this error?

Hello, friends, help please:

Deployed a web app, (it worked fine in IDE). The first page displayed
correctly. Then when I clicked Submit to go to the second page, I got errors:

The page you are looking for cannot be displayed because the page address is
incorrect.

HTTP 405 - Resource not allowed
Internet Information Services

In the Page_Load() of the first page, I had:

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if (this.IsPostBack)
{
Server.Transfer("SecondPage.aspx");
}
}

It was so simple, there should be no error, it should go to the second page?

Any ideas? Thanks a lot.
Dec 13 '05 #1
2 1006
Is the page address correct?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Andrew" <An****@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hello, friends, help please:

Deployed a web app, (it worked fine in IDE). The first page displayed
correctly. Then when I clicked Submit to go to the second page, I got
errors:

The page you are looking for cannot be displayed because the page address
is
incorrect.

HTTP 405 - Resource not allowed
Internet Information Services

In the Page_Load() of the first page, I had:

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if (this.IsPostBack)
{
Server.Transfer("SecondPage.aspx");
}
}

It was so simple, there should be no error, it should go to the second
page?

Any ideas? Thanks a lot.

Dec 13 '05 #2
Raj
Try instead of Server.Transfer, use Response.Redirect("pagename.aspx");
and if the second page is in any other folder than the first page specify
the folder name before the pagename

Try to specify the pagename directly in the address bar and check if can
access.

Raj

"Andrew" wrote:
Hello, friends, help please:

Deployed a web app, (it worked fine in IDE). The first page displayed
correctly. Then when I clicked Submit to go to the second page, I got errors:

The page you are looking for cannot be displayed because the page address is
incorrect.

HTTP 405 - Resource not allowed
Internet Information Services

In the Page_Load() of the first page, I had:

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if (this.IsPostBack)
{
Server.Transfer("SecondPage.aspx");
}
}

It was so simple, there should be no error, it should go to the second page?

Any ideas? Thanks a lot.

Dec 14 '05 #3

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

Similar topics

3
by: Joerg Toellner | last post by:
Dear Group, i have a self written c++-class that is used in many projects from many programmers. The functionality of this class requests, for some reasons, that any instance (object) of this...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
2
by: Steven T. Hatton | last post by:
I'm carrying on a discussion in a nother context regarding the value and usefulness of data types. Part of that discussion has to do with how data types might be implemented in the language...
39
by: ferrad | last post by:
I am trying to open a file for appending. ie. if the file exists, open it for appending, if not, create it. I am getting back a NULL pointer, and do not know why. Here is my code: FILE...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
4
by: Andrew | last post by:
Hello, friends, this has driven us nuts! We created a COM component using VB 6.0. This component was put in a .aspx page (v1.1) like the follows: <object style='Z-INDEX: 129; LEFT: 172px;...
9
by: xz | last post by:
What sense do h files make in c/cpp? I never thought about this question before. Does the existence of h files make sense at all? Why do we need to declare functions in h files and...
5
by: adam.timberlake | last post by:
I've just finished reading the article below which goes into some depth about exceptions. The article was rather lucid and so I understand how to implement it all, the thing I'm having trouble with...
32
by: Stephen Horne | last post by:
I've been using Visual C++ 2003 for some time, and recently started working on making my code compile in GCC and MinGW. I hit on lots of unexpected problems which boil down to the same template...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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...

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.