اگر پیش فرضهای IIS را تغییر نداده باشید، تمامی اعمال رخ داده در طی یک روز را در یک سری فایلهای متنی در یکی از آدرسهای زیر ذخیره میکند:
IIS 6.0: %windir%\System32\LogFiles\W3SVC<SiteID>
IIS 7.0: %systemDrive%\Inetpub\logfiles
اطلاعات فوق العاده ارزشمندی را میتوان از این لاگ فایلهای خام بدست آورد. اعم از تعداد بار دقیق مراجعه به صفحات، چه فایلهایی مفقود هستند (خطای 404)، کدام صفحات کندترینهای سایت شما را تشکیل میدهند و الی آخر.
مایکروسافت برای آنالیز این لاگ فایلها (که محدود به IIS هم نیست) ابزاری را ارائه داده به نام LogParser که این امکان را به شما میدهد تا از فایلهای CSV مانند با استفاده از عبارات SQL کوئری بگیرید (چیزی شبیه به پروایدرهای LINQ البته در سالهای 2005 و قبل از آن).
یکی از کاربردهای این ابزار، بررسیهای امنیتی است.
سؤال؟ چگونه متوجه شوم کدام کامپیوتر در شبکه اقدام به حمله DOS کرده و سرور را دارد از پا در میآورد؟
از آنجائیکه در لاگهای IIS دقیقا IP تمامی درخواستها ثبت میشود، با آنالیز این فایل ساده متنی میتوان اطلاعات لازم را بدست آورد.
logparser.exe -i:iisw3c "select top 25 count(*) as HitCount, c-ip from C:\WINDOWS\system32\LogFiles\W3SVC1\*.log group by c-ip order by HitCount DESC" -rtp:-1 > top25-ip.txt
به این صورت میتوان دقیقا متوجه شد که از کدام IP مشغول به زانو درآوردن سرور هستند.
اگر به این ابزار علاقمند شدید مطالعه مقاله زیر توصیه میشود:
ویدیوهای NET Conf 2022.
We are excited to announce the release of .NET Core 1.0, ASP.NET Core 1.0 and Entity Framework 1.0, available on Windows, OS X and Linux! .NET Core is a cross-platform, open source, and modular .NET platform for creating modern web apps, microservices, libraries and console applications.
This release includes the .NET Core runtime, libraries and tools and the ASP.NET Core libraries. We are also releasing Visual Studio and Visual Studio Code extensions that enable you to create .NET Core projects. You can get started at https://dot.net/core. Read the release notes for detailed release information.
Metadata Function ها در SQL Server
To be able to make full use of the system catalog to find out more about a database, you need to be familiar with the metadata functions. They save a great deal of time and typing when querying the metadata. Once you get the hang of these functions, the system catalog suddenly seems simple to use, as Robert Sheldon demonstrates in this article.
Git + .NET/Mono = ❤ http://libgit2.github.com
LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET and Mono.
$ git init /d/temp/rooted/path
string rootedPath = Repository.Init(@"D:\temp\rooted\path"); Console.WriteLine(rootedPath);
$ git add --all .
using (var repo = new Repository("path/to/your/repo")) { Commands.Stage(repo, "*"); }
$ git checkout <branch>
using (var repo = new Repository("path/to/your/repo")) { var branch = repo .Branches[branchName]; Branch currentBranch = Commands.Checkout(repo , branch); }
Top Issues Fixed in Visual Studio 2019 version 16.6.0
- When New Git experience feature flag is enabled, a message will appear in Team Explorer guiding users to the new Git tool window.
- Fix for intermittent UI delay while closing VS when WinForms .NET Core designer is in open state.
- Fixed issues creating projects using type providers, throwing missing method exception at runtime.
- Fixed project creation for .NET framework projects.
- New find in files experience respects options in Tools-Options-Find and Replace pane.
- Fixed a bug where Git repository does not change when closing a Folder and opening a Solution.
- Fixed bug when building iOS app using full debug symbols.
- Added back browing of Mac Distribution provisioning profiles and certificates from Windows.
- Fixed a bug causing Visual Studio 2019 to stop responding when working with Xamarin projects on certain scenarios.
- Added keyboard shortcut for "Copy with Headers" option in SQL Script Results Grid
- SSDT users will now be able to set and view sensitivity properties for all version above SQL Server 2008
- Improve Connection Properties dialog for accessibility users.
- Fixed occasional crashes when using Tested By Code Lens indicator.
- Ensure auto population of text in Find in files is as per legacy behavior.
- Ensure left arrow key behavior in find in files is correct.
- An issue blocking C++ users of the C++20 Ranges library from using algorithms.
This article dives into the mock questions I would ask, along with responses that are my personal best guess to the answers. Could my answers not reflect actual opinions shared by the team at Microsoft? Sure, but I'm hoping folks from the .NET team can jump in to correct me if I am way off base.
This is a rather interesting time for .NET – what's being done shapes the future of .NET for the next decade. Let's ask the honest questions and hopefully all of us will understand the new .NET ecosystem a little better.
مقاله درباره ViewModel
Use ViewModels to manage data & organize code in ASP.NET MVC applications
The concept of the ViewModel isn't just for ASP.NET MVC, as you'll see references to ViewModels throughout the web in articles and blog posts about the MVC, MVP, and MVVM patterns. Those posts and articles can center around any number of technologies such as ASP.NET, Silverlight, WPF, or MVC... This post will investigate ViewModels as they apply to the world of ASP.NET MVC.