How to open an existing project?

G

g4356

Hi, A new baby question:

I downloaded a dot net project and saved it to my local disk. When I tried
to open this project, a message popped up:
"Unable to open web project "test/myfirstweb"/ The file path
"D:\dnet\webproj\myfirstweb\home" does not correspond to the URL
'http://localhost:/test/myfirstweb'. The two need to map to the same server
location.
HTTP Error 404:Object not found".

My question is, when I downloaded a web project and saved to local disk,
what should I do on the IIS to enable open the web project on MS Studio.net?

Thanks!
 
M

Michael Nemtsev

Hello g4356,

You need to open .cproj file to get the url that site was initally built
(in your case it's 'http://localhost:/test/myfirstweb')
Then call properties of you website folder and WebShare it with that name

Test that site is opened with that alliase that is pointed in the app from IE

g> Hi, A new baby question:
g>
g> I downloaded a dot net project and saved it to my local disk. When I
g> tried
g> to open this project, a message popped up:
g> "Unable to open web project "test/myfirstweb"/ The file path
g> "D:\dnet\webproj\myfirstweb\home" does not correspond to the URL
g> 'http://localhost:/test/myfirstweb'. The two need to map to the same
g> server
g> location.
g> HTTP Error 404:Object not found".
g> My question is, when I downloaded a web project and saved to local
g> disk, what should I do on the IIS to enable open the web project on
g> MS Studio.net?
g>
g> Thanks!
g>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
G

g4356

Thank you for your reply. Sorry for read your message so late. However, I
cannot understand what to do to solve this problem.
Could you please tell me where is the website folder? How to WebShare?
Someone told me the first thing is to configure the IIS to create an account
for the web site, but he did not give me the details. Should you also know
this way, would you please tell me as well?

Thanks!

g
 
M

Michael Nemtsev

Hello g4356,

g> Thank you for your reply. Sorry for read your message so late.
g> However, I
g> cannot understand what to do to solve this problem.
g> Could you please tell me where is the website folder?

Nowhere, you need to create it :)
The path is located in the .sln file from project u downloaded
Open .sln and find the string smth like
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication1", "http://localhost/WebApplication1/WebApplication1.csproj",
"{215D96CC-1FCB-4E86-B7A5-24843017CA65}"

Where WebApplication1 is the name of virtual folder you need to create.

g> How to
g> WebShare?

Well..., now go to to the folder where is downloaded website located.
Click right mouse button on root website folder->Properties->Web Sharing
tab->Select "Share this folder" and type the name from the string we find
above - WebApplication1

g> Someone told me the first thing is to configure the IIS to create an
g> account
g> for the web site,

not account, but virtual folder, that I descibed above

Now you can try to open your site via http://localhost/<nameOfSharedDirectory>/<mainPage>.aspx

g> but he did not give me the details. Should you also
g> know
g> this way, would you please tell me as well?
g> Thanks!
g>
g> g
g>
g> g>---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
G

g4356

Thank you again for your reply.

Actually, the project i downloaded contains no .sln file.
However, I create a new folder under wwwroot and move all the files and
folders of the project to there, finally, the localhost/test/myfirstweb
works, and i can open the project from dotnet design environment.

Thank you again!

g
 

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

Top