本文介绍了XML_CannotFindFileInXapPackage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我一直在网上寻找可能的解决方案,但没有得到答案!我的设计中出现此错误



  

[Xml_CannotFindFileInXapPackage ]参数:ServiceReferences.ClientConfigDebugging资源字符串不可用。

键和参数通常提供足够的信息来诊断问题。

 

请参阅http://go.microsoft.com/fwlink/? Systemid.XmlXapResolver.GetEntity(Uri absoluteUri) ,String role,Type ofObjectToReturn)at

System.Xml.XmlReaderSettings.CreateReader(String inputUri,XmlParserContext inputContext)at

System.Xml.XmlReader.Create(String inputUri,XmlReaderSettings settings,XmlParserContext inputContext)at

System.ServiceModel.Configuration.ServiceModelSectionGroup。 GetSectionGroup() 


问题是它不是一个xml文件它给了我一个错误,它是一个类?!这是我的班级:

  1  使用系统; 
2 使用 System.ComponentModel;
3 使用 System.Collections.Generic;
4
5
6 名称空间 PositionManagementSL.BO
7 {
8 公共课 EmploymentStatusBO
9 {
10 public int ID { get ; set ; }
11 公共字符串状态{获取; set ; }
12 }
13
14 公共类 EmploymentStatusLookup
15 {
16 public List< EmploymentStatusBO> StatusList { get ; 私人套装; }
17
18 public EmploymentStatusLookup()
19 {
20 IseriesValuesWS.IseriesValuesSoapClient proxy = new IseriesValuesWS.IseriesValuesSoapClient();
21 尝试
22 {
23 proxy.GetAllEmploymentStatusCompleted + = 委托对象 asyncSender,IseriesValuesWS.GetAllEmploymentStatusCompletedEventArgs asyncE)
24 {
25 if (asyncE.Error == null
26 { this .StatusList = new 列表< EmploymentStatusBO>(BLL.EmploymentStatusBLL.ConvertToEmploymentStatusBO(asyncE.Result)) ; }
27 };
28 proxy.GetAllEmploymentStatusAsync();
29 }
30 catch (例外情况){抛出 ex; }
31 最后 {proxy.CloseAsync(); }
32 }
33 }
34
35 }
36



有人会有什么建议吗?或者可以发现我班上的问题?我也一直在阅读MS
的故障排除指南
http://msdn.microsoft.com/query/dev10.query?appId= Dev10IDEF1& l = EN-US& k = k(VS.WPFDESIGNER.TROUBLESHOOTING); k(TargetFrameworkMoniker-%22SILVERLIGHT%2cVERSION%3dV4.0%22)& rd = true
 但它不是我的意思需要。


 非常感谢!!

解决方案


Hello all! I've been searching online for a possible solution but came short of an answer! I have this error in my design

 

[Xml_CannotFindFileInXapPackage]Arguments: ServiceReferences.ClientConfigDebugging resource strings are unavailable.

Often the key and arguments provide sufficient information to diagnose the problem.

See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50401.0&File=System.Xml.dll&Key=Xml_CannotFindFileInXapPackage

at System.Xml.XmlXapResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at

System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext) at

System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) at

System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup() 

The problem is that it's not an xml file that it giving me an error on, its a class?! Here is my class:

1    using System;
2    using System.ComponentModel;
3    using System.Collections.Generic;
4    
5    
6    namespace PositionManagementSL.BO
7    {
8        public class EmploymentStatusBO
9        {
10           public int ID { get; set; }
11           public string Status { get; set; }
12       }
13   
14       public class EmploymentStatusLookup
15       {
16           public List<EmploymentStatusBO> StatusList { get; private set; }
17   
18           public EmploymentStatusLookup()
19           {
20               IseriesValuesWS.IseriesValuesSoapClient proxy = new IseriesValuesWS.IseriesValuesSoapClient();
21               try
22               {
23                   proxy.GetAllEmploymentStatusCompleted += delegate(object asyncSender, IseriesValuesWS.GetAllEmploymentStatusCompletedEventArgs asyncE)
24                   {
25                       if (asyncE.Error == null)
26                       { this.StatusList = new List<EmploymentStatusBO>(BLL.EmploymentStatusBLL.ConvertToEmploymentStatusBO(asyncE.Result)); }
27                   };
28                   proxy.GetAllEmploymentStatusAsync();
29               }
30               catch (Exception ex) { throw ex; }
31               finally { proxy.CloseAsync(); }
32           }
33       }
34   
35   }
36   

Would anyone have any suggestions? Or can spot an issue with my class? I also have been reading this troubleshooting guide from MShttp://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(VS.WPFDESIGNER.TROUBLESHOOTING);k(TargetFrameworkMoniker-%22SILVERLIGHT%2cVERSION%3dV4.0%22)&rd=true but it's not what I need either.

 Many thanks!!

解决方案


这篇关于XML_CannotFindFileInXapPackage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 08:20