Foros del Web » Programación para mayores de 30 ;) » .NET »

Problemas al compilar un WebServices

Estas en el tema de Problemas al compilar un WebServices en el foro de .NET en Foros del Web. Hola a todos!!! Una vez mas tengo una pregunta que ojala me pudieran ayudar a resolverla todos ustedes. Estoy haciendo un sitio web implementando WebServices ...
  #1 (permalink)  
Antiguo 13/10/2009, 09:20
 
Fecha de Ingreso: septiembre-2009
Mensajes: 6
Antigüedad: 14 años, 8 meses
Puntos: 0
Exclamación Problemas al compilar un WebServices

Hola a todos!!!

Una vez mas tengo una pregunta que ojala me pudieran ayudar a resolverla todos ustedes.

Estoy haciendo un sitio web implementando WebServices con WCF(Windows Comunication Foundation); solo que de pronto dejo de compilar correctamente enviandome el siguiente error:

The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception.

Y al intentar echar a andar mi servicio me envia lo siguiente:


Server Error in '/WCFS.Host' Application.
--------------------------------------------------------------------------------

System.ServiceModel.Diagnostics.DiagnosticTrace..c tor(System.ServiceModel.Diagnostics.TraceSourceKin d, System.String, System.String)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MethodAccessException: System.ServiceModel.Diagnostics.DiagnosticTrace..c tor(System.ServiceModel.Diagnostics.TraceSourceKin d, System.String, System.String)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[MethodAccessException: System.ServiceModel.Diagnostics.DiagnosticTrace..c tor(System.ServiceModel.Diagnostics.TraceSourceKin d, System.String, System.String)]
System.ServiceModel.DiagnosticUtility.InitDiagnost icTraceImpl(TraceSourceKind sourceType, String traceSourceName) +0
System.ServiceModel.DiagnosticUtility.InitializeTr acing() +13
System.ServiceModel.DiagnosticUtility..cctor() +89

[TypeInitializationException: The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception.]
System.ServiceModel.Configuration.ConfigurationHel pers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath) +116
System.ServiceModel.Configuration.ServiceHostingEn vironmentSection.UnsafeGetSection() +33
System.ServiceModel.HostingManager.LoadConfigParam eters() +30
System.ServiceModel.HostingManager..ctor() +112
System.ServiceModel.ServiceHostingEnvironment.Ensu reInitialized() +160
System.ServiceModel.ServiceHostingEnvironment.OnEn sureInitialized(Object state) +5
System.ServiceModel.PartialTrustHelpers.PartialTru stInvoke(ContextCallback callback, Object state) +84
System.ServiceModel.Activation.HttpModule.ProcessR equest(Object sender, EventArgs e) +103
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute() +157
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +65




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433



Alguien me pudiera ayudar a resolver el problema??

Inclusive desinstale y volvia a instalar por completo el .NET de mi maquina y tambien el framework; aun asi me sigue generando ese error.

Tambien probe en otra maquina y lo mas curioso es que en esa otra maquina lo compila correctamente; alguien tiene alguna idea del porque esta ocurriendo esto??

Nota: Para generar mi WebServices uso WSSF (Web Service Software Factory) de Patterns & Practices de microsoft
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:23.