Click to See Complete Forum and Search --> : Publishing my web site


Suzi167
May 31st, 2006, 04:46 PM
Hello Everyone,

I am kind of confused with VS 2005.

I developed a ASP.Net web site and it works very well.

However I can only view it from my PC.

If I go to another PC even though I am connected to the Internet I can not view the we page.

I typed

http://mycomputerIP/and then the folders/filename.aspx

I can not see it from another computer.

If I go under My_Coputer - Computer Management - Internet Information Services

I don't see my solution pulished there which is why I think I can not see the page from another computer.

With VS 2003 it automatically appears there but with 2005 I can't see it.


Can ANYONE Help !!!!!!!!!!!


Thanks in advance!

HairyMonkeyMan
June 1st, 2006, 04:29 AM
Are you trying to view your page from another computer within a LAN that is a member of the same domain as you?

Shuja Ali
June 1st, 2006, 04:51 AM
VS 2005 uses its own virtual web server when you are developing and testing ASP.NET applications. Have you published the application on to IIS server? And when you started the project did you select the location as FileSystem or HTTP?

Suzi167
June 1st, 2006, 09:55 AM
First of all I would like to say Thanks for taking the time to answer.
I played around with it a bit more yesterday and here is what I did.

1) I clicked on Publish and I published the web site under the

C:\Inetpub\wwwroot directory on my PC since I read on MSDN taht this
is where I should publish it.

2) In addition I went under the IIS fodler and added a new virtual folder
under the defalult web page and ported all the files that I published in
the C:\Inetpub\wwwroot folder.

3) TO answer HairyMonkeyMan's(sorry but I don't know your real name)
question - I basically want to be able to have the web site be accessible
from ANY computer around the world in case my PC is up and running
and connected to the Internet.

4) I guess my other confusion is - Do I need to have the ASP.Net VIrtual
web server runnign to be able to access my web page and how do I
invoke it - it comes up autometically if I run the application from VS 2005
but is there any other way of invoking it.

5) And last but not least - it could be that I am not typing the URL correctly.

Once I publish the files in te way I stated above what URL should I type
in the IE bnrowser ?

I typed: http://IP_OF_MY_PC:Port/Default3.aspx


It seems to me that I am missing like a folder or something.


If I get this working then you guys can see my web page too. It is going to be a SQL server data driver application and I am working on it.

I am really starting to like ASP.Net.

Thanks!

Suzi

Shuja Ali
June 1st, 2006, 10:02 AM
The correct way of publishing a web-site is :

1. First create a virtual folder in IIS.
2. Publish the web-site in that virtual folder.
3. to access your website, you will have to use something similar to this http://localhost/foldername/default.aspx. Now remember the foldername would the virtual folder you created.

According to your post you had first published the web-site and after publishing you had created the virtual folder, which is not correct.

Once you publish the web-site on IIS, you do not need the ASP.NET's virtual webserver.

To have your website be available on the internet you will have to upload to host it on a web-server. You cannot just publish it on your computer and have it accessible to everyone who is connected to internet. But yes if you successfully publish it on your local IIS then all other systems that are on the same network will be able to access the website.

Suzi167
June 1st, 2006, 10:25 AM
Thanks for the clarification.

I thought that I can use the VS 2005 virtual web server to host web pages and make my computer act as a web serever :) : ): )

Now I know better.

thanks A lot

Shuja Ali
June 1st, 2006, 10:30 AM
You are welcome. :)

Virtual webserver is just for development purposes and as I mentioned if you want to publish your website you need to have a proper web-server installed (like IIS)

HanneSThEGreaT
June 2nd, 2006, 03:07 AM
Thanks for the clarification.

I thought that I can use the VS 2005 virtual web server to host web pages and make my computer act as a web serever :) : ): )


Hence the name ASP (Active Server pages). Because these pages are designed as server pages, without the use of the Virtual Web Server, you won't be able to test, display, or debug them

Students
June 12th, 2006, 09:56 AM
hi,,,
when i published the website used VS2005(build->publish website) , the error was appearing:

Server Error in '/yp' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load the assembly 'App_Web_index.aspx.cdcab7d2'. Make sure that it is compiled before accessing the page.

Source Error:


Line 1: <%@ page language="C#" masterpagefile="~/template.master" autoeventwireup="true" inherits="index, App_Web_index.aspx.cdcab7d2" title="index" %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Line 3: <table style="width: 100%; height: 100%">


Source File: C:\Inetpub\wwwroot\yp\index.aspx Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

thanks