File system websites

B

bhuvanabh

Hi,

In http project, I can able to view the webpage link by providing m/c
name instead of localhost(http://mymachinename/sample.aspx), but in
filesystem project why I couldn't browse the page with the machine
name? Can anyone suggest me how to browse it using m/c name instead of
the localhost:portnumber.
 
K

Kevin Spencer

ASP.Net pages must be served by an HTTP server, so you can't do that.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
G

George Ter-Saakov

Filesystem type of project using built-in web server which runs on separate
port than standard IIS.
So to access is using machine name you must specify the port number.

Start it from VS and you will see in the browser
http://localhost:4534/mypage.aspx
4534 is made up and you will have different port number


George.
 
J

Juan T. Llibre

For standalone browsing, you can launch
the Development Server from the command line.

Its parameters are :

/path:
/port:and
/vpath:

Example :
drive:pathto\WebDev.WebServer.EXE /path:Drive:\dir\subdir /port:8001 /vpath:/test

That should bring up the Dev Server on port 8001 and the virtual directory /test.
This assumes that you have a file named default.aspx at Drive:\dir\subdir

If you want to use your machine's name, you'll need to run IIS or a web server like Cassiniv2.

Direct link to the source files:
http://blogs.msdn.com/dmitryr/attachment/548131.ashx

You also need the v2.0 version of GACUTIL which is installed with VWD Express,
VS 2005 and the .Net Framework 2.0 SDK, in order to compile Cassiniv2.

Make sure you read the "ReadMe.txt" file included in the zipped source.
 

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

Forum statistics

Threads
474,183
Messages
2,570,966
Members
47,515
Latest member
Harvey7327

Latest Threads

Top