I’ve been at ThoughtWorks for 12 years. Who would have imagined? Instead of writing about my reflections from the past year, I thought I would do something different and post twelve key learnings and observations looking back over my career. I have chosen twelve, not because there are only twelve, but because it fits well with the theme of twelve years.
اشتراکها
اشتراکها
مقدمه ای بر Visual Studio Dev
Visual Studio Dev Essentials is a new free developer offering from Microsoft. A free membership to this program gives you access to a range of benefits including developer tools and services, training and support. This video provides an overview of some key benefits, including Visual Studio Community, Visual Studio Team Services, Pluralsight training, and HackHands live programming help
Azure
DocumentDB is a NoSQL document database service designed from the
ground up to natively support JSON and JavaScript directly inside the
database engine. It’s the right solution for applications that run in
the cloud when predictable throughput, low latency, and flexible query
are key. Microsoft consumer applications like MSN use DocumentDB in
production to support millions of users.
اشتراکها
یک style editor برای Angularjs
Features:
Header1-6/Bold/Itatic/underline/(un)order list/hr/justfy.
Code input supported. Just input ``` at line start, or format it.
Tab key supported.
Append whitespace to URL to insert link.
Drop or select image to insert it, or just paste from clipboard (ff not supported, trying to figure it out), image are saved to QiniuCloud.
Header1-6/Bold/Itatic/underline/(un)order list/hr/justfy.
Code input supported. Just input ``` at line start, or format it.
Tab key supported.
Append whitespace to URL to insert link.
Drop or select image to insert it, or just paste from clipboard (ff not supported, trying to figure it out), image are saved to QiniuCloud.
با نکته اشاره شده در بالا و تغییرات زیر در سرویس AntiForgeryCookieService این پروژه نیز در مرورگر کوکی درج نشد.
var httpContext = _contextAccessor.HttpContext; httpContext.User = new ClaimsPrincipal(new ClaimsIdentity(claims, JwtBearerDefaults.AuthenticationScheme)); var tokens = _antiforgery.GetAndStoreTokens(httpContext); httpContext.Response.Cookies.Append( key: XsrfTokenKey, value: tokens.RequestToken, options: new CookieOptions { SameSite = SameSiteMode.Unspecified, IsEssential = true, Secure = httpContext.Request.IsHttps, HttpOnly = false // Now JavaScript is able to read the cookie });
نظرات مطالب
راه اندازی StimulSoft Report در ASP.NET MVC
سلام؛ من طبق آموزش شما پیش میرم ولی همیشه خطای زیر را میگیرم
Could not load file or assembly 'Stimulsoft.Base' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
آیا مشکل از .dll هاست؟
کاری که گفتید رو انجام دادم و بعد از بررسی لاگ الماه متوجه شدم دوتا تسکی که نوشتم هیچکدوم به پایان نمیرسن. یکی از خطاها توی متد WakeUp صورت میگیره:
exception occured in wakeup methode:System.ArgumentNullException: Value cannot be null. Parameter name: address at System.Net.WebClient.DownloadData(String address) at xxx.Web.WebTasks.ScheduledTasksRegistry.WakeUp(String pageUrl)
در حالیکه من توی فایل کانفیگ برنامه آدرس سایت رو به این صورت دادم:
<add key="SiteRootUrl" value="http://xxx.com" />
و یکی دیگه از خطاهایی که اتفاق افتاده اینه:
System.Threading.ThreadAbortException: Thread was being aborted
قسمت «نحوهی ارسال درخواستهای Ajax ایی به همراه توکن صادر شده» را مطالعه کنید. اگر توکنی به سمت سرور ارسال نشود و هدر نهایی حاوی key/value مربوط به authorization ذکر شده نباشد:
مقدار access token در سمت سرور قابل بازیابی نخواهد بود.
با استفاده از developer tools مرورگرها بررسی کنید که آیا هدر authorization را به شکل زیر به سمت سرور ارسال میکنید یا خیر؟ (این هدر ویژه هست که actionContext.Request.Headers.Authorization را وهله سازی میکند)
$.ajax({ headers: { 'Authorization': 'Bearer ' + jwtToken },
با استفاده از developer tools مرورگرها بررسی کنید که آیا هدر authorization را به شکل زیر به سمت سرور ارسال میکنید یا خیر؟ (این هدر ویژه هست که actionContext.Request.Headers.Authorization را وهله سازی میکند)