Trouble installing Windows Service created with VB.NET

N

Nathan Sokalski

I am trying to figure out how to make Windows Services using VB.NET. I found
an article that seemed simple yet complete enough that I decided to try it.
This article is located at:

http://www.devarticles.com/c/a/VB.Net/Creating-A-Windows-Service-in-VB.NET/

The point at which I had a problem was in the section labeled "Installing
the Service"

http://www.devarticles.com/c/a/VB.Net/Creating-A-Windows-Service-in-VB.NET/2/

When I tried to do this part, I recieved the following error:


C:\>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\installutil.exe
C:\Documents and Settings\Nathan Sokalski\My Documents\Visual Studio
Projects\WebApplication1\WindowsService1\bin\WindowsService1.exe
Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name Documents, or one of
its dependencies, was not found..

C:\>


I know that the error is referring to the fact that it doesn't like the
spaces in the directory "Documents and Settings" (and probably some of the
other directories with spaces), but it has been such a long time since I
have had to manually convert from longname format to, I am assuming, 8.3
format. I seem to remember their being some command line command that can do
this for you, but if their is I don't remember it. Since this is the
directory that Visual Studio puts my files in, I would like to know the
simplest way to execute the command. Thanks.
 
G

Guest

Just put a quotes around the file name.

C:\>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\installutil.exe
"C:\Documents and Settings\Nathan Sokalski\My Documents\Visual Studio
Projects\WebApplication1\WindowsService1\bin\WindowsService1.exe"
 

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