Should be Simple: Downloaded Web app "Publish" and run

  • Thread starter Thread starter Rocky Clark
  • Start date Start date
R

Rocky Clark

Now please be gentle. I have been a Microsoft developer for many years and
used everything from VB 3.0 to Visual Studio 6.0 from their inception. I am
now attempting to switch to .net. I had no idea how high the learning curve
would be, but I continue to push on.

I've downloaded this exe (self-extracting zip file) from microsoft (DotNET
Color Quantization Code.exe). The instructions say to simply extract the
files from the zip (no problem) and "publish" (What?) the Quantize folder to
my server and then open the solution file.

I have searched for days on how to "publish" this code to my localhost site
(XP Pro/IIS 6). I've googled until I'm blue in the face. On Microsoft's own
site their is no relevant information when I search for "dotnet publish
website".

All the answers that I find are how to publish a project from the IDE,
however this project will not open in the IDE, since the site has not been
created. I feel like I'm chasing my own tail. I cannot believe how much
worthless garbage has been written on the web for .net (such as the
Microsoft instructions above).

My guess is that this is so trivial and easy to do that there is no need to
explain, however my thick head cannot seem to get it to sink in.

BTW I'm using VS.net 2003 and Framework 1.1

Please Help!
Rocky Clark (Kath-Rock Software)
 
Open .cproj file and find the path to the your app in key "Web
URLPath".
Go to the folder where is your app located, go to the propertied menu
of this folder and choose "Web Sharing" tab, choose "Share this folder"
and point alias with name from .cproj file (wout any // and localhost).
Your app has been "published"

After that tried to call http://localhost/componentname
 
Thank you for your help, however there is no .cproj file, only a .csproj
file and neither "Web URLPath" nor any instance of the word "URL" is
contained within the file.

I did finally figure it out on my own. For anyone else who may have the same
problem, here are the steps I took...

The next five items are the standard steps for adding a website through IIS
and I had already done this (over and over).

(1) I opened IIS (Internet Information Services) in the MMC (Microsoft
Management Console).
(2) I right-clicked on "Default Web Site" and selected "New/Virtual
Directory" from the dropdown menu. This brings up the "Virtual Directory
Creation Wizard"
(3) I typed the name "Quantize" into the "Alias" box (The Microsoft
instructions said that it needed to published as
"http://localhost/quantize", so I figured that this would do the trick) and
then clicked "Next".
(4) For the Directory, I browsed to the folder where I had unzipped the
files and selected the "Quantize" folder and clicked "Next".
(5) On the "Access Permissions" page of the wizard, I left the defaults
(Read and Run Scripts) checked and clicked "Next".

OK Web Site Created! I wasn't sure at the time, since opening the solution
always failed after this, but I had done everything up to this point
correctly.

Here is where my problem occurred...
The Microsoft instructions said to open the solution (.sln) file, so I
double-clicked the Solution file (from Windows Explorer) and VS2003 opened
with several errors about website not found, etc. At this point I removed
the site and started all over with the steps above (many, many times over a
couple of days [A good definition of INSANITY = "doing exactly the same
thing over and over, expecting different results"]). It always failed!

Finally, just on a whim, I opened VS2003, clicked the "Open Project" button
on the Start Page, browsed to that same solution file and slicked "Open".

To my absolute disbelief, it opened with no errors!!!
What the heck???

Anyhow, it seems that once the site is created (Published?), it can only be
opened from within the VS2003 IDE, NOT by clicking the Solution file in
Explorer.

I hope this post saves someone else from several hours of frustration!

Thanks for the responses,
Rocky Clark (Kath-Rock Software)
 
Back
Top