"The profile name contains characters that are not valid."

G

Gorgona45

WinXP SP2 Eng + Outlook 2002 SP3 (10.6822.6830) SP3


I use the following code (from my own app):

Dim s as CDO.Session
set s = new CDO.SessionClass()
s.Logon("USNJ\exchangeuser", "password", true, false, , , , )

Every time it runs I get the following message on (s.Logon():

"The profile name contains characters that are not valid."

What's wrong to my code and how to fix this problem?
 
L

Louise Rains

2 things to try: 1) make sure you don't have "smart quotes" - quotes which go in one direction on the left and a different direction on the right, and 2) try replacing the \ character with a / or else with double \\. A single \ within quotes serves as an escape character.



Gorgona4 wrote:

"The profile name contains characters that are not valid."
11-Feb-08

WinXP SP2 Eng + Outlook 2002 SP3 (10.6822.6830) SP

I use the following code (from my own app)

Dim s as CDO.Sessio
set s = new CDO.SessionClass(
s.Logon("USNJ\exchangeuser", "password", true, false, , , ,

Every time it runs I get the following message on (s.Logon()

"The profile name contains characters that are not valid.

What's wrong to my code and how to fix this problem?

Previous Posts In This Thread:

"The profile name contains characters that are not valid."
WinXP SP2 Eng + Outlook 2002 SP3 (10.6822.6830) SP

I use the following code (from my own app)

Dim s as CDO.Sessio
set s = new CDO.SessionClass(
s.Logon("USNJ\exchangeuser", "password", true, false, , , ,

Every time it runs I get the following message on (s.Logon()

"The profile name contains characters that are not valid.

What's wrong to my code and how to fix this problem?


Submitted via EggHeadCafe - Software Developer Portal of Choice
SharePoint List Usage and Statistics
http://www.eggheadcafe.com/tutorial...d-9723a79fdb14/sharepoint-list-usage-and.aspx
 

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