473,320 Members | 1,828 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,320 software developers and data experts.

IIS File Path Problem

Hello,

I am new to ASP as well as IIS. I am trying to learn how to create a web
application using asp.NET. I have followed the instructions for configuring
the IIS settings but when I click on the .sln file to open the project in VS
I get the following error:
"Unable to open the Web Project 'projectname', the file path
C:\InetPub\wwwroot\projectname does not correspond to the URL
'http://localhost/projectname. The two need to map to the same server
location."
I am using my local computer (XP Pro is OS) and IIS is installed before VS
was. I have the project folder located the InetPub\wwwroot folder. In the
project folder properties I have clicked on the Create button to put the
project name in the "Application name" filed so that the directory will be
recognized by IIS as an application. I have also added the ASPNET user with
Read & Exe, List Folder Contents, Read, & Write permissions. If I type the
URL of http://MyComputerName/projectname/filename.aspx the web page will open
up in the IE browser (although it does not display properly formatted). I
don't understand why I can't open the project by clicking on the
projectname.sln file. Any help with this will be greatly appreciated. Thank
you for reading this lenghty post.

Dave Y
Jul 21 '05 #1
3 4534
As long as you have installed IIS before VS.NET, there is no configuration
you need to do with IIS.

Just open VS.NET and create a new ASP.NET web project. VS.NET will ask IIS
to create the directory and give it the appropriate configuration settings.

The problem you are encountering at the moment is that you have manually
created an IIS application folder but the folder doesn't have normal LAN
sharing permissions that are needed for VS.NET to access the folder. In
Windows Explorer, right click the folder and choose Sharing And Security.
On the Sharing (not the Web Sharing) tab, choose to share the folder, do not
change the folder alias.

But as I said, in the future, when you want to make a new web project, just
do it from VS.NET and VS.NET will take care of all of this for you.
"Dave Y" <Da***@discussions.microsoft.com> wrote in message
news:FF**********************************@microsof t.com...
Hello,

I am new to ASP as well as IIS. I am trying to learn how to create a web
application using asp.NET. I have followed the instructions for
configuring
the IIS settings but when I click on the .sln file to open the project in
VS
I get the following error:
"Unable to open the Web Project 'projectname', the file path
C:\InetPub\wwwroot\projectname does not correspond to the URL
'http://localhost/projectname. The two need to map to the same server
location."
I am using my local computer (XP Pro is OS) and IIS is installed before VS
was. I have the project folder located the InetPub\wwwroot folder. In the
project folder properties I have clicked on the Create button to put the
project name in the "Application name" filed so that the directory will be
recognized by IIS as an application. I have also added the ASPNET user
with
Read & Exe, List Folder Contents, Read, & Write permissions. If I type the
URL of http://MyComputerName/projectname/filename.aspx the web page will
open
up in the IE browser (although it does not display properly formatted). I
don't understand why I can't open the project by clicking on the
projectname.sln file. Any help with this will be greatly appreciated.
Thank
you for reading this lenghty post.

Dave Y

Jul 21 '05 #2
Hi Scott,

I took your suggestion and shared the folder (did not change alias) but I am
still receiving the error message. As far as I know; all services are running
and priveleges are correct. I am going to start over by creating the asp
project through VS.Net. Thank you for your reply.

Dave Y

"Scott M." wrote:
As long as you have installed IIS before VS.NET, there is no configuration
you need to do with IIS.

Just open VS.NET and create a new ASP.NET web project. VS.NET will ask IIS
to create the directory and give it the appropriate configuration settings.

The problem you are encountering at the moment is that you have manually
created an IIS application folder but the folder doesn't have normal LAN
sharing permissions that are needed for VS.NET to access the folder. In
Windows Explorer, right click the folder and choose Sharing And Security.
On the Sharing (not the Web Sharing) tab, choose to share the folder, do not
change the folder alias.

But as I said, in the future, when you want to make a new web project, just
do it from VS.NET and VS.NET will take care of all of this for you.
"Dave Y" <Da***@discussions.microsoft.com> wrote in message
news:FF**********************************@microsof t.com...
Hello,

