- background-color:
#e7e7e7 ; - box-shadow: 0 0 2px
rgba(0,0,0,.2) , inset 0 14px 16pxrgba(255,255,255,.75) , inset 0 0 7px#fff ; - padding: .8em 0;
- display: block;
- -moz-border-radius: .3em;
- -webkit-border-radius: .3em;
- border-radius: .3em;
- cursor: pointer;
- border: none;
- color:
#646464 ; - text-transform: uppercase;
- text-align: center;
- vertical-align: middle;
Friday, December 12, 2014
Friday, December 5, 2014
Could not load file or assembly … The parameter is incorrect
Looks like a corrupted assembly being referenced.
Clear both:
- the \bin folder of your project
- the temp folder (should be
C:\Users\your_username\AppData\Local\Temp\Temporary ASP.NET Filesin windows 7)
and see if the error still happens
Depending on if your are running X64 you might need to clean up a couple more spots. Just cleaning up my user directory was not enough.
- %TEMP%\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
This list will grow as if you have other versions of the framework installed.
Wednesday, December 3, 2014
install a windows service
You can install the service by adding this code (in the program file, Program.cs) to install itself when run from the commandline using specified parameters:
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
if (System.Environment.UserInteractive)
{
if (args.Length > 0)
{
switch (args[0])
{
case "-install":
{
ManagedInstallerClass.InstallHelper(new string[] { Assembly.GetExecutingAssembly().Location });
break;
}
case "-uninstall":
{
ManagedInstallerClass.InstallHelper(new string[] { "/u", Assembly.GetExecutingAssembly().Location });
break;
}
}
}
}
else
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[] { new MyService() };
ServiceBase.Run(ServicesToRun);
}
}
Tuesday, December 2, 2014
debug the windows servie
put it in onstart method of a windows service to launch a debugger
System.Diagnostics.Debugger.Launch();
System.Diagnostics.Debugger.Launch();
Subscribe to:
Comments (Atom)