随笔分类 - .Net
Visual Studio 2005/2008,WCF
摘要:Visual Studio Install New Project Template For example, I want to install EP prj template: AxWebProject.zip Copy AxWebProject.zip zip file into this folder C:\Program Files\Microsoft Visual Studio 9....
阅读全文
摘要:自定义class 做xmlserialize 时候报错: There was an error generating the XML document.令人非常恼火的错误,参照:Troubleshooting Common Problem with XmlSerializer http://msdn.microsoft.com/en-us/library/aa302290.aspxXmlSeria...
阅读全文
摘要:[代码]2<scriptlanguage="JavaScript"type="text/javascript">3vartime=null4functionmove(){5window.location='<%=Request.QueryString["Redirect"]%>'6}7timer=setTimeout('move()',3000);8</script&...
阅读全文
摘要:Issue:DataBase sp: select count(*) from training where domain = @domain and username = @usernameLinq: TrainingDatabase.dbmlMain Class: TrainingDataBaseDataContext context = new TrainingDataBaseDataCon...
阅读全文
摘要:Problem: there were errors trying to contact team foundation server fe-tfs: tfs30063 you are not authorized to access the tfs Caused by: The login account cannot be remembered in windows 2008 Solution...
阅读全文
摘要:string successScript = "alertSuccess";if (!this.Page.ClientScript.IsStartupScriptRegistered(this.GetType(), successScript)){this.Page.ClientScript.RegisterStartupScript(this.GetType(), successScript, ...
阅读全文
摘要:Error: Could not load type 'microsoft.teamfoundation.workitemtracking.client.workitemtypedeniedornotexistexception' Cause: Install TeamExplorer after installing VisualStudio2008SP1 Solution: Reinstall...
阅读全文
摘要:问题当在 Windows 7 上用 VS2008 开发 WCF 3.5 客户端程序时,VS 将在自动生成的配置文件的 xxxBinding/security/transport 节中插入 <extendedProtectionPolicy policyEnforcement="Never" /> 如果将此程序部署到其他操作系统将报错:无法识别的元素“extendedProt...
阅读全文
摘要:When you connect to a Team Foundation Server, the Microsoft client API attempts to connect with your current credentialsthat the process is running with under Windows. If you are on a different domain...
阅读全文
摘要:VS2010有一个很有用的功能,列选择,ALT+SHIFT 就可以用鼠标列选择了,而且可以同时编辑选择列文本,通常我们可以用它选择多列文本,同时替换。 很帅吧。我记得Ultra Edit里也有这个功能。
阅读全文
摘要:目录的查找顺序: GAC目录(如果是StrongName Assembly) 应用目录 应用子目录 配置文件中的附加位置
阅读全文
摘要:对于已经签名的 Assembly, 使用如下命令查看 PublicKeyToken sn -T <assemblyname.dll> C:\Program Files\Microsoft Visual Studio 9.0\VC>sn -T C:\Inetpub\wwwroot\wss\VirtualDirectories\8300\bin\WebPartControl.dl...
阅读全文
摘要:原因有好几个,我这边的问题就是修改了sql 存储过程的结果集字段长度,用其他字段替换了原有的字段,一般是这个字段长度超过原有字段,容易出现这样的错误,比如用描述字段替换代码字段等 解决方案:检查 DataSet中 Table 定义的字段长度 Solution: Check all the MaxLength property of the columns in your DataTable.
阅读全文
摘要:Within the httpHandler section of the machine’s Web.config, the mapping appears as shown below *.svcMapping for WCF Handler
阅读全文
摘要:修改接收端的WCF config文件,注意,如果server端接收request超长,则修改server端config,如果是client 接收response超长,则修改client端,建议两边都修改,保持一致 ...
阅读全文
摘要:若要将 Windows Communication Foundation (WCF) 服务终结点配置为可与 ASP.NET Web 服务客户端进行互操作,请使用 System.ServiceModel.BasicHttpBinding 类型作为服务终结点的绑定类型,同时Request/Response数据类型必须要求符合标准soap数据类型. Ref:如何:配置 WCF 服务以便与 ASP.N...
阅读全文
摘要:在Service或Client端修改config 文件,同样的对于BizTalk WCF Adapter,修改BTSNTSvc.exe.config文件. ...
阅读全文
摘要:Service: [ServiceContract]public interface IDemoMethod{ [OperationContract(Action = "http://tempuri.org/IDemoMethod/DoWork2", ReplyAction = "http://tempuri.org/IDemoMethod/DoWork2Response")] s...
阅读全文
摘要:The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed. 这个问题主要是身份验证失败, 解决办法就是检查Se...
阅读全文
摘要:The operation Calculate either has a parameter or a return type that is attributed with MessageContractAttribute. In order to represent the request message using a Message Contract, the operation mus...
阅读全文
浙公网安备 33010602011771号