Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Páginas1
#1
Dudas y pedidos generales / Re:Error al consumir web service en c#
Septiembre 02, 2019, 03:19:48 PM #2
Dudas y pedidos generales / [SOLUCIONADO] Error al consumir web service en c#
Septiembre 02, 2019, 01:15:39 PM
Buen dia disculpa alguien puede apoyarme con este error al consumir web service con dll.
se trabaja con c#.net , Se agrega la referncia al dll en visual studio y se consume de esta forma.
wServiceP.wsprbas.miservicioweb cc = new wServiceP.wsprbas.miservicioweb();
cc.buscar_ids("s");
la libreria se llama wServiceP.dll, la clase public class miservicioweb
me marca el siguiente error.
Error 1 El tipo 'System.Web.Services.Protocols.SoapHttpClientProtocol' está definido en un ensamblado al que no se hace referencia. Debe agregar una referencia al ensamblado 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Users\Documents\Visual Studio 2012\Projects\Permisos\Permisos\Form2.cs 103 13 Permisos
se trabaja con c#.net , Se agrega la referncia al dll en visual studio y se consume de esta forma.
wServiceP.wsprbas.miservicioweb cc = new wServiceP.wsprbas.miservicioweb();
cc.buscar_ids("s");
la libreria se llama wServiceP.dll, la clase public class miservicioweb
me marca el siguiente error.
Error 1 El tipo 'System.Web.Services.Protocols.SoapHttpClientProtocol' está definido en un ensamblado al que no se hace referencia. Debe agregar una referencia al ensamblado 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Users\Documents\Visual Studio 2012\Projects\Permisos\Permisos\Form2.cs 103 13 Permisos
#3
Dudas y pedidos generales / Problema al aplicar Winlicence
Agosto 24, 2019, 02:12:56 PM
Buenas tardes al momento de aplicar winlicence a mi aplicacion.exe se genera correctamente. El detalle esta que al momento de ejecutar la aplicacion generada me marca el siguiente error. Mi aplicacion esta realizada en c#.net.
Estoy utilizando la version de winlicence 2.4
No se puede generar una clase temporal (result=1).
error CS0009: No se puede abrir el archivo de metadatos 'c:\Users\Desktop\soft\prueba.exe' -- 'Se ha intentado cargar un programa con un formato incorrecto. '
A que se debera. Alguien a tenido el mismo problema?. Gracias.
Aqui cacho el error
try
{
servicio_php.miservicioweb cJef = new servicio_php.miservicioweb();
}
Anexo codigo
namespace dasBoard.servicio_php {
using System;
using You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="miserviciowebBinding", Namespace="You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login")]
public partial class miservicioweb : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback enviar_respuestaOperationCompleted;
private System.Threading.SendOrPostCallback registrar_datosOperationCompleted;
private System.Threading.SendOrPostCallback buscar_datosOperationCompleted;
private System.Threading.SendOrPostCallback buscar_idsOperationCompleted;
private System.Threading.SendOrPostCallback mostrar_datos_cedulaOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public miservicioweb() {
this.Url = global::dasBoard.Properties.Settings.Default.dasBoard_servicio_php_miservicioweb;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
Estoy utilizando la version de winlicence 2.4
No se puede generar una clase temporal (result=1).
error CS0009: No se puede abrir el archivo de metadatos 'c:\Users\Desktop\soft\prueba.exe' -- 'Se ha intentado cargar un programa con un formato incorrecto. '
A que se debera. Alguien a tenido el mismo problema?. Gracias.
Aqui cacho el error
try
{
servicio_php.miservicioweb cJef = new servicio_php.miservicioweb();
}
Anexo codigo
namespace dasBoard.servicio_php {
using System;
using You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.3056.0")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="miserviciowebBinding", Namespace="You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login")]
public partial class miservicioweb : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback enviar_respuestaOperationCompleted;
private System.Threading.SendOrPostCallback registrar_datosOperationCompleted;
private System.Threading.SendOrPostCallback buscar_datosOperationCompleted;
private System.Threading.SendOrPostCallback buscar_idsOperationCompleted;
private System.Threading.SendOrPostCallback mostrar_datos_cedulaOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public miservicioweb() {
this.Url = global::dasBoard.Properties.Settings.Default.dasBoard_servicio_php_miservicioweb;
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
this.UseDefaultCredentials = true;
this.useDefaultCredentialsSetExplicitly = false;
}
else {
this.useDefaultCredentialsSetExplicitly = true;
}
}
public new string Url {
get {
return base.Url;
}
set {
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
&& (this.useDefaultCredentialsSetExplicitly == false))
&& (this.IsLocalFileSystemWebService(value) == false))) {
base.UseDefaultCredentials = false;
}
base.Url = value;
}
}
public new bool UseDefaultCredentials {
get {
return base.UseDefaultCredentials;
}
set {
base.UseDefaultCredentials = value;
this.useDefaultCredentialsSetExplicitly = true;
}
}
#4
Dudas y pedidos generales / Crear licencias
Agosto 23, 2019, 12:33:03 PM
Buenas tardes disculpa alguien sabe como crear licencias para poder activar mi programa, quiero crear licencia de activacion, mi programa esta echo en c# net, no busco como crear una licencia de activacion que pueda proteger mi programa.
Agradecería me den una idea. Saludos.
Agradecería me den una idea. Saludos.
Páginas1

