Shahid Mujtaba
Guest
|
Posted:
Tue Jan 11, 2005 6:53 pm Post subject:
CmsDeployExport Exception Follow Up |
|
|
Hello Stefan!
The Code that i am testing is below. Thanks but as i said it works
fine when run from XP so there is no point in supplying the wrong
arguments.
Try to run the application once yourself, If Possible
You have to change the credentials only.Below is the sample code
Code Sample :
-----------------------------------------------------------------
//Server Name/IP:Port Where CMS is Installed
string _serverURL="http://192.168.25.31:80"
//Domain & username to log into CMS
string _userName="winnt://gnnet-test0/administrator";
string _userPasswrod="admin123";
try
{
objCmsDeployExportClient=new Client.CmsDeployExportClass();
objCmsDeployExportClient.AuthenticateAsUse(_serverURL,_userName,_userPasswrod);
}
catch(Exception ex)
{
ExceptionManager.Publish(ex);
}
-----------------------------------------------------------------
Create a Web Application
Add the Interop.SITEDEPLOYCLIENTLib dll to your references
Run the applciation
Message 2 in thread
From: Stefan [MSFT] (stefang@online.microsoft.com)
Subject: Re: CmsDeployExport Exception Follow Up
Previous Thread
----------------------------------------------------------
View this article only
Newsgroups: microsoft.public.cmserver.general
Date: 2005-01-10 07:42:41 PST
Hi Shahid,
please debug the code and check the parameters given to the
AuthenticateAsUser method.
Cheers,
Stefan.
"Shahid Mujtaba" <shahidmujtaba@hotmail.com> wrote in message
news:963c544e.0501100559.51c45c25@posting.google.com...
| Quote: | Overview:
I have implemented an interface to facilitate Incremental Export
Operation between Content Production & Production Servers. The
application first authenticates CMS by calling the AuthenticateAsUser
Method before any
export operation. The CMS is installed on Windows Server 2003 Machine
which is on another domain from that of application.
Scenario:
When i run the application from Windows XP Machine, it works fine but
when i run it from Windows Server 2003 Machine, the call to
AuthenticateAsUser produces the following COM Exception
{Illegal Characters in Path.}
I am not getting anywhere...please help
STEFAN your asked for complete StackTrace Information..you can see
below
I am still unable to solve this problem..any clues ??
Call Specification
*********************************************
Object Type: Client-Side CmsDeployExport Object
Class: CmsDeployExportClass
Method: AuthenticateAsUser(ServerURL, UserName, Password)
where ServerURL="http://IPAddress",
UserName="winnt://Domain/Login"
General Information
*********************************************
Additional Info:
ExceptionManager.MachineName: GNNETDEV
ExceptionManager.TimeStamp: 12/27/2004 4:31:04 PM
ExceptionManager.FullName:
Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.1473.25906, Culture=neutral, PublicKeyToken=null
ExceptionManager.AppDomainName:
/LM/W3SVC/1/Root/Admin-1-127485989566112335
ExceptionManager.ThreadIdentity: gnnet-test0\Administrator
ExceptionManager.WindowsIdentity: gnnet-test0\Administrator
1) Exception Information
*********************************************
Exception Type: System.Exception
Message: Illegal characters in path.
TargetSite: Void PushCms()
HelpLink: NULL
Source: Admin
StackTrace Information
*********************************************
at Geopaq.GnNetcom.ExportCMS.PushCms() in
c:\inetpub\wwwroot\admin\exportcms.aspx.cs:line 240
2) Exception Information
*********************************************
Exception Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147467259
Message: Illegal characters in path.
TargetSite: Void AuthenticateAsUser(System.String, System.String,
System.String)
HelpLink: NULL
Source: AEJavaProxy
StackTrace Information
*********************************************
at SITEDEPLOYCLIENTLib.CmsDeployExportClass.AuthenticateAsUser(String
strServerUrl, String strUserName, String strPassword)
at Geopaq.GnNetcom.ExportCMS.PushCms() in
c:\inetpub\wwwroot\admin\exportcms.aspx.cs:line 222 |
|
|
Stefan [MSFT]
Guest
|
Posted:
Tue Jan 11, 2005 7:56 pm Post subject:
Re: CmsDeployExport Exception Follow Up |
|
|
Hi Shahid,
why are you using the IP address in the serverURL and the machine name in
the authentication?
Or with other words: did you try this:
| Quote: | string _serverURL="http:gnnet-test0//:80"
|
Cheers,
Stefan.
"Shahid Mujtaba" <shahidmujtaba@hotmail.com> wrote in message
news:963c544e.0501110453.39d51cd@posting.google.com...
| Quote: | Hello Stefan!
The Code that i am testing is below. Thanks but as i said it works
fine when run from XP so there is no point in supplying the wrong
arguments.
Try to run the application once yourself, If Possible
You have to change the credentials only.Below is the sample code
Code Sample :
-----------------------------------------------------------------
//Server Name/IP:Port Where CMS is Installed
string _serverURL="http://192.168.25.31:80"
//Domain & username to log into CMS
string _userName="winnt://gnnet-test0/administrator";
string _userPasswrod="admin123";
try
{
objCmsDeployExportClient=new Client.CmsDeployExportClass();
objCmsDeployExportClient.AuthenticateAsUse(_serverURL,_userName,_userPasswro |
d);
| Quote: | }
catch(Exception ex)
{
ExceptionManager.Publish(ex);
}
-----------------------------------------------------------------
Create a Web Application
Add the Interop.SITEDEPLOYCLIENTLib dll to your references
Run the applciation
Message 2 in thread
From: Stefan [MSFT] (stefang@online.microsoft.com)
Subject: Re: CmsDeployExport Exception Follow Up
Previous Thread
----------------------------------------------------------
View this article only
Newsgroups: microsoft.public.cmserver.general
Date: 2005-01-10 07:42:41 PST
Hi Shahid,
please debug the code and check the parameters given to the
AuthenticateAsUser method.
Cheers,
Stefan.
"Shahid Mujtaba" <shahidmujtaba@hotmail.com> wrote in message
news:963c544e.0501100559.51c45c25@posting.google.com...
Overview:
I have implemented an interface to facilitate Incremental Export
Operation between Content Production & Production Servers. The
application first authenticates CMS by calling the AuthenticateAsUser
Method before any
export operation. The CMS is installed on Windows Server 2003 Machine
which is on another domain from that of application.
Scenario:
When i run the application from Windows XP Machine, it works fine but
when i run it from Windows Server 2003 Machine, the call to
AuthenticateAsUser produces the following COM Exception
{Illegal Characters in Path.}
I am not getting anywhere...please help
STEFAN your asked for complete StackTrace Information..you can see
below
I am still unable to solve this problem..any clues ??
Call Specification
*********************************************
Object Type: Client-Side CmsDeployExport Object
Class: CmsDeployExportClass
Method: AuthenticateAsUser(ServerURL, UserName, Password)
where ServerURL="http://IPAddress",
UserName="winnt://Domain/Login"
General Information
*********************************************
Additional Info:
ExceptionManager.MachineName: GNNETDEV
ExceptionManager.TimeStamp: 12/27/2004 4:31:04 PM
ExceptionManager.FullName:
Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.1473.25906, Culture=neutral, PublicKeyToken=null
ExceptionManager.AppDomainName:
/LM/W3SVC/1/Root/Admin-1-127485989566112335
ExceptionManager.ThreadIdentity: gnnet-test0\Administrator
ExceptionManager.WindowsIdentity: gnnet-test0\Administrator
1) Exception Information
*********************************************
Exception Type: System.Exception
Message: Illegal characters in path.
TargetSite: Void PushCms()
HelpLink: NULL
Source: Admin
StackTrace Information
*********************************************
at Geopaq.GnNetcom.ExportCMS.PushCms() in
c:\inetpub\wwwroot\admin\exportcms.aspx.cs:line 240
2) Exception Information
*********************************************
Exception Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147467259
Message: Illegal characters in path.
TargetSite: Void AuthenticateAsUser(System.String, System.String,
System.String)
HelpLink: NULL
Source: AEJavaProxy
StackTrace Information
*********************************************
at SITEDEPLOYCLIENTLib.CmsDeployExportClass.AuthenticateAsUser(String
strServerUrl, String strUserName, String strPassword)
at Geopaq.GnNetcom.ExportCMS.PushCms() in
c:\inetpub\wwwroot\admin\exportcms.aspx.cs:line 222 |
|
|