
.NET
xiciliu
这个作者很懒,什么都没留下…
展开
-
C#中错误解析
<br />1.<br />Q:名称以无效字符开头。处理资源"http://xxxx.xx/"时出错。第 1 行,位置: 2<br />A: 原因是IIS没开启对ASP.NET的支持。<br /><br />解决办法也很简单,就是重新注册一下iis:从开始->程序->Microsoft Visual Studio2005->Visual Studio Tools中打开Visual Studio 2005 CommandPrompt,输入命令:aspnet_regiis -i,这样就重新注册.ne原创 2010-06-18 14:50:00 · 457 阅读 · 0 评论 -
非常简单的UDP通信程序,C#
using System;using System.Net;using System.Net.Sockets;using System.Text;public class UDPListener{private const int listenPort = 11000;private static void StartListener(){bool done = false;原创 2013-04-28 21:31:07 · 727 阅读 · 0 评论 -
c# web应用发布,遇到错误 It is an error to use a section registered as allowDefinition='MachineToApplication'
使用IIS 7发布web应用, C#的。先直接将应用放到某个站点下,新建目录存储。访问时发现错误:It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.定位Web.config中的某行,内容为 而后,更改i原创 2017-12-25 12:33:27 · 1444 阅读 · 0 评论 -
IIS发布c#小坑,Could not load file or assembly 'xxxx' or one of its dependencies.
当在IIS 7中发布C#web应用时,出现错误:Could not load file or assembly 'DatabaseAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.原因是应用程序链接池 Application P原创 2017-12-25 13:07:51 · 8640 阅读 · 0 评论