By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.