-
使用.NET读取exchange邮件
摘要:公司有个第3方的系统,不能操作源码修改错误捕获,但是错误会发一个邮件出来,里面包含了主要的信息。于是想从邮件下手,提取需要的数据开始考虑使用的是exchange service,主要参考http://blog.csdn.net/tider_ys/article/details/6637879中间遇到...
阅读全文
-
Microsoft.Office.Interop.Word.Document.Open returns null on Windows Server 2008 R2
摘要:Microsoft.Office.Interop.Word.Document.Open 在windows 08 server r2上返回null,Create a new "Desktop" directory inside of "C:\Windows\SysWOW64\config\systemprofile\"
阅读全文
-
设置文件夹的权限
摘要:An error occurred while applying security information to: C:\Windows\SysWOW64\inetsrv。需要修改根目录的权限,然后修改需要设置权限的目录
阅读全文
-
安装了.NET 3.0 WCF HTTP Activation以后,WCF的诡异错误
摘要:Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.解决方法:aspnet_regiis.exe /iru
阅读全文
-
The name 'Profile' does not exist in the current context
摘要:Visual Studio doesn't create the class on the fly when you're developing a "ASP.NET web application".
There is a add-in here(http://www.gotdotnet.com/workspaces/workspace.aspx?id=406eefba-2dd9-4d80-a48c-b4f135df4127). with this add-in you can create the class. just follow the instructions in the readme file.
阅读全文
-
VS2010 sp1 - CLR20r3 crash
摘要:本来用的好好的,不知道怎么就挂了,每次调试xslt都会出错,然后只能关闭重启,然后又出错。。。火了,重装,还没有解决问题,冲动啊,浪费两个小时网上查了一下http://social.msdn.microsoft.com/Forums/da-DK/vssetup/thread/d3608a82-62b7-43d8-9864-e86232c17d01应该是一些配置有问题1. Open Visual Studio Command Prompt (2010) under Start menu -> All Programs -> Microsoft Visual Studio 2010 -
阅读全文
-
让Visual Studio 2008 和 2010支持Web Services Enhancements (WSE) 3.0
摘要:/* from:http://digantakumar.com/2010/06/04/wse-3-in-visual-studio-2008-and-2010/ */不翻居然图都看不到,真是个杯具,干脆拿过来吧VS2008和2010默认是不支持Web Services Enhancements (WSE) 3.0,因为MS希望用WCF来代替。下面是关于让Visual Studio 2008 和 2010支持Web Services Enhancements (WSE) 3.0的一个解决方法。1. 下载并且安装WSE 3.0。确认安装已经成功。注意:安装前关闭Visual Studio。2. 打
阅读全文
-
int的一点事,读《深入C#内存管理来分析值类型&引用类型,装箱&拆箱,堆栈几个概念组合之间的区别》
摘要:今天稍有点空闲,本来想看看网页啥的,无奈老板坐镇,只好翻开《CLR VIA C#》有些地方有点迷糊,准备敲代码试一下,打开学习用的项目,突然发现有个以前看《深入C#内存管理来分析值类型&引用类型,装箱&拆箱,堆栈几个概念组合之间的区别》遗留下来的问题代码是这样子的1inti=4;2objecto=i;3objecto2=o;4Console.WriteLine(ReferenceEquals(o,o2));//true5o=8;6Console.WriteLine(ReferenceEquals(o,o2));//false78Console.WriteLine("i
阅读全文
-
文件被数字签名策略拒绝(File was rejected by digital signature policy)
摘要:/* from: http://www.cnblogs.com/Magicworks/archive/2008/07/06/1236817.html*/今天在安装Windows Mobile 6 Professional SDK Refresh.msi 的时候,碰到一个错误"文件被数字签名策略拒绝(File was rejected by digital signature policy) ",可能在安装 Visual Studio 2005 SP1 的时候,也有人碰到过这个错误.这个错误产生的原因是:"当运行安装程序时,Windows Installer 会验证
阅读全文
-
Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor
摘要:/* from: http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/01/31/unable-to-connect-to-the-microsoft-visual-studio-remote-debugging-monitor.aspx */Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'DOMAIN\USER@MACHINENAME'. The Visual Studio Remote
阅读全文
-
Linq——Count、Sum、Min、Max、Average
摘要:/* from: http://blog.sina.com.cn/s/blog_412ec72c0100mall.html*/usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Text;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.U
阅读全文
-
Could not write to output file 'c:/WINDOWS/Microsoft.NET/Framework/v2.0.5072的处理
摘要:/* from: http://blog.csdn.net/woowindice/archive/2007/11/24/1901155.aspx*/Could not write to output file 'c:/WINDOWS/Microsoft.NET/Framework/v2.0.5072错误的处理: 出现CS0016的原因一般是临时目录的权限不够,至于为什么中途出现这种问题,我尚不清楚,解决的办法是给Windows目录下的临时文件夹Temp的安全选项卡中加入NetWork Service用户并赋予全权。更详尽的解释参考MSDN。MSDN给出的解释如下:When you vi
阅读全文
-
Could not start the MS DTC Transaction Manager
摘要:前两天卸载一个软件的时候,发现总是失败,重新安装也失败。查了一下eventlog,发现有些4112的MSDTC错误"Could not start the MS DTC Transaction Manager",谷歌一下,找到了解决方案Event ID 4112 Source MSDTC Eventhttp://www.eventid.net/display.asp?eventid=4112&eventno=2785&source=MSDTC%20Event&phase=1This error may be a result of a missing
阅读全文
-
程序集注册工具 (Regasm.exe)
摘要:/* from: http://msdn.microsoft.com/zh-cn/library/tzat5yw6(VS.80).aspx*/程序集注册工具读取程序集中的元数据,并将所需的项添加到注册表中。注册表允许 COM 客户程序以透明方式创建 .NET Framework 类。类一经注册,任何 COM 客户程序都可以使用它,就好像该类是一个 COM 类。类仅在安装程序集时注册一次。程序集中的类实例直到被实际注册时,才能从 COM 中创建。regasm assemblyFile [options]参数参数 说明 assemblyFile要向 COM 注册的程序集。选项 说明 /codeba
阅读全文
-
Sys.WebForms.PageRequestManagerParserErrorException错误的解决方法
摘要:今天将GridView导出excel的时候出现如下错误:Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.解决方法:将导出时间
阅读全文
-
How to change default form name "aspnetForm" in Beta 2
摘要:/* from: http://www.cnblogs.com/payne/archive/2007/04/30/733328.html*/Here's the responsible code for that error:public override string UniqueID{ get { if (this.NamingContainer == this.Page) { return base.UniqueID; } return "aspn...
阅读全文
-
Using Beyond Compare with TFS
摘要:/* from: http://blog.codejockey.net/post/Using-Beyond-Compare-with-TFS.aspx*/英文的将就着看看吧A while ago I published an article but have since lost it, so I’ve decided to re-post it as the topic came up again today and I found myself hunting for the information. This time around I stumbled on a nugget of i
阅读全文
-
探索Asp.net的Postback机制
摘要:/* from: http://www.techmango.com/blog/article/DotNet/Explore_Asp_net_postback_mechanism.htm*/__doPostBack作为在asp.net中一个很核心很重要的部分,我们有必要深入了解一下.其实,__doPostBack是一个很简单的脚本函数.代码如下://__doPostBack<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value=""
阅读全文
-
将xml绑定到gridview,及xml节点查询的selectNodes怎么实现多条件查询
摘要:定义个model(datatable也可)XmlDocumentxmldoc=newXmlDocument();stringxmlstr="<dataname="BackBtnResource1.Text"xml:space="preserve"><value>返回</value><comment>其它</comment></data>"xmldoc.LoadXml(xmlstr);XmlNodeListlist=xmldoc.SelectNodes("
阅读全文
-
Xml中SelectSingleNode方法中的xpath用法
摘要:/* from: http://blog.csdn.net/wf520pb/archive/2008/07/12/2644549.aspx*/最常见的XML数据类型有:Element, Attribute,Comment, Text. Element, 指形如<Name>Tom<Name>的节点。它可以包括:Element, Text, Comment, ProcessingInstruction, CDATA, and EntityReference. Attribute, 指在<Employee >中的粗体部分。 Comment,指形如:<!--
阅读全文
|