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

V

VB Programmer

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.
 
C

Chris R. Timmons

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.
 
V

VB Programmer

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.
 
B

Bruno Sirianni

Have you create the application from IIS console manager??

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

Brun

VB Programmer said:
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.
 
V

VB Programmer

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 said:
Have you create the application from IIS console manager??

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

Brun
 
J

Jon Davis

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top