Error HRESULT E_FAIL has been returned from a call to a COM component

by Colin Graham 4. April 2013 01:01

Really annoying fault so deleted files here - then did a shut down of visual studio 2010 - this appeared to do the trick

c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache

 

Apparenly the fault is to do with caching.

Tags:

ASP.Net | Visual Studio 2010

Logging RDP Access on Windows Server 2003

by Colin Graham 28. February 2013 17:18

If you don't already have account logon events audited, then turning it on is not going to help you determine who has logged on to the server already

Look in the Security Event Log for a Logon/Logoff Event 528, Logon Type 10

You can also setup an Audit Policy using the Group Policy editor to log logon success and failures. Go to Run and type gpedit.msc

Local Computer Policy -> Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Audit Policies -> Audit logon events. Right click and select properties.

You can find the IP address of the usr by the following:

In the text of the Event ID 528\Type 10 log entry you'll see the Source Network Address. This is the ip address that the client connected from. Note that this is the public ip address the client connection came from and is going to be the public ip address that the client's internal ip address is being NAT'ed to. You won't see the client's internal ip address in the log, but you can see it on the information tab when viewing a users connection in TS manager

Tags:

Windows 2003 Server

2.0 application to 4.0 .Net application

by Colin Graham 27. February 2013 18:16

I had to convert an application to .Net 4.0 last night.  Did the usual things like:

 

  • ·         changed the target framework in the project properties
  • ·         changed the application pool to use 4.0

 

Still didn’t work

 

Anyway found an article that said i had to change the staticfile in Handler Mappings in IIS.

 

  • ·         I selected this then on the right nav clicked “Revert to parent”

 

 

After this everything worked like a charm

Tags:

ASP.Net

Copy Full Path of a File to the Clipboard in Windows

by Colin Graham 14. February 2013 01:39

How often have you opened an email and wanted to paste a link to a document but have struggled to get the full path.

 All you have to do is:

 

  • ·         hold down the shift key, and right-click the file:

 

  • ·         On the popup menu select “Copy as path”

 

  • ·         Especially useful when copying the link from across the network

Tags:

Visual Web Developer - has no back or return after "Go to Definition"

by Colin Graham 16. January 2013 02:28

found the solution to this is:

press CTRL key and minus key (on my keyboard this isn't the one on the number pad but on the underscore key)
reverse to this is F12 to go to definition

Tags:

Visual studio 2010 - wont build in debug mode

by Colin Graham 13. December 2012 22:30
ok, actaully made the silly mistake of trying to run visual studio 
after clicking "No" on the do you want to run last succesful build
message. If you do this then these are the steps to repair.

In Visual Studio Projects and Solutions/Build and Run - On Run, when projects are out of date: Always build Never build Prompt to build <== default setting - On Run, when build or deployment errors occur: Launch old version Do not launch Prompt to launch <== default setting

Tags:

Visual Studio 2010

Viewstate is too long - SEO Issue - The page at [domain here] contains a large block (10788 characters) of embedded ViewState code.

by Colin Graham 13. December 2012 17:33

The page at wherever contains a large block (10788 characters) of embedded ViewState code.
Search engines will ignore ViewState code, but large quantities of ViewState code will force the actual text content of the page further down in the HTML. Since search engines may analyze only the first 100 KB of a page, it is possible that the ViewState block may prevent search engines from indexing any page content.

We recommend:

  • either recoding not to use Viewstate 
  • switch off viewstate on controls that dont use it

Tags:

SEO

Install SQL Server 2012 .iso On a Server Via RDP

by Colin Graham 27. November 2012 19:27

Ok this actaully drove me nuts for quite a few days everything i tried just did not work. in the end i copied the .iso to the web server and then extracted the contents of the file to a folder using 7-zip. Then i just ran the setup.exe - fortunately this appeared to do the trick.

 

I do hope this is useful for someone else and they learn from our pain.

 

C

Tags:

SQL Server

SEO Tip - Beware of the Login pages - add them to Robots Exclusion

by Colin Graham 8. August 2012 06:59

Tags:

SEO

Setup 2 BT home routers for issues with wireless coverage in the home

by Colin Graham 5. August 2012 22:53

This will add wireless to a non-wireless modem, or extend wireless access to a room such as a basement, using a spare BT Home Hub and an ethernet cable

http://www.filesaveas.com/jarviser/repeaterhubswired.html

Tags:

 

Posts By Date

Log in