473,786 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\wwwr oot\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 "Applicatio n 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 4577
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***@discussi ons.microsoft.c om> wrote in message
news:FF******** *************** ***********@mic rosoft.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\wwwr oot\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 "Applicatio n 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***@discussi ons.microsoft.c om> wrote in message
news:FF******** *************** ***********@mic rosoft.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\wwwr oot\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 "Applicatio n 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***@discussi ons.microsoft.c om> wrote in message
news:F4******** *************** ***********@mic rosoft.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***@discussi ons.microsoft.c om> wrote in message
news:FF******** *************** ***********@mic rosoft.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\wwwr oot\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 "Applicatio n 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
6128
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 downloads. It uses fpassthru() and some headers() to send a file to the requesting user. The get.php file that I wrote (the file download module if you will) works like a charm for .ZIP files and .TXT files. However, when .EXE files are downloaded...
17
23173
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 transferring. Finding out how to get this information took some time (reading the manuals - googling did not prove worthwhile). Anyway, I did eventually figure out how to do it (there are a few ways, including os.path.getsize(filename)). My...
11
3649
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 rules when it comes to file paths. A lot of Microsoft installers for example, and also installers of other companies, do not work because they handle paths in the following manner:
5
11055
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 created in the wrong folder on the hard drive. Before I discovered these files, .NET kept trying to create a new project with _1 following the project name. Deleting those files corrected that problem. I deleted the Virtual Directory, rebooted, and...
2
14409
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 states, "If the caller does not have sufficient permissions to read the specified file, no exception is thrown and the method returns false regardless of the existence of path."
8
9764
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 problem: my vb.net program has problems with UNC. If the UNC server is restarted or goes off-line, my VB.net program crashes. The code for UNC access to the file is included below and is put in the tick event of a form timer control running every...
5
8631
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". Same file path containing special characters works fine in one machine, but doesn't work in other. I am using following API function to get short file path. Declare Auto Function GetShortPathName Lib "kernel32" (ByVal lpszLongPath As
4
4488
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 one of my webform pages which includes a button that pops up a window where you can upload files, if you upload files in this popup window, it seems to somehow clear out all of the session variables and the users get logged out. However, if...
5
4472
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 libraries. We are having a path reference issue for the depending projects; if the build is started in another directory than that of the imported project. (It's a simple cannot find project xyz.csproj, build fails.) If we place the xml file in...
2
3883
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: jar:http://www.domain.com/secure-scripts/secure.jar!/thepage.html (sample) in browser (Firefox) which simply won't work. I can't access to html file embedded in jar file. My sample applet IO.java together
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8989
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.