image

qke 奇客

Home >> DotNet

Your application is not running with full trust

Posted on: Friday, November 28th, 2008 in: DotNet

Your application is not running with full trust

问题描述:
当我使用AspxLab.WebControls控件时出现了一下错误

安全性异常
说明: 应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系,或在配置文件中更改该应用程序的信任级别。
异常详细信息: System.Security.SecurityException: Your application is not running with full trust. Please call AspxLab.WebControls.Runtime.Initialize to manually initialize AspxLab Controls runtime environment.

 解决方法:
在system.web节点下添加
<httpModules>
<add name=“ASPXLAbsRuntime“ type=“AspxLab.WebControls.Runtime“/>
</httpModules>

火烈鸟鞋业十月震撼上线!!

Posted on: Monday, October 6th, 2008 in: DotNet, unsorted

今秋十月, 惊喜不断。火烈鸟鞋业经过4个月酝酿,震撼上线,我们为您提供最新的款式,最实惠的价格,您可以在火烈鸟商城挑选您最喜爱的鞋。为庆祝火烈鸟上线,全场鞋 特价促销,强劲推出促销活动,心动不如行动,赶紧来抢购一款您喜爱的鞋!我们完善的服务让您充分体会网上购物的乐趣。时尚购物  走在前线 体验新生 活 火烈鸟购物网!!

VS 2008发布了

Posted on: Saturday, November 24th, 2007 in: DotNet

    前天在浏览网页的时候,发现在VS 2008发布了。MS一真桌面操作系统的老大,现在它的DotNet技术又引领IT技术的前沿。总结MS开发出来的东西,一句话就是易用性很强,不同版本之间的学习曲线也比较平缓,像我和VS2003到VS2005,基本没有花多少时间去学习。旧的东西还没用好就又要学新的东西,前面有人领跑,我们就在后面追,跑得气喘吁吁却越落越远,感觉脑袋越来越不够用了。我常想,长期这样下去,会不会把人折磨成神经病。其次就是一个阵营选择的问题,每次一有新的东西出来,我们都要斟酌一次究竟哪个阵营的产品效率更高、使用更方便、学习更简单。

关于System.Net.Mail与System.Web.Mail的发送邮件一个问题

Posted on: Saturday, November 10th, 2007 in: DotNet

当用System.Net.Mail发送邮件时,异常信息是:
System.Net.Mail.SmtpException: 语法错误,无法识别命令。 服务器响应为: authentication failed(password)
英文版本的:
Syntax error, command unrecognized. The server response was: Unauthorized re
lay msg rejected
Description: An unhandled exception occurred during the execution of the cur
rent web request. Please review the stack trace for more information about t
he error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: Syntax error, command unre
cognized. The server response [...]

DataReader转DataSet函数

Posted on: Sunday, September 30th, 2007 in: DotNet

using System;
using System.Data;
using System.Data.SqlClient;
namespace CSQLMethods
{
    /// <summary>
    /// 一些常用方法集
    /// </summary>
    public class CCommonMethod
    {
        ///    <summary>
        ///    Converts a SqlDataReader to a DataSet
        ///    <param name=’reader’>
        /// SqlDataReader to convert.</param>
        ///    <returns>
        /// DataSet filled with the contents of the reader.</returns>
        ///    </summary>
        public static DataSet convertDataReaderToDataSet(SqlDataReader reader)
        {
            DataSet dataSet = new DataSet();
            [...]