473,372 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

Problem with Directory Services

The attach error was generate when I tried to use invoke method
"setpassword"

this is mi code

objeto.Invoke("SetPassword", new object[] {contraseña});

The error is
"The filename, directory name, or volume label syntax is incorrect"
Exception Detail : System.IO.FileNotFoundException:The filename, directory
name, or volume label syntax is incorrect
--
Diego Valencia
Jul 22 '05 #1
6 2436
Not possible to get such error when executing Invoke("SetPassword".....
The error must come from another (File IO) statement.

Willy.

"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
The attach error was generate when I tried to use invoke method
"setpassword"

this is mi code

objeto.Invoke("SetPassword", new object[] {contraseña});

The error is
"The filename, directory name, or volume label syntax is incorrect"
Exception Detail : System.IO.FileNotFoundException:The filename, directory
name, or volume label syntax is incorrect
--
Diego Valencia

Jul 22 '05 #2
Hi
The server it`s a Windows 2003 Std, pls review this trace ----------------
[FileNotFoundException: The filename, directory name, or volume label syntax
is incorrect.]
[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[] args) +29
System.DirectoryServices.DirectoryEntry.Invoke(Str ing methodName,
Object[] args) +106

Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
objeto, String contraseña) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:932
[DirectorioActivoException: Ocurrio un error estableciendo la contraseña
para el objeto.]

Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
objeto, String contraseña) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:939
Intelecto.Utilidades.DirectorioActivo.CrearObjeto( String nombre,
Hashtable propiedades, enm_TipoObjeto tipoobjeto) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:273
[DirectorioActivoException: Se presento un error al crear el objeto en el
Directorio Activo.]

CFV.CFVWeb.Reglas.SolicitudServicio.clsSolicitudSe rvicio.CrearPersonaNatural(clsPersonaNatural
obPersonaNatural, String stContraseñaPersonaNatural) in
C:\Inetpub\wwwroot\SolicitudServicio\SolicitudServ icioObject\clsSolicitudServicio.cs:376
CFV.CFVWeb.Web.Sitio.SolicitudServicio.PersonaNatu ral.VisorHojaVidaPersonaNatural.btnAceptar_Click(O bject
sender, EventArgs e) in
c:\inetpub\wwwroot\solicitudservicio\solicitudserv icio\personanatural\visorhojavidapersonanatural.as px.cs:148
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()
--
Diego Valencia
"Willy Denoyette [MVP]" wrote:
Not possible to get such error when executing Invoke("SetPassword".....
The error must come from another (File IO) statement.

Willy.

"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
The attach error was generate when I tried to use invoke method
"setpassword"

this is mi code

objeto.Invoke("SetPassword", new object[] {contraseña});

The error is
"The filename, directory name, or volume label syntax is incorrect"
Exception Detail : System.IO.FileNotFoundException:The filename, directory
name, or volume label syntax is incorrect
--
Diego Valencia


Jul 22 '05 #3
>The attach error was generate when I tried to use invoke method
"setpassword"

this is mi code
objeto.Invoke("SetPassword", new object[] {contrasea});


What is "objeto" ? How do you create it ?

You need to show a bit more of your code in order to enable others to
help you.....

Marcd

Jul 24 '05 #4
He, you have two exceptions on the call stack (FileNotFoundException and a
TargetInvocationException).
The TargetInvocationException comes from the SetPassword call, probably you
are calling this from an unsecured environment like a web application.
If you need more help, you will have to show us some code.

Willy.

"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Hi
The server it`s a Windows 2003 Std, pls review this trace ----------------
[FileNotFoundException: The filename, directory name, or volume label
syntax
is incorrect.]
[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[]
modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[] args) +29
System.DirectoryServices.DirectoryEntry.Invoke(Str ing methodName,
Object[] args) +106

Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
objeto, String contraseña) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:932
[DirectorioActivoException: Ocurrio un error estableciendo la contraseña
para el objeto.]

Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
objeto, String contraseña) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:939
Intelecto.Utilidades.DirectorioActivo.CrearObjeto( String nombre,
Hashtable propiedades, enm_TipoObjeto tipoobjeto) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:273
[DirectorioActivoException: Se presento un error al crear el objeto en el
Directorio Activo.]

