tag:blogger.com,1999:blog-129986952024-03-08T17:48:08.181+01:00SerializerThe short story about my life, featuring my love, family and friendsHenrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.comBlogger39125tag:blogger.com,1999:blog-12998695.post-80450490089489758342012-08-09T10:26:00.000+02:002012-08-09T10:26:37.127+02:00IIS6 and .cshtml filesBy default IIS 6 does not want to execute these kind of files which gave me problems when installing blogengine.
What I did to resolve this was:
1. open IIS
2. right click on my web site and choose properties
3. click on Home directory tab
4. click on Configuration button
5. click on "Insert.." button
6. write cshtml as extension and c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll as pathHenrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-72642019166807126342010-11-19T08:59:00.001+01:002010-11-19T08:59:40.718+01:00CyberPower Intelligent LCD CP1350AVRLCD with not so intelligent software PowerPanel<p>I purchased the ups CP1350AVRLCD because of the small format, lcd screen and great uptime. My main purpose was watch 2 servers, 1 NAS, one switch and one router. No problem – those could just be plugged in.</p> <p>Before purchasing I did not look at software. I just *expected* that it has some basic functionality to notify me on email and shut servers down when battery level become lower.</p> <p>I was wrong. The “Personal Edition” that came with the UPS was only able to beep and shut down one computer. That did not help me. I searched for another application and found the “Business Edition”. I was ready to pay for it but no – after talking to support they told me that that software did not support my UPS. They also told me that I should buy another UPS that supported this software. This did, of course, not help me at all as I had already purchased the product.</p> <p>Anyway, I was able to start that “Business edition” but I was not impressed with that either.</p> <p>So, I started to try to communicate with the UPS and finally found a way to get battery level and power status from the UPS. I will now add some email support to that test application and also support to shut down multiple computers.</p> <p>If you are reading this and would like to have this alternative application then please let me know!</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com4tag:blogger.com,1999:blog-12998695.post-14685266559368291452010-03-20T15:54:00.001+01:002010-03-20T15:54:20.315+01:00The service did not respond to the start or control request in a timely fashion.<p>So, I released a new version of one of my applications. This application is a Windows service. Nothing strange about this version so I rolled it out. Suddenly, a lot of users where complaining about that the service did not start.</p> <p>One strange thing was that when changing the user that runs the service from SYSTEM (which is my default) to a local administrator it worked.</p> <p>I tried to create similar environments but could not reproduce the problems. I got desktop access on one of the users server and saw, while running ProcessExplorer that a lot of queries were done to CryptoAPI dll’s before it finally gave up and timed out. This led me to think of that it was some deeper security problem.</p> <p>I recently started signing my service with GlobalSign instead of Thawte so maybe it was something about that. I ran into this KB: <a title="http://support.microsoft.com/kb/936707" href="http://support.microsoft.com/kb/936707">http://support.microsoft.com/kb/936707</a></p> <p>So, I added the following lines to the config and it started to work when running as SYSTEM:</p> <p><em><configuration> <br />    <runtime> <br />        <generatePublisherEvidence enabled="false"/> <br />    </runtime> <br /></configuration></em></p> <p>I don’t know if the problem is specific to GlobalSign. Implementation error or that root certificates are missing. Or that my previous signing certificate was cached in some way. If you know – then please let me know. Right now, I am just satisified that this solution works.</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-38769469105626883762010-03-10T10:25:00.001+01:002010-03-10T10:26:30.465+01:00ClickOnce and obfuscation with .NET Reactor<p> </p> <p>The above could have been easy and straightforward if there weren’t for, what I call, design errors in the building and publish process.</p> <p>My first thought was that I could just add a post-build event, calling a command line protecting the applications/dll’s then just copy them back to the output folder. I was thinking that the “Publish” feature would use this output folder.</p> <p>That weren’t the case unfortunately.</p> <p>The Publish feature seems to store the built exe’s in memory or in a temporary location. Then it will overwrite anything in the output folder. So, your recently protected items will be overwritten. Then, after this, all signing and publishing magic will occur.</p> <p>As my original approach did not work I had to do this manually:</p> <p>1. I need to publish first (which builds). <br />2. Then protect the files <br />3. Copy the protected files over the build version folder <br />4. Update the application.manifest file (so that new hashes are createad for each file) <br />5. Re-sign the manifest file <br />6. Update the ApplicationName.Application file so it hashes the new manifest file <br />7. Re-sign the *.Application file</p> <p>To work with the files we use the manifest tool mage.exe. I am not sure if the version for Visual Studio 2008 has all functionality so I downloaded the RC for VS2010. I run all commands to the VS2010 command prompt.</p> <p>We don’t want to create new manifest files as that would reset other stuff you may enter within the Publish designer (and may not exist as option in mage.exe).</p> <p>Here is a rough script how I did it:</p> <p><em>REM </em><a href="http://msdn.microsoft.com/en-us/library/ms165431.aspx"><em>http://msdn.microsoft.com/en-us/library/ms165431.aspx</em></a> <br /><em>REM </em><a href="http://msdn.microsoft.com/en-us/library/acz3y3te%28VS.100%29.aspx"><em>http://msdn.microsoft.com/en-us/library/acz3y3te%28VS.100%29.aspx</em></a> <br /><em>REM msbuild /target:publish /property:BootstrapperEnabled=true </em></p> <p><em>REM Protect files <br />"C:\Program Files (x86)\Eziriz\.NET Reactor\dotNET_Reactor.exe" -project c:\sourcefiles\Reactor\AnyConnect.nrproj </em></p> <p><em>REM Copy protected files <br />copy C:\sourcefiles\code\AnyConnect\bin\Release\protected\*.dll "C:\sourcefiles\code\AnyConnect\bin\Release\app.publish\Application Files\AnyConnect_1_2_0_0\" <br />copy C:\sourcefiles\code\AnyConnect\bin\Release\protected\*.exe "C:\sourcefiles\code\AnyConnect\bin\Release\app.publish\Application Files\AnyConnect_1_2_0_0\" </em></p> <p><em>REM update hash files and sign <br />cd "C:\sourcefiles\code\AnyConnect\bin\Release\app.publish\Application Files\AnyConnect_1_2_0_0\" <br />mage -Update AnyConnect.exe.manifest <br />mage -Sign AnyConnect.exe.manifest -CertFile c:\sourcefiles\sign\netcart.pfx -Password myPassword</em></p> <p><em>REM update application file <br />cd "C:\sourcefiles\code\AnyConnect\bin\Release\app.publish\ <br />mage -Update AnyConnect.application -AppManifest "Application Files\AnyConnect_1_2_0_0\AnyConnect.exe.manifest" <br />mage -Sign AnyConnect.application -CertFile c:\sourcefiles\sign\netcart.pfx -Password myPassword</em></p> <p>You can improve this a lot so you don’t have to update version number and maybe even build the project but right now this works for me.</p> <p>Remember when uploading the project to upload both the version folder and the *.application file.</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com1tag:blogger.com,1999:blog-12998695.post-8693621002006877772010-02-03T19:41:00.001+01:002010-02-03T19:41:31.587+01:00System.Data.SqlClient.SqlException: Incorrect syntax near 'storedProcedureName'.<p>So, you were trying to use the SqlCommand and got this cryptic error when you tried to execute a stored procedure?</p> <p>Try changing the CommandType property on the SqlCommand:</p> <p>command.CommandType = System.Data.CommandType.StoredProcedure</p> <p>The CommandType is by default Text.</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-66538725067392483342009-10-20T11:35:00.001+02:002009-10-20T11:36:27.633+02:00TF14040: The folder {0} may not be checked out.<p> </p> <p>After moving to a new computer and started to open my old Visual Studio projects I got this error when trying to open an old dataset for example.</p> <p><a href="http://lh6.ggpht.com/__RptHVPfDNY/St2EUgUKLNI/AAAAAAAAADQ/WutklZXJO54/s1600-h/tf14040%5B2%5D.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="tf14040" border="0" alt="tf14040" src="http://lh5.ggpht.com/__RptHVPfDNY/St2EVJUXy1I/AAAAAAAAADU/VOCStTCOOTs/tf14040_thumb.png?imgmax=800" width="244" height="89" /></a> </p> <p></p> <p>The problem is related to permissions and I got around this by removing the Read-only flag on the project folder.</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-32618837728360637402009-09-19T13:19:00.001+02:002009-09-19T13:21:36.164+02:00Edit hosts file in Vista/Windows 7<p> </p> <h4>What is the hosts file?</h4> <p>The hosts file contains a list of IP address to hostname mappings and can be useful especially for web developers if they need to point a hostname to a specific IP address while developing or testing a website, without having to change settings on a DNS server. On Linux and Unix systems it is typically at /etc/hosts and on Windows systems (Windows 2000, XP, Vista, Windows 7) at c:\windows\system32\drivers\etc\hosts</p> <h4>Errors when editing the file</h4> <p>Depending on operative system you may get derrors below when trying to edit and save the hosts file:</p> <p>“Contact administrator”, “Permission denied”, “Path is not correct”.</p> <h4>Run as administrator</h4> <p>What you need to do this to open Notepad as administrator. Right click on Notepad and choose Run as Administrator. Then browse to the hosts file (you may need to turn on “View all files” as the hosts file does not have the txt extension”. Now, just edit and save the file.</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-38165023382362975582009-09-18T14:35:00.002+02:002009-09-18T14:46:35.040+02:00Windows 7 boot removeThought I would share this with Windows 7 (beta and non beta) users, if you are running XP and removed Win 7, but can't get rid of the boot record "your pc attempts to dual boot still" you can use this command along with disk...<br /><br />In XP, put in the Win 7 disk, go to <strong>Start, Run</strong>, then type this into run window...<br /><br /><em>whatever drive your Win 7 disk is in, eg..D,E</em><strong>:\boot\bootsect.exe /nt52 ALL /force</strong><br /><br />Click <strong>Ok</strong>.<br /><br />Take out disk, <strong>restart </strong>the computer, you should then boot right to XP.Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-2888063871099086132009-09-13T17:44:00.001+02:002009-09-13T17:46:50.240+02:00Invalid object name 'sys.configurations'. (Microsoft SQL Server, Error: 208)<p> </p> <p> </p> <p>An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)</p> <p><a href="http://lh4.ggpht.com/__RptHVPfDNY/Sq0TV977k8I/AAAAAAAAADA/syj7L1pmW-o/s1600-h/image%5B4%5D.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/__RptHVPfDNY/Sq0TWKjUEnI/AAAAAAAAADE/qWHz1SoZMoY/image_thumb%5B2%5D.png?imgmax=800" width="240" height="75" /></a> </p> <p>Perhaps you wanted to try Azure and especially SQL Azure. Maybe you wanted to connect to your SQL server in the cloud (especially as Microsoft provides a connection string) through <strong>Microsoft SQL Server Management Studio</strong> (MSMS). Forget that for now. Microsoft has no support for this currently.</p> <p>There are some workarounds. You can, while in the Management Studio, open a new connection. Login. You will get an error. Click ok. Now, you can browse your tables but you can atleast peform SQL queries.</p> <p>Guess we have to wait for the final release.</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-7844283414141595992009-09-07T23:14:00.001+02:002009-09-07T23:21:25.113+02:00Windows live writer<p>This is a first test using Windows live writer. Let see if this post can be done!</p> <p><a href="http://lh5.ggpht.com/__RptHVPfDNY/SqV40pltDsI/AAAAAAAAACo/RCfICwxSOXs/s1600-h/7620_154211310489_634840489_3952273_5815934_n%5B3%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Kian" border="0" alt="Kian" src="http://lh3.ggpht.com/__RptHVPfDNY/SqV401pKgGI/AAAAAAAAACs/fzf9YjBHeDs/7620_154211310489_634840489_3952273_5815934_n_thumb%5B1%5D.jpg?imgmax=800" width="240" height="160" /></a> </p> <p>This is Kian – almost 6 months and already facebooking!</p> Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-30798733493750805892009-01-07T14:27:00.002+01:002009-01-07T14:46:41.109+01:00TF31003: Your user account does not have permission to connect to the Team Foundation ServerMy bad concience of not spreading my experience regarding this error led to this post. I noticed this strange popup error when I wanted to add a new user for accessing my Team Foundation Server. It was nothing wrong with the actual user, rather, I discovered it had something to do with accessing it from another computer. I could not even log in with my existing user from a remote computer without getting this error.<br /><br />I found a solution and I have no idea if it is a good or bad fix - but it works. If someone knows that this is a stupid solution and have a better one then please tell me.<br /><br />I figured out that it had something todo with the computer/domain name. So, I went into C:\Windows\System32\drivers\etc and edited the hosts-file. I added the ip and a name for that ip. I saved the file. Then I opened VisualStudio again and added that servername. The server name can be anything as long as it is pointing to the correct ip.Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com3tag:blogger.com,1999:blog-12998695.post-79135039392919313942008-12-30T10:35:00.005+01:002009-09-13T17:25:07.291+02:00pxhelp20.sys, x64 and Sony Picture UtilityMy wife wanted to convert some AVCHD videos to a smaller format. I know there are tons of programs for that but I decided to use the free utility that came with our video camera SONY HDR-SR8 - the "Sony Picture Utility".<br /><br />Everybody knows, that have worked with video that these kinds of tasks take time and CPU. So, I wanted to use some excessive CPU on my Windows 2008 Server - using latest Xeon CPU. This server is 64 bit operating system. I installed the software. It asked me to reboot. Since I only saw pictures and no videos I decided that maybe I had to reboot. By the way, I hate software that requires reboot!<br /><br />Rebooting..It does not start..Moving a screen to the Server shows that Windows can't start because "pxhelp20.sys is corrupt or missing" - location \Windows\SysWOW64\Drivers\pxhelp20.sys. It seems like this driver is used by a lot of dvd tools and also the Sony Picture Utility. I started my Windows CD for repair but repair did not repair. My only way was through the command prompt. The file was there! I did not have any other 64 bit Windows 2008 so I asked a friend to send me same file for Vista x64. Replaced the file - same error. I was starting to getting nervous because I had a database on that Server that needed to be up and running. As a last option I deleted the file from the command prompt and hey, Windows started.<br /><br />While this was a success in the end the story does not end here. I quickly noticed that all my cdroms where gone. Even Deamon Tools drives. This was not critical but needs to be solved.<br /><br />Updated 2009-09-13:<br /><br />Thanks to Junior-PL I got a solution:<br /><br />1. Start->Run and open regedit<br />2. Go to HKEY_LOCAL_MACHINE/SYSTEM and open key CurrentControlSet/Control/Class/{4D36E965-E325-11CE-BFC1-08002BE10318}<br />3. There may be a lot of keys with this name but search for one that has (default) value DVD/CD-ROM drives<br />4. Now, when you have found this one you delete strings "LowFilters" and "UpperFilters" (if existing)<br />5. Reboot and pray (should work!)Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com11tag:blogger.com,1999:blog-12998695.post-37620197913476521702008-12-29T13:07:00.003+01:002008-12-29T13:15:15.821+01:00PAP2-T, Gigaset SL780 and change of timeRecently I "updated" my home telephony to IP-telephony. I was installing the Linksys PAP2-T IP telephony adapter together with the new Siemens Gigaset SL780 phone.<br /><br />Everything worked great except one thing. I noticed, that sometimes the time on the phone was set back 7 hours. Finally, I found that this happened when someone called us. The support at Siemens had no clue - of course..<br /><br />I had a hunch that the time from the PAP2-T was sent over to the phone which proved to be true. When browsing the web interface of the adapter the timezone was 7 hours off. Changing this and making one call to myself set the time right. I am not the average consumer which leads me to the question:<br /><br />How in the world are we ever able to move over to new technology when setting the time on a phone requires browsing a telephony adapters web interface and change properties? New technology should be easy to implement!Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-1151605801103606512006-06-29T19:51:00.000+02:002007-04-11T17:36:48.360+02:00"Specified Service Already Exists"I ran into this problem when creating a setup in .NET and choosed "Repair" at a later stage. The problem was due to that I was creating my own Custom Actions. When doing a "Repair" the custom install action is run as well. To prevent this you need to add: "Not Installed" at the Condition property of the Custom Action.Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com3tag:blogger.com,1999:blog-12998695.post-1150096971383974342006-06-12T09:19:00.000+02:002006-06-12T09:22:51.396+02:00Problem - loop through a repeater for controlsI was using ASP.NET, C#, and wanted to auto translate some controls on a Page. I had no problems looping through controls like the GridView but when I tried the Repeater control I ran into problems. No controls or items were found when looping through it.<br /><br />The problem was that the controls/items were created at a later stage than Page_Load where my function was executed.<br /><br />I moved my function to Page_PreRender and everything went just fine..Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com1tag:blogger.com,1999:blog-12998695.post-1146421566857110022006-04-30T20:15:00.000+02:002006-05-20T03:42:36.903+02:00ToolStrip and it's responsivenessI had a problem with the new .NET 2.0 component "ToolStrip". The problem appeared when switching between forms within an application by clicking on one of the toolstrip buttions. The first click was not "catched" as an event. This was really annoying and I was near switching to the toolstrip components of Infragistics.<br /><br />First I found a quick solution. I added the event "MouseHover" and then focused on the toolstrip like this:<br /><br />Private Sub tolMain_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tolMain.MouseHover<br /> tolMain.Focus()<br />End Sub<br /><br />It worked but it seemed unnesseary. I did a quick search on the Internet and I found a post from one who had faced and solved the problem. Read more about it here: <a href="http://blogs.msdn.com/rickbrew/archive/2006/01/09/511003.aspx">http://blogs.msdn.com/rickbrew/archive/2006/01/09/511003.aspx</a><br /><br />He hade made a C# example and here is my code, converted to VB.NET:<br /><br /><br />Imports System.Windows.Forms.ToolStrip<br />Public Class ToolStripEx<br /> Inherits ToolStrip<br /> Private bolClickThrough As Boolean = False<br /><br /> Public Property ClickThrough() As Boolean<br /> Get<br /> Return bolClickThrough<br /> End Get<br /> Set(ByVal value As Boolean)<br /> bolClickThrough = value<br /> End Set<br /> End Property<br /><br /> Public Sub New()<br /> MyBase.new()<br /> End Sub<br /><br /> Protected Overrides Sub WndProc(ByRef m As Message)<br /> MyBase.WndProc(m)<br /> If bolClickThrough Then<br /> If m.Msg = NativeConstants.WM_MOUSEACTIVATE And m.Result = CType(NativeConstants.MA_ACTIVATEANDEAT, IntPtr) Then<br /> m.Result = CType(NativeConstants.MA_ACTIVATE, IntPtr)<br /> End If<br /> End If<br /> End Sub<br />End Class<br /><br />Friend Class NativeConstants<br /> Friend Const WM_MOUSEACTIVATE As UInt32 = 33<br /> Friend Const MA_ACTIVATE As UInt32 = 1<br /> Friend Const MA_ACTIVATEANDEAT As UInt32 = 2<br /> Friend Const MA_NOACTIVATE As UInt32 = 3<br /> Friend Const MA_NOACTIVATEANDEAT As UInt32 = 4<br />End ClassHenrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-1145863463572111032006-04-24T09:15:00.000+02:002006-04-24T09:24:23.583+02:00Long time no blogThere have been a lot of work on VisualCron lately. There is a clear roadmap but sometimes I get busy on sidetracks - smaller o bigger requests by customers. Luckily, my dad, a professional tester has been there helping with testing and documentation.<br /><br />On the personal side, I have a lot of things that I look forward to. First, the average temperature is increasing every day. Second, there will be a lot of traveling this year. In the end of May, me and Neda are traveling to Istanbul, Turkey. In July we will travel to Malage in Spain. Later in the autumn, me and my friends are going to London.<br /><br />I haven't had the time to work with the studio yet. Hopefully there will be more time soon..Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-1138202857240345752006-01-25T16:05:00.000+01:002006-01-25T16:32:36.893+01:00WMI Adventures - "Invalid Class", "Not Found" and "Access Denied"I was trying to monitor the registry with WMI - Windows Management Instrumentation. I could find almost everything in the namespace "root\CIMV2" for my needs except for registry changes. Those where located in "root\DEFAULT" and did not use the regular WQL polling operator "WITHIN".<br /><br />I searched for examples on the net using C# or VB.NET. The net was quite dry on this subject. I found some examples but when implementing those I got "Invalid Class". After some testing I found that you need to specify the class in the EventQuery. And the class changes depending on the type of registry query you want todo.<br /><br />Registry changes are divided in three parts:<br /><br />RegistryTreeChangeEvent - Monitors changes to a hierarchy of keys.<br />RegistryKeyChangeEvent - KeyPath Monitors changes to a single key.<br />RegistryValueChangeEvent - ValueName Monitors changes to a single value.<br /><br />This is a VB.NET example:<br /><br />Dim evQuery As New WqlEventQuery()<br />evQuery.EventClassName = "RegistryValueChangeEvent" <--- here you specify the classname which should match the "tablename" in the querystring evQuery.WithinInterval = New TimeSpan(0, 0, 0, 10, 0) evQuery.QueryString = "SELECT * FROM RegistryValueChangeEvent WHERE hive = '" & _ "HKEY_LOCAL_MACHINE" & "' AND KeyPath = '" & _ "Software\\Activision" &amp;amp; "'" & _ "AND ValueName='mamma'"<br /><br />So remember to change the EventClassName depending on the tablename.<br /><br />While testing I also stumbled upon the ManagementException "Not found". This error is due to that there is not match in the WQL. Maybe you have specified the wrong KeyPath or your are missing the double backspace.<br /><br />The error "Access denied" is however not solved. I am getting the error when using the LIKE operator in WQL. If <strong>you</strong> have any idea about this the please comment that :)Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com2tag:blogger.com,1999:blog-12998695.post-1135084206593563852005-12-20T13:59:00.000+01:002005-12-20T14:12:47.546+01:00MSMQ permissions needs a "touch"Recently I was working with a project where I needed to set up some MSMQ queues at the install phase. I realized I needed to change the security attributes when converting the c# application to a windows service. After scraping the web I found a way to set attributes. <br /><br />The install went fine but when trying to access that queue I still received errors about permissions. I looked in the MSMQ attributes for that queue in Administrive tools. All was set right. After unchecking and then rechecking a box followed by Apply it worked again. A bug! This workaround/step would not be accepted by the end customer so I had to find a work around. After some testing I found that I could use the function SetPermissions on a queue after setting the permissions in the install. The result looks like this:<br /><br /> // local system account<br /> Trustee t1 = new Trustee();<br /> t1.Name = "SYSTEM";<br /> t1.TrusteeType = TrusteeType.User;<br /> t1.SystemName = ".";<br /> AccessControlEntry ace1 = new AccessControlEntry();<br /> ace1.EntryType = AccessControlEntryType.Allow;<br /> ace1.GenericAccessRights = GenericAccessRights.All;<br /> ace1.StandardAccessRights = StandardAccessRights.All;<br /> ace1.Trustee = t1;<br /><br /> // any other computer<br /> Trustee t2 = new Trustee();<br /> t2.Name = "Everyone";<br /> t2.TrusteeType = TrusteeType.Group;<br /> t2.SystemName = ".";<br /> AccessControlEntry ace2 = new AccessControlEntry();<br /> ace2.EntryType = AccessControlEntryType.Allow;<br /> ace2.GenericAccessRights = GenericAccessRights.All;<br /> ace2.StandardAccessRights = StandardAccessRights.All;<br /> ace2.Trustee = t2;<br /><br /> AccessControlList acl = new AccessControlList();<br /> acl.Add(ace1);<br /> acl.Add(ace2);<br /> MSMQInstaller.Permissions = acl;<br /><br />// This corrects a bug when previous settings are not correctly applied<br /> // Using the SetPermissions after adding the accesscontrollist applies previous settings<br /> // Remember to use Allow below to keep existing settings<br /> MessageQueue m = new MessageQueue(MSMQInstaller.Path);<br /> m.SetPermissions("SYSTEM", MessageQueueAccessRights.FullControl, AccessControlEntryType.Allow);Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com1tag:blogger.com,1999:blog-12998695.post-1129188729771266082005-10-13T09:23:00.000+02:002005-10-13T09:32:09.866+02:00Every day is a new dayI has been a while since I last posted here. I have been spending a lot of time on VisualCron. The future of VisualCron is becoming more clear. There are still of lot of things to implement but the foundation feels very stable.<br /><br />The "singing-booth" is also ready now. It's a black rectangle, 1.2 * 1.5 meters with 2.2 in height. It is painted black now and I have put up some diffusers. It looks quite good and it sounds very good. I may post some pictures here later. I have to spend some time singing every day. Training singing is like training a muscle. I am very "untrained" right now but a little practice will do the trick!<br /><br />Both my friend DJ and I have had very little time over to spend on our new project. But it will get better! Our next meeting is on sunday and hopefully everything will be clearer then!Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-1126079427537643412005-09-07T09:42:00.000+02:002005-09-07T09:50:27.543+02:00X-Station finally hereI received my X-Station this monday. Finally. I played around with it for a while. I am a newbie on that area but I got it working with Reason 3 and upgrade the firmware.<br /><br />At the same day I bought Battlefield 2. Now I am stuck on that one too!<br /><br />This month will be hectic. A lot of happenings will occur. As usual, besides the music project and BF2, I have another project going on with my friend DJ. Can't tell you anything about it yet but we hope that our idea is as great as we think! :) We'll be finished, hopefully, in the middle of November. But that's a very tight schedule! ;)<br /><br />Neda and I has booked a trip to London the 16th of December. Just for the weekend. Can you imagine that I have never been there before?!Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com1tag:blogger.com,1999:blog-12998695.post-1124657773084350882005-08-21T22:51:00.000+02:002005-08-21T22:56:13.090+02:00VisualCron 2.5.0 releasedFinally, after many weeks of work the version above of VisualCron is released. This version was an important step for me and VisualCron.<br /><br />I have listened to a lot of user requests and implemented the most important things, you can read a list of changes <a href="http://www.visualcron.com/changelog.php">here</a>. Hope you'll like it!<br /><br />My personal life has been suffering and I hope that this version will calm down most of the users for, at least, a shorter period. So after another weekend of work I go to sleep and wake up to my regular work again ;)Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-1124468816043984782005-08-19T18:24:00.000+02:002007-03-02T08:43:14.770+01:00Free caribbean cruiseI just got a computer, automated call on my home phone saying that I won a caribbean cruise like this:<br /><br /><blockquote>Congratulations! You’ve won a free caribbean cruise. To reclaim your prize, press 9. That’s the nine-key on your telephone.</blockquote><br /><br />I didn't press 9 - I hung up and I think that you should do it too because I have heard that they will charge you 800 Euro and you won't get any trip :)Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com2tag:blogger.com,1999:blog-12998695.post-1123860676007170392005-08-12T16:50:00.000+02:002005-08-12T17:31:16.023+02:00Result is what countsI have not been lazy - I have just been busy like a bee. In the previous weeks I have dreamt about VisualCron and worked late nights. A lot of important steps has been made both which I have mentioned before and new ones.<br /><br />You, VisualCron users out there, has been lucky because the fact that I have not received my X-Station yet.<br /><br />I expect the VisualCron release to be within 2 weeks from now.Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0tag:blogger.com,1999:blog-12998695.post-1122348285109468522005-07-26T05:06:00.000+02:002005-08-04T09:33:45.390+02:00Going to SicilyThe clock is 5 am and in less than two hours Neda and I go to Giardini-Naxos in Sicily. It's really hot there right now, about 38 degrees Celsius.<br /><br />Last week I were with my friends in Gotland, Sweden. The weather was bad but it did not affect the partying! Anyway, I used some of the bad weather to develop VisualCron and the new features are doing great.<br /><br />The cab is waiting now!Henrikhttp://www.blogger.com/profile/12295737428848013302noreply@blogger.com0