Collection of unedited thoughts and bits of knowledge I can't seem to remember
Search This Blog
Tuesday, June 24, 2014
ApplicationPoolIdentity ran web service cannot write to the Event log
http://support.thycotic.com/KB/a220/giving-application-pool-access-to-event-log.aspx
(From Article) states giving NETWORK SERVICE permission to eventLog
1. Determine the account that is running Secret Server. This can be done by logging in to Secret Server, clicking on "Administration", and then on "Diagnostics". Look for any of the "Thread Identity" labels. These will contain the identity of Secret Server (often NT AUTHORITY\NETWORK SERVICE).
You can also determine the identity by logging in and navigating to http://yoursecretserverurl/Installer.aspx
The first step of this installer/updater page will tell you the application pool identity.
2. Open the Registry Editor on the machine running Secret Server (start->run-regedit)
3. On the left, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog
4. Right click on the "eventlog" folder in your registry editor and select "Permissions"
5. Give the account running Secret Server Full Control to this folder
Saturday, May 10, 2014
AutoMapper
AutoMapper:
(from automapper.org)
AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another.
https://github.com/AutoMapper/AutoMapper
http://automapper.org/
Another essential open source library...
For Microsoft Visual Studio 2013, you can install Automapper from the nuget manager.
Amazing little code needed to convert one class into another.
Typically, DTOs deserialized from data source are often less then ideal to use display data in UI or databind.
Automapper saved me 4-5hrs today and I have my code working in under 30 mins.
public class LegoCategory : INotifyPropertyChanged // ReSharper restore InconsistentNaming { private bool _inUse; [Column] public Int32 CatID { get; set; } [Column] public string CatDesc { get; set; } [Column] public bool InUse { get { return _inUse; } set { if (value == _inUse) return; _inUse = value; OnPropertyChanged("InUse"); } } public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName)); } } public class LegoCategoryDto // ReSharper restore InconsistentNaming { [DataMember,Column] public object CatID { get; set; } [DataMember, Column] public string CatDesc { get; set; } [DataMember, Column] public object InUse { get; set; } } //Code fragment... //fetches data from SQLite => LegoCategoryDTO converts to LegoCategory using //AUTOMAPPER var cmd = new SQLiteCommand(sql); var list = cmd.Deserialize<LegoCategoryDto>(Database.SQLITE); Mapper.CreateMap<LegoCategoryDto, LegoCategory>(); return list.Select(Mapper.Map<LegoCategory>).ToList();
Wednesday, May 7, 2014
Friday, April 18, 2014
Few Resources I find useful...
http://directshownet.sourceforge.net/
Summary: (from link)
DirectShowNET Library
The purpose of this library is to allow access to Microsoft's DirectShow functionality from within .NET applications. This library supports both Visual Basic .NET and C#, and theoretically, should work with any .NET language.
NLog: - nlog-project.org
NLog is a free logging platform for .NET, Silverlight and Windows Phone with rich log routing and management capabilities.SharpBox - Store everything
Ionic.Zip
a library for handling zip archives. http://www.codeplex.com/DotNetZip (Flavor=Retail)
SharpMap
https://sharpmap.codeplex.com/
SharpMap is an easy-to-use mapping library for use in web and desktop applications.
DotSpatial.Projections
http://dotspatial.codeplex.com/
The DotSpatial.Projections library is a port of the popular proj4 c++ library to C# .Net.
NetTopologySuite
A .NET library for GIS operations, direct porting of JTS Topology Suite 1.10 library
Google.GData
BruTile
BruTile is a C# open source library to access tile services like OpenStreetMap and Bing. BruTile has few dependencies, is platform independent and has a limited scope. It is intended for reuse by other more sophisticated libraries
CheckBoxComboBox
http://www.codeproject.com/Articles/21085/CheckBox-ComboBox-Extending-the-ComboBox-Class-and
http://www.codeproject.com/Articles/21085/CheckBox-ComboBox-Extending-the-ComboBox-Class-and
Tuesday, March 4, 2014
Frustrating Windows sockets error 10106: ProviderFailed to initialize.
I lost the ability to connect to svn servers on my
workstation either through tortoise of SVN commandline. Happens with coporate SVN
server and my local SVN server, my home svn server, and other public svn
servers.
I can however reach a coporate SVN repository in a web
Browser. I can also do the same with my
local svn server repo.
Not sure if this has happened at the same time, but i can't
get fiddler2 or fiddler4 to work anymore.
I need Unable to bind to port 8888 Error code 10106. Seems like I have a proxy issue.
Windows sockets error 10106: ProviderFailed to initialize.
Today, I could not get asp net state service to start up. Error: requested provider could not be loaded or intialized.
Found the solution to my problem:
http://www.pcreview.co.uk/forums/asp-net-state-service-wont-start-t3422497.html
This sounds like a Winsock problem, not a problem with ASP.NET itself. You
can reset your Winsock installation to setup defaults by following the
instructions from this KB article:
http://support.microsoft.com/kb/811259
(The short version of this is to use "netsh winsock reset" from a command
prompt.)
can reset your Winsock installation to setup defaults by following the
instructions from this KB article:
http://support.microsoft.com/kb/811259
(The short version of this is to use "netsh winsock reset" from a command
prompt.)
I reset my winsock installation and rebooted.
Problem solved.
Subscribe to:
Posts (Atom)
