Click here to Skip to main content

piers7 - Professional Profile

3,485
Author
40
Authority
26
Debator
2
Enquirer
11
Organiser
124
Participant
0
Editor
There's some kinda mutex between money and the time to enjoy it, and it's called work.
Member since Thursday, February 5, 2004 (8 years, 3 months)

For more information on Reputation please see the FAQ.
 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
  Refresh
NewsAll posts moved to Blogger Pin
Saturday, December 3, 2005 11:26 PM
http://piers7.blogspot.com/[^]
 
GeneralSomeone broke my VS.IDE ! Pin
Sunday, May 1, 2005 5:22 PM
Have absolutely no idea how I managed it, but all of a sudden Visual Studio 2003 thought all my projects were Windows Applications. The .csproj files were still fine. When the solution loaded a shed load of errors like
 
"Load of property 'AllowUnsafeBlocks' failed."
"Load of property 'ApplicationIcon' failed."
"Load of property 'AssemblyKeyContainerName' failed."
 
and so on appear in the Task List.
 
I eventually found a solution on a SAP forum (I have never had SAP installed on this, or any other, PC) - re-register the C# project DLL
 
regsvr32 "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\csproj.dll"
 
regasm "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\PublicAssemblies\VSLangProj.dll"
 
devenv /resetskippkgs
 
(from https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FthreadID%3D12483%26tstart%3D0
)
 
Thanks SAP. Hope this guy worked it out too...

 
GeneralDoh! Different versions of System.Web.dll marked with same version number! Pin
Wednesday, February 23, 2005 3:34 PM
So a unit test broke inexplicably when I put it up to the CruiseControl server, and it didn't work on a collegue's machine either. It boiled down to the fact that a System.Web.UI.WebControls.Image with no AlternateText doesn't render an ALT attribute AT ALL on my collegue's machine, whereas on mine I get an empty ALT attribute.
 
ie
<img id="myList" alt="" border="0" />
vs
<img id="myList" border="0" />
 
Fair enough you might say, but we've both got the same version of System.Web.dll: 1.0.5000.0 from .Net v1.1.4322
 
Or have we?
 
Well obviously not, or we wouldn't be getting different Render() output. A quick squiz with Reflector indicates my assembly has internal version number f6153c24-4a3b-4f01-85cf-33d0fb852aea and size 1257472 bytes, and my collegue has e0b58e50-995f-4d8b-9d21-af7678f61626 with size 1245184 bytes. Drilling in a little futher with the disassembler finds the culprit: an extra condition in the latter that only writes the ALT tag out if AlternateText.Length > 0.
 
What's the moral? I don't know, but if you can't trust people to increment their version numbers when they release new versions then god help us all.
 
(As an aside, because assemblies in the GAC are tracked on a version number + public key basis, these two DIFFERENT assemblies are considered identical. This is presumably why MS chose not to increment the version number: because it was such a tiny weeny change. Enough of a change, however, to be noticable, and to break my (deliberately brittle) code. Bastards. Increment the version and use an Publisher Policy like you're meant to...)
 
GeneralDoh! style.top in a scrolling dhtml container element Pin
Tuesday, February 15, 2005 11:03 PM
In IE6 (and probably others), elements nested within a scrolling container (one with overflowY=auto) act as if they're in an absolutely positioned element - ie you need to account for the container when you're setting element.style.top (so you can't - say - just sum all the offsetY's from there to the document root and add/subtract some delta value for a relative-absolute position).
(Every time I (or someone I've worked with) has tried to do something clever in DHTML it's turned round and bit them on the arse. Clearly with the demise of NS4.x things are looking up, but oh-so-slowly)
 
GeneralDoh! ASPNET_SETREG access rights under IIS6 Pin
Tuesday, February 15, 2005 10:57 PM
When setting registry access rights for your encrypted connection strings (you know, the ones you created with ASPNET_SETREG) don't forget to add the new IIS_WPG group if you're deploying to IIS6, since your app's probably not running as ASPNET user any more...
 
GeneralDoh! CruiseControl with Visual SourceSafe (VSS) Pin
Tuesday, February 15, 2005 10:51 PM
Turns out that VSS 6 (even 6d) has a subtle bug in it's command-line syntax (ss.exe), such that it ignores the AM/PM indicator on the 'from' part of a date range. This plays silly buggers with CruiseControl, unless you set the 24Hr clock format on whatever profile user CruiseControl runs as.
 
GeneralKids < 18yr shouldn't be allowed to wear Nirvana tshirts Pin
Wednesday, February 2, 2005 1:11 PM
They were, what, like *eight*?

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.5.120528.1 | Last Updated 29 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid