all groups > sql server notification services > october 2004 >
You're in the

sql server notification services

group:

Illegal character exception


Illegal character exception J
10/5/2004 5:17:03 AM
sql server notification services:
Hi,

I've just moved my Notification Services installation to a
new directory with a space in the name. Previously the
Notification Services were installed on C:\, they've now
moved to C:\Program Files.

The problem is this, when I try running the command:

nccontrol create -in "%BaseDirectoryPath%
\AppDefinition\appConfig.xml"

where %BaseDirectory is:

C:\Program Files\Comp\NotificationServices\Audit

I get the following error:

Unhandled Exception in create
ex.Message =
Illegal characters in Path

Now as far as I can tell, it's getting upset about the
space in Program Files. I've even tried running in from
the actual directory without the path and got the same
error.

I've tried C:\Progra~1\, but that didn't work.

Does anyone know how to get around this? I've checked the
Microsoft Notification web site, but couldn't find
anything.

Thanks In Advance,
Re: Illegal character exception Colin Meek [MSFT]
10/5/2004 7:22:55 AM
I just attempted to reproduce the problem you describe using 2.0 SP1 on
WinXP, and succeeded in creating the instance.

It's possible an illegal character exists in the environment variable (which
is presumably used in your config file even if it is not specified in the
NSControl command). Try overriding the environment variable as follows:

[quoted text, click to view]
BaseDirectoryPath="C:\Program Files\Comp\NotificationServices\Audit"

If this succeeds, try setting the environment variable again, and rerunning:

[quoted text, click to view]

Let me know if this helps!

-Colin Meek [MSFT]

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
--

[quoted text, click to view]

Re: Illegal character exception anonymous NO[at]SPAM discussions.microsoft.com
10/6/2004 4:39:49 AM
Excellent, I gave that another go and it worked! :)

Must have snuck a illegal char in some how!

Thanks,
John

[quoted text, click to view]
AddThis Social Bookmark Button