jaykob
یک شنبه 06 شهریور 1390, 16:35 عصر
سلام دوستان
من می خوام از antixss که آقای نصیری در لینک زیر گذاشتند استفاده کنم :
http://www.dotnettips.info/2011/05/xss.html
این برای دات نت 4 هست اما من می خوام در 3.5 استفاده کنم . یک مشکل با IsNullOrWhiteSpace داشت که با متد زیر حلش کردم :
public static class StringExtensions { public static bool IsNullOrWhiteSpace(this string value) { if (value != null) { for (int i = 0; i < value.Length; i++) { if (!char.IsWhiteSpace(value[i])) { return false; } } } return true; } }
اما بعد از اجرا به httpModules داخل web.config گیر می ده که پیدا نمی کنه
Could not load file or assembly 'AntiXssMdl' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded
ممنون می شک راهنمایی بفرمایید
من می خوام از antixss که آقای نصیری در لینک زیر گذاشتند استفاده کنم :
http://www.dotnettips.info/2011/05/xss.html
این برای دات نت 4 هست اما من می خوام در 3.5 استفاده کنم . یک مشکل با IsNullOrWhiteSpace داشت که با متد زیر حلش کردم :
public static class StringExtensions { public static bool IsNullOrWhiteSpace(this string value) { if (value != null) { for (int i = 0; i < value.Length; i++) { if (!char.IsWhiteSpace(value[i])) { return false; } } } return true; } }
اما بعد از اجرا به httpModules داخل web.config گیر می ده که پیدا نمی کنه
Could not load file or assembly 'AntiXssMdl' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded
ممنون می شک راهنمایی بفرمایید