Other
  • Microsoft Installer - Assemblies referenced by custom actions
    • Se copiaza assembly-urile respective in folderul system32 (acolo e rulat installer-ul) sau in directorul unde e deployata aplicatia. Yummy
  • IIS 6.0 - App Pools sub o identitate custom
    • User-ul trebuie pus in grupul IIS_WPG al serverului web
  • Localization in .resx - The resource name '<file>' is not a valid identifier
    • http://msdn2.microsoft.com/en-us/library/ms228672(VS.80).aspx
    • This warning occurs if the resource name is not a valid identifier (for example, it contains a space), and strongly typed resource generation is turned on for the file. This is a warning instead of an error because the strongly typed resource name will be changed to a valid name (for example, "a b" will be changed to "a_b"), but the resource name will remain "a b.".
    • To correct this error you should first change the name of the resource to a valid identifier, if possible. If that is not a valid option, disable strongly typed resource code generation for this .resx file. To do this, select the .resx file in Solution Explorer and clear the Custom Tool property.
  • The terminal server has exceeded the maximum number of connections.
    • Se poate realiza conectarea in modul consola (care..e tot cu UI and stuff), ruland comanda "mstsc /console".
  • Script debugging in Visual Studio
  • MSBuild: lazy eval
    • Regarding ItemGroups. If you want lazy eval of Items, then use the CreateItem task instead. I wish that were documented more clearly by Microsoft!
  • Pierderea conexiunii la internet cand se intra pe un VPN
    • Properties pe VPN => Networking => IPV4 => Properties => uncheck "Use default gateway on remote network".
  • Base64 encoding
    • caracterele encodate in base64 pot fi citite/scrise ca text => pot encoda fisiere binare in base64 si le pot citi ca text.
  • Crearea unui EventSource in EventLog din consola
    • eventcreate /T "SUCCESS" /ID 1 /L "Application" /SO "<numele sursei>" /D "Creez sursa de evenimente."
  • Internet Explorer - probleme cu Windows Authentication
    • Internet Options -> Advanced -> Enable Integrated Windows Authentication (este jos de tot :) ) -> [uncheck]
  • Aplicarea transformarilor web.config/app.config din msbuild
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets" />
...
<Target Name="AfterBuild">
      <TransformXml Condition="Exists('$(OutDir)\_PublishedWebsites\$(TargetName)')" Source="Web.config" Transform="$(ProjectConfigTransformFileName)" Destination="$(OutDir)\_PublishedWebsites\$(TargetName)\Web.config" />
  </Target>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License