I am new to ASP as well as IIS. I am trying to learn how to create a web
application using asp.NET. I have followed the instructions for
configuring
the IIS settings but when I click on the .sln file to open the project in
VS
I get the following error:
"Unable to open the Web Project 'projectname', the file path
C:\InetPub\wwwroot\projectname does not correspond to the URL
'http://localhost/projectname. The two need to map to the same server
location."
I am using my local computer (XP Pro is OS) and IIS is installed before VS
was. I have the project folder located the InetPub\wwwroot folder. In the
project folder properties I have clicked on the Create button to put the
project name in the "Application name" filed so that the directory will be
recognized by IIS as an application. I have also added the ASPNET user
with
Read & Exe, List Folder Contents, Read, & Write permissions. If I type the
URL of http://MyComputerName/projectname/filename.aspx the web page will
open
up in the IE browser (although it does not display properly formatted). I
don't understand why I can't open the project by clicking on the
projectname.sln file. Any help with this will be greatly appreciated.
Thank
you for reading this lenghty post.

Dave Y


Jul 21 '05 #3
Hi Dave,

I should have also mentioned that if you manually created the IIS virtual
directory and give this folder LAN sharing permissions. You still haven't
created an ASP.NET application in this folder. After manually setting the
folder up as described earlier, you would then go to VS.NET and choose to
create a NEW project at the http location you set up, you would NOT be
trying to OPEN an ASP.NET application, because no application would have
been created yet, just the folder.
"Dave Y" <Da***@discussions.microsoft.com> wrote in message
news:F4**********************************@microsof t.com...
Hi Scott,

I took your suggestion and shared the folder (did not change alias) but I
am
still receiving the error message. As far as I know; all services are
running
and priveleges are correct. I am going to start over by creating the asp
project through VS.Net. Thank you for your reply.

Dave Y

"Scott M." wrote:
As long as you have installed IIS before VS.NET, there is no
configuration
you need to do with IIS.

Just open VS.NET and create a new ASP.NET web project. VS.NET will ask
IIS
to create the directory and give it the appropriate configuration
settings.

The problem you are encountering at the moment is that you have manually
created an IIS application folder but the folder doesn't have normal LAN
sharing permissions that are needed for VS.NET to access the folder. In
Windows Explorer, right click the folder and choose Sharing And Security.
On the Sharing (not the Web Sharing) tab, choose to share the folder, do
not
change the folder alias.

But as I said, in the future, when you want to make a new web project,
just
do it from VS.NET and VS.NET will take care of all of this for you.
"Dave Y" <Da***@discussions.microsoft.com> wrote in message
news:FF**********************************@microsof t.com...
> Hello,
>
> I am new to ASP as well as IIS. I am trying to learn how to create a
> web
> application using asp.NET. I have followed the instructions for
> configuring
> the IIS settings but when I click on the .sln file to open the project
> in
> VS
> I get the following error:
> "Unable to open the Web Project 'projectname', the file path
> C:\InetPub\wwwroot\projectname does not correspond to the URL
> 'http://localhost/projectname. The two need to map to the same server
> location."
> I am using my local computer (XP Pro is OS) and IIS is installed before
> VS
> was. I have the project folder located the InetPub\wwwroot folder. In
> the
> project folder properties I have clicked on the Create button to put
> the
> project name in the "Application name" filed so that the directory will
> be
> recognized by IIS as an application. I have also added the ASPNET user
> with
> Read & Exe, List Folder Contents, Read, & Write permissions. If I type
> the
> URL of http://MyComputerName/projectname/filename.aspx the web page
> will
> open
> up in the IE browser (although it does not display properly formatted).
> I
> don't understand why I can't open the project by clicking on the
> projectname.sln file. Any help with this will be greatly appreciated.
> Thank
> you for reading this lenghty post.
>
> Dave Y


Jul 21 '05 #4

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

Similar topics

5
by: Brandon Walters | last post by:
I wrote a file download module for my website. The reason for the file download module is that my website downloads work on a credit based system. So I need to keep track of and limit daily...
17
by: Sean Ross | last post by:
Hi. Recently I made a small script to do some file transferring (among other things). I wanted to monitor the progress of the file transfer, so I needed to know the size of the files I was...
11
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
2
by: Chris Fink | last post by:
I am using the System.IO.File class to determine if a file exists on a network share. The File.Exists method keeps returning false, even though the file does exist. The MSDN documentation...
8
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my...
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
4
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use...
5
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class...
2
by: JohnLorac | last post by:
Hello, I'm trying to load and write file on local disc drive using signed javascript file. But I have experienced problem running this url: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.