473,382 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Create new website on File System or local IIS

Can anyone clarify what the difference between these two choices is
when developing website? I have IIS installed too, so I can pick this
too if there is a reason.

From the point of view of sharing the code with other developers and
keeping source in VSS File System seems to be more flexible choice.

However, my current understanding is that when you keep it in the File
System and start it from Visual Studio it runs on Web Server built in
in VS, and if it is created on local IIS then it runs on local IIS
(please correct me if I am wrong). In production it will of course run
on IIS so if there are some differences in behavior between Web Server
built in VS and IIS they may not become obvious during development,
which is not a good thing.

Is there any difference in functionality of Web Server built in in VS
and IIS? I wouldn't be surprised if Web Server built in VS has reduced
functionality compared to IIS.

One approach that I found is to create a virtual directory in IIS that
point to the folder in the File System containing the website. Website
is then created on local IIS but physical location is wherever I
choose. This approach seems to be the best to me.
Jun 27 '08 #1
2 2388
Hi,

your assumptions are pretty much correct. One main difference is that while
developing in IIS, the application runs under ASPNET / NETWORK SERVICE
account, but with web dev server it runs under your account, so if you're
administrator, the app runs under admin privileges. That can bring
unexpected problems when deploying to production if your application does
something which requires higher than normal privileges.

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
<Jo******@inbox.ruwrote in message
news:15**********************************@e39g2000 hsf.googlegroups.com...
Can anyone clarify what the difference between these two choices is
when developing website? I have IIS installed too, so I can pick this
too if there is a reason.

From the point of view of sharing the code with other developers and
keeping source in VSS File System seems to be more flexible choice.

However, my current understanding is that when you keep it in the File
System and start it from Visual Studio it runs on Web Server built in
in VS, and if it is created on local IIS then it runs on local IIS
(please correct me if I am wrong). In production it will of course run
on IIS so if there are some differences in behavior between Web Server
built in VS and IIS they may not become obvious during development,
which is not a good thing.

Is there any difference in functionality of Web Server built in in VS
and IIS? I wouldn't be surprised if Web Server built in VS has reduced
functionality compared to IIS.

One approach that I found is to create a virtual directory in IIS that
point to the folder in the File System containing the website. Website
is then created on local IIS but physical location is wherever I
choose. This approach seems to be the best to me.

Jun 27 '08 #2
There are scenarios where you have to use IIS. An example is when your code
is referring to a virtual directory. I don't know how to declare a virtual
directory on the file system server.

An advantage of not using IIS is that you don't have to configure it which
can be sometimes painful. On other hand, sooner or later you will have to
face production issues anyway. You may still use the file system server for
quick prototyping.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<Jo******@inbox.ruwrote in message
news:15**********************************@e39g2000 hsf.googlegroups.com...
Can anyone clarify what the difference between these two choices is
when developing website? I have IIS installed too, so I can pick this
too if there is a reason.

From the point of view of sharing the code with other developers and
keeping source in VSS File System seems to be more flexible choice.

However, my current understanding is that when you keep it in the File
System and start it from Visual Studio it runs on Web Server built in
in VS, and if it is created on local IIS then it runs on local IIS
(please correct me if I am wrong). In production it will of course run
on IIS so if there are some differences in behavior between Web Server
built in VS and IIS they may not become obvious during development,
which is not a good thing.

Is there any difference in functionality of Web Server built in in VS
and IIS? I wouldn't be surprised if Web Server built in VS has reduced
functionality compared to IIS.

One approach that I found is to create a virtual directory in IIS that
point to the folder in the File System containing the website. Website
is then created on local IIS but physical location is wherever I
choose. This approach seems to be the best to me.

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chad Crowder | last post by:
Getting the following error on my production server whether the file exists or not: "System.IO.IOException: Cannot create a file when that file already exists." Here's the code generating the...
2
by: Pranab | last post by:
On my local sandbox , in IIS I created some Websites . Now when I try to create a ASP.NET web application , it tries to create it in the website last created and fails . But my requirement is...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
1
by: sangitaraj | last post by:
Hello, I have created a website in ASP.net 2.0 and published it on the webserver. The following error message is displayed. Compiler Error Message: CS0246: The type or namespace name...
3
by: DBLWizard | last post by:
Howdy All, Is it possible to have Visual Studio 2005 create a project form an existing hosted website? In other words I want to be able connect via ftp to my website structure and have it pull...
16
by: Mich | last post by:
Hi, i'm building an web application for anonymous users. They can take a look in the website, nothing more. In order to perform other actions, the anonymous user must be logged. So i create an...
5
by: =?Utf-8?B?TGVvbg==?= | last post by:
Hi Everybody. I am running VS 2005 with Service Pack on Windows 2003 server. All I was trying to do is to create a new website. I am getting an error message: Unable to create the Web...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
2
by: Elavarasi | last post by:
( all in my websites) I am opening a database (stored in ftp -- ms access database) .. after retrieving i want to write to a file in local machine... (something .. c:\test.txt) its work fine...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.