473,396 Members | 2,018 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,396 software developers and data experts.

HELP: ASPX page shows up as normal HTML (ignores code-behind, etc...)

Here's the quick situation:
1. Using VS.NET I create 1 fully functioning aspx page, with code behind.
(Simple webform: It has a few text boxes, 1 hyperlink, 2 and buttons.)
2. I uploaded it to my website and it works PERFECTLY.
3. My friend has a webserver and wants me to stick the aspx page into his
web server. He says it has IIS and the .NET framework.
4. I copy the aspx page, the web.config file and the bin directory and
place it on his server.

Result:
The page shows up almost like straight html. No text boxes, just text. No
buttons. The hyperlink doesn't even appear on the page.
Any ideas?

Thanks.
Nov 18 '05 #1
5 1569
"VB Programmer" <Ro************************@juno.com> wrote in
news:u$**************@tk2msftngp13.phx.gbl:
Here's the quick situation:
1. Using VS.NET I create 1 fully functioning aspx page, with
code behind. (Simple webform: It has a few text boxes, 1
hyperlink, 2 and buttons.) 2. I uploaded it to my website and
it works PERFECTLY. 3. My friend has a webserver and wants me
to stick the aspx page into his web server. He says it has IIS
and the .NET framework. 4. I copy the aspx page, the web.config
file and the bin directory and place it on his server.

Result:
The page shows up almost like straight html. No text boxes,
just text. No buttons. The hyperlink doesn't even appear on
the page. Any ideas?


Try running this in a command (DOS) prompt:

aspnet_regiis -i

That should configure IIS to recognize ASP.NET files.