CFV.CFVWeb.Reglas.SolicitudServicio.clsSolicitudSe rvicio.CrearPersonaNatural(clsPersonaNatural
obPersonaNatural, String stContraseñaPersonaNatural) in
C:\Inetpub\wwwroot\SolicitudServicio\SolicitudServ icioObject\clsSolicitudServicio.cs:376
CFV.CFVWeb.Web.Sitio.SolicitudServicio.PersonaNatu ral.VisorHojaVidaPersonaNatural.btnAceptar_Click(O bject
sender, EventArgs e) in
c:\inetpub\wwwroot\solicitudservicio\solicitudserv icio\personanatural\visorhojavidapersonanatural.as px.cs:148
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()
--
Diego Valencia
"Willy Denoyette [MVP]" wrote:
Not possible to get such error when executing Invoke("SetPassword".....
The error must come from another (File IO) statement.

Willy.

"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in
message
news:2C**********************************@microsof t.com...
> The attach error was generate when I tried to use invoke method
> "setpassword"
>
> this is mi code
>
> objeto.Invoke("SetPassword", new object[] {contraseña});
>
> The error is
> "The filename, directory name, or volume label syntax is incorrect"
> Exception Detail : System.IO.FileNotFoundException:The filename,
> directory
> name, or volume label syntax is incorrect
> --
> Diego Valencia


Jul 24 '05 #5
Hi Willy,
I´ll apreciatte your comments about my code; my scenario is :
Web Application
AD Directoty over Windows 2003
Thks 4 your help
public bool Conectar(string ruta,string usuario,string contraseña)
{
try
{
strUsuario=usuario;
strContraseña=contraseña;

ADSObjeto=new
System.DirectoryServices.DirectoryEntry(ruta,usuar io,contraseña,System.DirectoryServices.Authentica tionTypes.Secure);
ADSObjeto.RefreshCache();

return true;
}
catch(System.Exception Exc)
{
ADSObjeto.Dispose();

Intelecto.Utilidades.DirectorioActivoException ADExc=new
DirectorioActivoException ("No fue posible conectarse al Directorio
Activo.",Exc);
ADExc.Source=this.GetType().ToString()+"_Conectar( string,string,string)";
throw(ADExc);
}
}
private bool EstablecerContraseña(ref
System.DirectoryServices.DirectoryEntry objeto,string contraseña)
{
try
{
objeto.Invoke("SetPassword", new object[] {contraseña});
objeto.CommitChanges();
return true;
}
catch(System.Exception Exc)
{
Intelecto.Utilidades.DirectorioActivoException ADExc=new
DirectorioActivoException("Ocurrio un error estableciendo la contraseña para
el objeto.",Exc);
throw(ADExc);
}
}

--
Diego Valencia
"Willy Denoyette [MVP]" wrote:
He, you have two exceptions on the call stack (FileNotFoundException and a
TargetInvocationException).
The TargetInvocationException comes from the SetPassword call, probably you
are calling this from an unsecured environment like a web application.
If you need more help, you will have to show us some code.

Willy.

"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Hi
The server it`s a Windows 2003 Std, pls review this trace ----------------
[FileNotFoundException: The filename, directory name, or volume label
syntax
is incorrect.]
[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[]
modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[] args) +29
System.DirectoryServices.DirectoryEntry.Invoke(Str ing methodName,
Object[] args) +106

Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
objeto, String contraseña) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:932
[DirectorioActivoException: Ocurrio un error estableciendo la contraseña
para el objeto.]

Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
objeto, String contraseña) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:939
Intelecto.Utilidades.DirectorioActivo.CrearObjeto( String nombre,
Hashtable propiedades, enm_TipoObjeto tipoobjeto) in
C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:273
[DirectorioActivoException: Se presento un error al crear el objeto en el
Directorio Activo.]

CFV.CFVWeb.Reglas.SolicitudServicio.clsSolicitudSe rvicio.CrearPersonaNatural(clsPersonaNatural
obPersonaNatural, String stContraseñaPersonaNatural) in
C:\Inetpub\wwwroot\SolicitudServicio\SolicitudServ icioObject\clsSolicitudServicio.cs:376
CFV.CFVWeb.Web.Sitio.SolicitudServicio.PersonaNatu ral.VisorHojaVidaPersonaNatural.btnAceptar_Click(O bject
sender, EventArgs e) in
c:\inetpub\wwwroot\solicitudservicio\solicitudserv icio\personanatural\visorhojavidapersonanatural.as px.cs:148
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()
--
Diego Valencia
"Willy Denoyette [MVP]" wrote:
Not possible to get such error when executing Invoke("SetPassword".....
The error must come from another (File IO) statement.

Willy.

"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in
message
news:2C**********************************@microsof t.com...
> The attach error was generate when I tried to use invoke method
> "setpassword"
>
> this is mi code
>
> objeto.Invoke("SetPassword", new object[] {contraseña});
>
> The error is
> "The filename, directory name, or volume label syntax is incorrect"
> Exception Detail : System.IO.FileNotFoundException:The filename,
> directory
> name, or volume label syntax is incorrect
> --
> Diego Valencia


Jul 25 '05 #6
I don't see the call to the method EstablecerContraseña(...

Willy.
"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
Hi Willy,
I´ll apreciatte your comments about my code; my scenario is :
Web Application
AD Directoty over Windows 2003
Thks 4 your help
public bool Conectar(string ruta,string usuario,string contraseña)
{
try
{
strUsuario=usuario;
strContraseña=contraseña;

ADSObjeto=new
System.DirectoryServices.DirectoryEntry(ruta,usuar io,contraseña,System.DirectoryServices.Authentica tionTypes.Secure);
ADSObjeto.RefreshCache();

return true;
}
catch(System.Exception Exc)
{
ADSObjeto.Dispose();

Intelecto.Utilidades.DirectorioActivoException ADExc=new
DirectorioActivoException ("No fue posible conectarse al Directorio
Activo.",Exc);
ADExc.Source=this.GetType().ToString()+"_Conectar( string,string,string)";
throw(ADExc);
}
}
private bool EstablecerContraseña(ref
System.DirectoryServices.DirectoryEntry objeto,string contraseña)
{
try
{
objeto.Invoke("SetPassword", new object[] {contraseña});
objeto.CommitChanges();
return true;
}
catch(System.Exception Exc)
{
Intelecto.Utilidades.DirectorioActivoException ADExc=new
DirectorioActivoException("Ocurrio un error estableciendo la contraseña
para
el objeto.",Exc);
throw(ADExc);
}
}

--
Diego Valencia
"Willy Denoyette [MVP]" wrote:
He, you have two exceptions on the call stack (FileNotFoundException and
a
TargetInvocationException).
The TargetInvocationException comes from the SetPassword call, probably
you
are calling this from an unsecured environment like a web application.
If you need more help, you will have to show us some code.

Willy.

"Diego Valencia" <Di***********@discussions.microsoft.com> wrote in
message
news:CE**********************************@microsof t.com...
> Hi
> The server it`s a Windows 2003 Std, pls review this
> trace ----------------
> [FileNotFoundException: The filename, directory name, or volume label
> syntax
> is incorrect.]
> [TargetInvocationException: Exception has been thrown by the target of
> an
> invocation.]
> System.RuntimeType.InvokeDispMethod(String name, BindingFlags
> invokeAttr,
> Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
> String[] namedParameters) +0
> System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
> Binder binder, Object target, Object[] args, ParameterModifier[]
> modifiers,
> CultureInfo culture, String[] namedParameters) +473
> System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
> binder, Object target, Object[] args) +29
> System.DirectoryServices.DirectoryEntry.Invoke(Str ing methodName,
> Object[] args) +106
>
> Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
> objeto, String contraseña) in
> C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:932
> [DirectorioActivoException: Ocurrio un error estableciendo la
> contraseña
> para el objeto.]
>
> Intelecto.Utilidades.DirectorioActivo.EstablecerCo ntraseña(DirectoryEntry&
> objeto, String contraseña) in
> C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:939
> Intelecto.Utilidades.DirectorioActivo.CrearObjeto( String nombre,
> Hashtable propiedades, enm_TipoObjeto tipoobjeto) in
> C:\jsalcedo\Intelecto\Utilidades\DirectorioActivo\ DirectorioActivo.cs:273
> [DirectorioActivoException: Se presento un error al crear el objeto en
> el
> Directorio Activo.]
>
> CFV.CFVWeb.Reglas.SolicitudServicio.clsSolicitudSe rvicio.CrearPersonaNatural(clsPersonaNatural
> obPersonaNatural, String stContraseñaPersonaNatural) in
> C:\Inetpub\wwwroot\SolicitudServicio\SolicitudServ icioObject\clsSolicitudServicio.cs:376
> CFV.CFVWeb.Web.Sitio.SolicitudServicio.PersonaNatu ral.VisorHojaVidaPersonaNatural.btnAceptar_Click(O bject
> sender, EventArgs e) in
> c:\inetpub\wwwroot\solicitudservicio\solicitudserv icio\personanatural\visorhojavidapersonanatural.as px.cs:148
> System.Web.UI.WebControls.Button.OnClick(EventArgs e)
> System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
> eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
> sourceControl, String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
> System.Web.UI.Page.ProcessRequestMain()
> --
> Diego Valencia
>
>
> "Willy Denoyette [MVP]" wrote:
>
>> Not possible to get such error when executing
>> Invoke("SetPassword".....
>> The error must come from another (File IO) statement.
>>
>> Willy.
>>
>> "Diego Valencia" <Di***********@discussions.microsoft.com> wrote in
>> message
>> news:2C**********************************@microsof t.com...
>> > The attach error was generate when I tried to use invoke method
>> > "setpassword"
>> >
>> > this is mi code
>> >
>> > objeto.Invoke("SetPassword", new object[] {contraseña});
>> >
>> > The error is
>> > "The filename, directory name, or volume label syntax is incorrect"
>> > Exception Detail : System.IO.FileNotFoundException:The filename,
>> > directory
>> > name, or volume label syntax is incorrect
>> > --
>> > Diego Valencia
>>
>>
>>


Jul 25 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
6
by: Dave | last post by:
This is such a "dead in the water" problem I don't even know if this is the right forum for it. I have developed an ASP.NET/C# project on my own PC and it's working. I then transferred it to the...
1
by: Chris Love | last post by:
I have already asked this, but no one seems to know the answer. Here is the timeline. I wanted to use the membership/roles functionality in a site. I got all sorts of errors trying to get this...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
2
by: shapper | last post by:
Hello, I added some profile properties to my web.config file. Then I started to use my profile properties in a page class and I get an error: An error has occurred while establishing a...
2
by: Patrick F | last post by:
Hi, i have SQL Server 2005 and a database set that is called, myCompany the problem is that i cant connect from my page to it, here is from the web.config: ( i have got this connectionstring from...
2
by: az538 | last post by:
Hello All, I am having a problem with my menu and submenu system. It works like a champ in IE6 and Firefox but IE7 renders the submenus in incorrect positions on the page. Also, the menu system...
2
by: itfetish | last post by:
I've just upgraded our WIndows 2003 (with SBS server) web server to .Net framework 2.0 (it had 1.1 before) As I have been working on a web parts page on my laptop, hosting it there, working...
0
by: sangkatte | last post by:
While running asp website designed with webparts, I got the following error. Please tell me how to solve this problem. An error has occurred while establishing a connection to the server. When...
1
by: john20 | last post by:
Hi All, I am trying to use webpart in my page for that i am putting webpartmanager and webpartzone. but as soon as i am putting webpartmanger in the page it is giving me below error, let me...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.