• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

Need to get .aspx/c# page working on a webserver

I know that the .NET framework and IIS needs to be on the webserver that will host this type of webpage. However, as a test, I used my friend's PC as a webserver. I transferred my files (.aspx, .cs, and the bin folder) to his PC under C:\Inetpub\wwwroot\MyPage\.

When I try to access the page via http:\\localhost\MyPage\mypage.aspx on his PC, that did not work. Instead, a message prompt asking me if I want to RUN or OPEN the file came up.

What other steps do I need to take to get the page to work on a different PC? Do I need to register the .DLL? If so, I tried to do that but got an error saying that the DLL "was loaded but the DllRegisterServer entry point was not found."

Thanks.
0
qh0st
Asked:
qh0st
  • 5
  • 3
1 Solution
 
softplusCommented:
You need to install the .NET framework ( www.asp.net/download-1.1.aspx , choose "Download .NET Framework Redist Now, 23MB"). You need to have this installed on the web server first. Only then will it "recognize" your aspx/aspx.cs files.
0
 
qh0stAuthor Commented:
It still doesn't work. Am I linking the aspx file to the aspx.cs file incorrectly?

<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ Page language="c#" Codebehind="AdminTool.aspx.cs" AutoEventWireup="false" Inherits="Practice.AdminTool" %>

My friend mentioned that it shouldn't be  Codebehind="...".  What should it be instead? Also, I am having issues getting the Web Controls to work as well on the web server.
0
 
softplusCommented:
What message are you getting now? What webserver are you using? If it works on your server, it shouldn't be an issue with the code ... :)
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
qh0stAuthor Commented:
Error Type:
Active Server Pages, ASP 0221 (0x80004005)
The specified 'Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" ' option is unknown or invalid.


That DLL is inside the /bin folder on the webserver like how it is on my local PC.
0
 
softplusCommented:
ok, so it looks like the .net framework installed ok, what you need now are the webcontrols... however, they're currently not supported any more by microsoft ... :((

Here's the link: http://msdn.microsoft.com/archive/en-us/samples/internet/asp_dot_net_servercontrols/webcontrols/default.asp

You can download them, but they might not work. You will need to rework your pages so that you don't use the webcontrols.
0
 
qh0stAuthor Commented:
Here is the file structure that is on the server.

\wwwroot\AdminTool\
- AdminTool.aspx
- AdminTool.aspx.cs
- AdminTool.aspx.resx
- Web.config
- Global.asax.cs
- Global.asax
- Global.asax.resx

\wwwroot\AdminTool\bin
- Microsoft.Web.UI.WebControls.DLL
- AdminTool.dll
- AdminTool.pdb

I have accessing the page by: http://localhost/AdminTool/AdminTool.aspx

Am I referencing the DLLs wrong? Are there any other files I need to upload to the server?
0
 
qh0stAuthor Commented:
I installed the webcontrols on the other PC (acting as a webserver) as well and it still giving me the same error. Am I referencing it wrong?
0
 
qh0stAuthor Commented:
I am able to get it working. Thanks for tryin to help me out.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now