(aspnet_regiis.exe is located in
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 18 '05 #2
I ran it but I get this error now:
The page cannot be found
The page you are looking for might have been removed, had its name changed,
or is temporarily unavailable.

----------------------------------------------------------------------------
----

Please try the following:

a.. Make sure that the Web site address displayed in the address bar of
your browser is spelled and formatted correctly.
b.. If you reached this page by clicking a link, contact the Web site
administrator to alert them that the link is incorrectly formatted.
c.. Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

----------------------------------------------------------------------------
----

Technical Information (for support personnel)

a.. Go to Microsoft Product Support Services and perform a title search
for the words HTTP and 404.
b.. Open IIS Help, which is accessible in IIS Manager (inetmgr), and
search for topics titled Web Site Setup, Common Administrative Tasks, and
About Custom Error Messages.

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"VB Programmer" <Ro************************@juno.com> wrote in
news:u$**************@tk2msftngp13.phx.gbl:
Here's the quick situation:
1. Using VS.NET I create 1 fully functioning aspx page, with
code behind. (Simple webform: It has a few text boxes, 1
hyperlink, 2 and buttons.) 2. I uploaded it to my website and
it works PERFECTLY. 3. My friend has a webserver and wants me
to stick the aspx page into his web server. He says it has IIS
and the .NET framework. 4. I copy the aspx page, the web.config
file and the bin directory and place it on his server.

Result:
The page shows up almost like straight html. No text boxes,
just text. No buttons. The hyperlink doesn't even appear on
the page. Any ideas?


Try running this in a command (DOS) prompt:

aspnet_regiis -i

That should configure IIS to recognize ASP.NET files.

(aspnet_regiis.exe is located in
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/

Nov 18 '05 #3
Have you create the application from IIS console manager??

Right click in Application folder, Property, Virtual directory Tab,
Application Name -> Create.

Brun

"VB Programmer" <Ro************************@juno.com> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
I ran it but I get this error now:
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

-------------------------------------------------------------------------- -- ----

Please try the following:

a.. Make sure that the Web site address displayed in the address bar of
your browser is spelled and formatted correctly.
b.. If you reached this page by clicking a link, contact the Web site
administrator to alert them that the link is incorrectly formatted.
c.. Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

-------------------------------------------------------------------------- -- ----

Technical Information (for support personnel)

a.. Go to Microsoft Product Support Services and perform a title search
for the words HTTP and 404.
b.. Open IIS Help, which is accessible in IIS Manager (inetmgr), and
search for topics titled Web Site Setup, Common Administrative Tasks, and
About Custom Error Messages.

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"VB Programmer" <Ro************************@juno.com> wrote in
news:u$**************@tk2msftngp13.phx.gbl:
Here's the quick situation:
1. Using VS.NET I create 1 fully functioning aspx page, with
code behind. (Simple webform: It has a few text boxes, 1
hyperlink, 2 and buttons.) 2. I uploaded it to my website and
it works PERFECTLY. 3. My friend has a webserver and wants me
to stick the aspx page into his web server. He says it has IIS
and the .NET framework. 4. I copy the aspx page, the web.config
file and the bin directory and place it on his server.

Result:
The page shows up almost like straight html. No text boxes,
just text. No buttons. The hyperlink doesn't even appear on
the page. Any ideas?


Try running this in a command (DOS) prompt:

aspnet_regiis -i

That should configure IIS to recognize ASP.NET files.

(aspnet_regiis.exe is located in
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/


Nov 18 '05 #4
The directory is already in IIS because it was a "regular" website. I'm
simply adding 1 ASPX page (with code-behind) to this "regular" website. Is
there a special procedure to do this?

"Bruno Sirianni" <br***********@virgilio.it> wrote in message
news:fV**********************@news3.tin.it...
Have you create the application from IIS console manager??

Right click in Application folder, Property, Virtual directory Tab,
Application Name -> Create.

Brun

"VB Programmer" <Ro************************@juno.com> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
I ran it but I get this error now:
The page cannot be found
The page you are looking for might have been removed, had its name

changed,
or is temporarily unavailable.


--------------------------------------------------------------------------
--
----

Please try the following:

a.. Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
b.. If you reached this page by clicking a link, contact the Web site
administrator to alert them that the link is incorrectly formatted.
c.. Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)


--------------------------------------------------------------------------
--
----

Technical Information (for support personnel)

a.. Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
b.. Open IIS Help, which is accessible in IIS Manager (inetmgr), and
search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message news:Xn**********************************@207.46.2 48.16...
"VB Programmer" <Ro************************@juno.com> wrote in
news:u$**************@tk2msftngp13.phx.gbl:

> Here's the quick situation:
> 1. Using VS.NET I create 1 fully functioning aspx page, with
> code behind. (Simple webform: It has a few text boxes, 1
> hyperlink, 2 and buttons.) 2. I uploaded it to my website and
> it works PERFECTLY. 3. My friend has a webserver and wants me
> to stick the aspx page into his web server. He says it has IIS
> and the .NET framework. 4. I copy the aspx page, the web.config
> file and the bin directory and place it on his server.
>
> Result:
> The page shows up almost like straight html. No text boxes,
> just text. No buttons. The hyperlink doesn't even appear on
> the page. Any ideas?

Try running this in a command (DOS) prompt:

aspnet_regiis -i

That should configure IIS to recognize ASP.NET files.

(aspnet_regiis.exe is located in
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/



Nov 18 '05 #5
If the ASPX page is not in the root directory of the "'regular' website",
you need to create an application for the directory in which it resides.
Bruno just shared on how to do this.

Jon

"VB Programmer" <Ro************************@juno.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
The directory is already in IIS because it was a "regular" website. I'm
simply adding 1 ASPX page (with code-behind) to this "regular" website. Is there a special procedure to do this?

"Bruno Sirianni" <br***********@virgilio.it> wrote in message
news:fV**********************@news3.tin.it...
Have you create the application from IIS console manager??

Right click in Application folder, Property, Virtual directory Tab,
Application Name -> Create.

Brun

"VB Programmer" <Ro************************@juno.com> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
I ran it but I get this error now:
The page cannot be found
The page you are looking for might have been removed, had its name

changed,
or is temporarily unavailable.


--------------------------------------------------------------------------
--
----

Please try the following:

a.. Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
b.. If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
c.. Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)


--------------------------------------------------------------------------
--
----

Technical Information (for support personnel)

a.. Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
b.. Open IIS Help, which is accessible in IIS Manager (inetmgr), and
search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message news:Xn**********************************@207.46.2 48.16...
> "VB Programmer" <Ro************************@juno.com> wrote in
> news:u$**************@tk2msftngp13.phx.gbl:
>
> > Here's the quick situation:
> > 1. Using VS.NET I create 1 fully functioning aspx page, with
> > code behind. (Simple webform: It has a few text boxes, 1
> > hyperlink, 2 and buttons.) 2. I uploaded it to my website and
> > it works PERFECTLY. 3. My friend has a webserver and wants me
> > to stick the aspx page into his web server. He says it has IIS
> > and the .NET framework. 4. I copy the aspx page, the web.config
> > file and the bin directory and place it on his server.
> >
> > Result:
> > The page shows up almost like straight html. No text boxes,
> > just text. No buttons. The hyperlink doesn't even appear on
> > the page. Any ideas?
>
> Try running this in a command (DOS) prompt:
>
> aspnet_regiis -i
>
> That should configure IIS to recognize ASP.NET files.
>
> (aspnet_regiis.exe is located in
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)
>
>
> Hope this helps.
>
> Chris.
> -------------
> C.R. Timmons Consulting, Inc.
> http://www.crtimmonsinc.com/



Nov 18 '05 #6

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

Similar topics

3
by: mscertified | last post by:
I've just started playing around with VS.NET and am working thru a book. I down loaded all the code from the book. I created a virtual folder and pointed to chapter 1 which has a simple aspx page...
1
by: Pai | last post by:
Hello there, I have crated an HTML mail with a button in the mail body, an a few values like the name of the person his city state..... When I click on the button I need the specific contents ...
2
by: moondaddy | last post by:
I'm using vb.net and have an aspx page where I want to call a function in the code behind to do something on the backend and I want to call this function from a jscript function in the aspx page. ...
9
by: Steve Peterson | last post by:
Hi I have an .aspx web form in which I would like to output only XML, no HTML. The datasource is a datatable that's bult on the fly based on user input from previous .aspx page so the XML output...
2
by: kermit | last post by:
I have an .net aspx page MyPage.aspx (client side), with code behind MyPage.aspx.vb (server side) I use the pages server On_Load event (.aspx.vb) to create a collection using classes. ...
2
by: Gerald | last post by:
Hi, can anyone please solve this problem? My main page is :WebForm2.aspx <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm2.aspx.vb" Inherits="Transactions.WebForm2"%> <%@...
1
by: jeff_m | last post by:
Hello all, I'm having an issue with the following: I have an .aspx page with two html links that call distinct Javascript functions. I also have an iframe in the html of this .aspx page....
3
by: Tego | last post by:
I have a main ASPX page that loads HTML pages into it. If the HTML page contains characters like the (R) registered or (C) or apostrophe then these characters are replaced (usualy with a question...
2
by: Craig | last post by:
I've done this before, but I must be missing something.... I got a new laptop, installed .net framework 1.1, IIS, VS 2003, and now when I try and create a Virtural Directory and open it up in a...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.