Friday, April 4, 2014

The type or namespace name 'Practice' does not exist in the namespace 'Microsoft.Practices.EnterpriseLibrary...' (are you missing an assembly reference?)

Microsoft Enterprise Library




Error: Are you getting "The type or namespace name 'Practice' does not exist
in the namespace 'Microsoft.Practices.EnterpriseLibrary...' 
(are you missing an assembly reference?)" 
even if you have add the .dll  to your project?


Reading documentation 

Microsoft Enterprise Library 6.0 is not backwards compatible and does not support multi-release .NET Frameworks.  It only supports .NET Framework 4.5.

Microsoft Enterprise Library 5.0 supports .Net 4.0 & .Net 3.5 SP1


Solution Fix: 


Another common fix for the "
The type or namespace name 'Practice' does not exist in the namespace 'Microsoft.Practices.EnterpriseLibrary...' (are you missing an assembly reference?)" is always compile target framework with full 4.0 .NET Framework and NOT .NET Framework 4 Client Profile, the savings in build size are minimal.


Wednesday, March 26, 2014

Completely disable the Windows Error Reporting (WER) from of Windows 7 & 8.x,10

A complete guide to disable the Windows Error Reporting (WER) from of Windows 7 & 8.x, 10  

Step 1


  • Click on Start > Control Panel > Action Center > Change Action Center Settings.
  • Click on the "Problem Reporting Settings".
  • Select "Never Check for Solutions".

  • Click on OK to validate
  • Additionally : You can change this for all users as well by Clicking "Change report setting for all users".

Step 2


  • Click on Start > Run > Type "services.msc"
  • In the window that opens (Services), look for the following entry in the the right pane:
    • "Windows Error Reporting"
  • Double-click on this entry and set the "Startup type" status as "Disabled".



  • Click on OK to validate.


 Step 3 Double check this registry setting - EXHAUSTIVE

Best to do a search for Windows Error Reporting, and you find the key stems
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting
Type "Regedit" and press "Enter."

Navigate to "Hkey_users\S-1-5-19\Software\Microsoft\Windows\Windows Error Reporting" and the above keys. 


Right-click "Disabled" and change the value from "0" to "1".


Next Key


Navigate to "Hkey_users\S-1-5-19\Software\Microsoft\Windows\Windows Error
Reporting/Consent"
       Set to 1            
             Consent\DefaultConsent REG_DWORD
Possible values: 
          1 - Always ask (default), 2 - Parameters only, 3 - Parameters and safe data, 4 - All data                
Next Key 

Navigate to "Hkey_users\S-1-5-19\Software\Microsoft\Windows\Windows Error Reporting/DefaultOverrideBehavior"
       Set to 1
          Consent\DefaultOverrideBehavior
REG_DWORD
Possible values:
0 - Vertical consent will override the default consent (default)
1 - Default consent will override the application-specific consent


Press the "Windows" key and "R" key simultaneously.

All Values Registry Values here ....

 Step 4  Disable Task Scheduler for Error Reporting Service



  • Open Task Scheduler and navigate to Task Scheduler (local) ->Microsoft->Windows->Windows Error Reporting




    Select on QueueReporting and Disable

  • Step 5 Permanently Disable Windows Error Reporting Service

To permanently Disable Windows Error Reporting Service, delete all keys under this folder LocalDumps.









    • Step 6 Clean these directories out


    C:\ProgramData\Microsoft\Windows\WER\ReportArchive

    C:\ProgramData\Microsoft\Windows\WER\ReportQueue

    C:\Windows\LiveKernelReports\WATCHDOG




    Tuesday, March 25, 2014

    500 Internal Server Error on GoDaddy.com - no Options All allowed

    Getting a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    If you are using GoDaddy.com here's a possible reason why -



    You cannot use Options modifier in .htaccess files with GoDaddy.com.

    Related : Apache Deb Box .htaccess file set-up alternative

    If you are modifying your .htaccess file for security purposes heavily on an Apache Box.

    If you getting this 500 Internal Server Error on other web hosting companies or your own Apache Dev box.

    Here's a possible work around.

    I noticed today that I receive the following error message in each page view error_log get written:
    Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:
    /var/www/vhosts/domain.Ca/httpdocs/index.pl, referer: http://www.domain.ca/

    Workaround

    The error messages is to get a grip on a previously used by me without any problems possibility of under / etc/apache2/mods-enabled/dir.conf to change the order as in about

       DirectoryIndex at_domains_index.html  index.html index.php index.xhtml 
                      index.htm index.shtml index.cfm