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>

^ in loc de TargetName (care este numele assembly-ului), pot folosi $(ProjectName)
  • Setarea MSDTC (Distributed Transactions Coordinator)
    • Administrative Tools -> Component Services -> Computers -> My Computer -> Distributed Transactions Coordinator -> Local DTC -> right-click -> Properties -> Security
      • Network DTC Access -> Checked
      • Allow Remote Clients -> Checked
      • Allow Inbound -> Checked
      • Allow Outbound -> Checked
      • No Authentication Required -> Checked
      • Enable XA Transactions -> Checked
      • Enable SNA LU 6.2 Transactions -> Checked
    • Administrative Tools -> Windows Firewall with Advanced Security
      • -> Inbound Rules -> Enable tot ce tine de Distributed Transactions Coordinator
      • -> Outbound Rules -> Enable tot ce tine de Distributed Transactions Coordinator
    • Daca tot sunt probleme, pot verifica daca masinile se pot accesa via ping, si daca asta nu rezolva problema pot rula DTCPing pe ambele masini
  • Setarea MSDTC (Distributed Transactions Coordinator) 2
    • Administrative Tools -> Component Services -> Computers -> My Computer -> Distributed Transactions Coordinator -> Local DTC -> right-click -> Properties -> Security

-> Security -> Network DTC Access -> checked
-> Allow Remote Clients
-> Allow Inbound & Outbound
-> No Authentication Required
-> Enable SNA LU 6.2 Transactions
* Administrative Tools -> Windows Firewall with Advanced Security
* -> Inbound Rules -> Enable tot ce tine de Distributed Transactions Coordinator (e suficient doar pe Domain)
* -> Outbound Rules -> Enable tot ce tine de Distributed Transactions Coordinator
* Daca tot sunt probleme, pot verifica daca masinile se pot accesa via ping, si daca asta nu rezolva problema pot rula DTCPing pe ambele masini

AesCryptoServiceProvider uses the underlying Windows CryptoAPI to perform the encryption. AesManaged performs the encryption in pure managed code. RijndaelManaged supports the full range of parameter-choices (also in pure managed code).

Advantages to using AesCryptoServiceProvider include potential for higher speed and the fact that CryptoAPI is FIPS certified (on certain versions of Windows).

Advantages to AesManaged include portability (AesCryptoServiceProvider is not supported on all versions of Windows). : full source reference
  • MsBuild: transformarea config-urilor pe serverul de build
<Target Name="AfterBuild">
    <TransformXml Condition="Exists('$(OutDir)_PublishedWebsites\$(ProjectName)')" Source="Web.config" Transform="$(ProjectConfigTransformFileName)" Destination="$(OutDir)_PublishedWebsites\$(ProjectName)\Web.config" />
    <TransformXml Condition="Exists('$(OutDir)_PublishedWebsites\$(ProjectName)')" Source="Web.config" Transform="Web.Acceptance.config" Destination="$(OutDir)_PublishedWebsites\$(ProjectName)\Web.Acceptance.config" />
  </Target>
  <!-- Proiecte Windows-->
 <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
 
  <Target Name="AfterBuild">
    <TransformXml Condition="$(TeamBuildOutDir) != ''" Source="App.config" Transform="App.$(Configuration).config" Destination="$(OutputPath)$(TargetFileName).config" />
    <TransformXml Condition="$(TeamBuildOutDir) != ''" Source="App.config" Transform="App.Acceptance.config" Destination="$(OutputPath)$(TargetFileName).Acceptance.config" />
  </Target>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License