随笔分类 - 错误排除
错误排除
摘要:先退出Docker 在PowerShell中执行代码 wsl --unregister docker-desktop wsl --unregister docker-desktop-data
阅读全文
摘要:The problem is likely that there's a newer version of the Visual C++ Redistributable than SQL Server is trying to install, e.g., from Visual Studio 2017. So another way to address this, if you don't need the latest C++ redistributable, is to go to Add or Remove Programs and uninstall all references to Visual C++ 2017 Redistributable. After this, the SQL Server installation should proceed without errors.
阅读全文
摘要:If your mappings aren't being updated that is strange. You can try to force it by deleting the `mappings.bin `in the `app_data` folder, and **`restarting the application`**. Orchard should recreate the nhibernate mappings and save as mappings.bin.
阅读全文
摘要:The error message while trying tocreate a ADO.net Entity Data Model ( Entity Framework 6 ) for MySql Database in Microsoft Visual Studio 2013"Your pro...
阅读全文
摘要:I am having problems with a bit of code that accesses a restful web service. Running this code, it errors out at var httpResponse = (HttpWebResponse)h...
阅读全文
摘要:As Imentioned earlier, solutions that rely on User-Agent sniffing may break, when a new browser or a new version of an existing browser is released. Unfortunately because ASP.NET also contains browser-specific code, the new Internet Explorer 11 may cause some problems there as well.Lucky coincidence
阅读全文
摘要:A few days ago, while working on anASP.NET 4.0 Web project, I got an issue. The issue was, when user entersnon-encoded HTML contentinto a comment text box s/he got something like the following error message:"A potentially dangerous Request.Form value was detected from the client".This was
阅读全文
摘要:需要安装 mysql-connector-net-6.7.4.msi在C盘安装mysql的位置找到三个DLL,复制到Bin文件夹下在Web.config文件中添加对应配置:
阅读全文
摘要:I got this error today when working on a migrated ASP .NET MVC 4 project. It was especially confusing for me because I already had a reference toSystem.Data.Entityin my web project.The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You m
阅读全文
摘要:前两天,装了VS2012后,打开SQL2008配置管理工具,发现SQL服务名称里什么也没有,只有一个提示:(如图) 上网搜了,试了很多方法,像什么把windows\system32\wbem下的framedyn.dll复制到system32目录下,还有照一个老外说的,下什么更新补丁,都没用!!想重装SQL2008,结果运行安装程序,变成了英文版(以前装显示的是中文的),而且安装根目录选不了!巨想死! 万念俱灰下,打开360,卸载了一个叫"Microsoft SQL Server 2012LocalDB",重新打开SQL配置管理器,发现可以了~高兴啊!!http:...
阅读全文
摘要:I'm searching for the answer for three days in a row already. The matter is that I have a page, links on which should load Colorbox with AJAX content that in its turn contains links that should be loaded in the same Colorbox modal window. So far I managed to make it work (partially) by this:<
阅读全文
摘要:先前在windows2003上安装了filezilla server 0.9.27做FTP服务器,最近发现用flashfxp连接后服务器端上的中文全是乱码。网上找了搜索一下信息,大意说是从0.9.14版之后用的字符集是UTF8,使用0.9.14及之前的版本是没有中文乱码问题的。还好FileZilla出了FileZillaPV这个补丁:http://sourceforge.net/projects/filezillapv/files/选 择Patched FileZilla Server这一项,windows下台下对应下载I386架构的文件,先停止FileZilla Server服务,将解压出来
阅读全文
摘要:1.发帖回复如果没有积分提示的动画请单生成_pageheader.htm和showtopic.htm模版,问题解决.2.如果问题还没解决,检查_pageheader.htm模版下有无下面这段代码<script type="text/javascript"> var creditnotice='{Scoresets.GetValidScoreNameAndId()}'; var forumpath = "{forumpath}"; </script>如果没有就在{link}和<script type="
阅读全文
摘要:最近在修改Discuz的代码以供客户使用,遇到一个问题就是BBS的帖子管理在Chrome和FireFox中无法正常加载处理,只出现一个处理中的层,然后就没有下文了。调试发现是一段XML的问题。“XML declaration allowed only at the start of the document.........”遇到这样的错误一般是xml开头有空行存在,请从配置文件开始找,删除头部与尾部空行即可!这一段代码是在Template下的_header.html文件里的 </div> <%else%> <%csharp%> Response.Clear
阅读全文
摘要:解决办法1.查看IIS设置是否正确2.Discuz.Web有没有引用Discuz.Data.SqlServer3.DNT.config 有没有加Administrators 控制权限
阅读全文
摘要:What you have is a valid ADO.NET connection string - but it'sNOTa valid Entity Framework connection string.The EF connection string would look something like this:<add name="testEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;prov
阅读全文
摘要:The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid要么是没有发现在配置中,指定的命名连接,不打算要用于EntityClient提供程序,或不是有效的解决办法:I suspect that your issue is coming from the fact that you have more than one project in your solution an
阅读全文
摘要:1,文件信息:<?xml version="1.0"?><?mso-application progid="Excel.Sheet"?>2,正文部分应包含在<Workbook></Workbook>之间: <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-m
阅读全文
摘要:webapplication网站中新加一个aspx页面会生成一个.designer.cs文件,打开可以发现,里面主要是用于声明控件变量,事件绑定等,他和aspx.cs文件配合使用,只为将控件声明和事件绑定与实际事件分离,编译时会合并。常常有人会出现这样一个问题:在aspx页面添加服务器控件时(控件写入的都正确),在cs里面找不到这个控件id ,然后看看designer.cs文件中没有刚写入的控件声明,我也遇到过,在开始的时候我就会,把控件删了,重新写下,结果还是不行,只能在designer.cs中手写控件声明了。能解决,不过很麻烦。其实一个特简单的方法:关闭.designer.cs文件,在as
阅读全文
摘要:Over the last few months we've collected information on various issues related to design view not working in Visual Studio 2008 or Visual Web Developer Express 2008. Here is list of known issues and possible solutions:Microsoft Visual Studio Web Authoring Component fails to install.1. Pre-releas
阅读全文
