RaSor's Tech Blog

November 17, 2011

VS: Sgen error and Fusion Log Viewer

Filed under: Error, Utility, Visual Studio — rasor @ 8:53 am

Some SGEN errors:

If you in Visual Studio get the error (while building release):

SGEN : error : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Then read about it here: http://hashtagfail.com/post/5255977780/sgen-loaderexceptions-error


 … and further about Fusion Log Viewer: http://www.hanselman.com/blog/BackToBasicsUsingFusionLogViewerToDebugObscureLoaderErrors.aspx

(more…)

January 5, 2011

TFS2010: Build, deploy, test links

Filed under: Deployment, TFS, Virtual, Visual Studio — rasor @ 9:04 am

Ports Required for Installation of Team Foundation Components
http://msdn.microsoft.com/en-us/library/dd578664.aspx

How to: Deploy an Application on a Virtual Environment
http://msdn.microsoft.com/en-us/library/ee471614.aspx

Build and Deploy Continuously
http://msdn.microsoft.com/en-us/library/ee308011.aspx

Understanding a Team Foundation Build System
http://msdn.microsoft.com/en-us/library/dd793166.aspx

Define a Build Using the Default Template
http://msdn.microsoft.com/en-us/library/dd647547.aspx#configs

Control Where the Build System Places Your Binaries
http://msdn.microsoft.com/en-us/library/ff977206.aspx

Team Foundation Build Activities – InvokeProcess
http://msdn.microsoft.com/en-us/library/gg265783.aspx#Activity_InvokeProcess

November 11, 2010

Textpad tips

Filed under: TextPad — rasor @ 12:17 pm

Using Textpad a few tips are here listed:

(more…)

March 11, 2010

VS2010: Test upgrade a solution

Filed under: NET, TFS, Uncategorized, Visual Studio — rasor @ 4:07 pm

HowTo test a Visual Studio Solution upgrade to VS2010 RC

  • Make a copy of the whole solution
  • Open the solution in existing version like VS2008
  • Tools – Options – Source Control: Change from TFS to None.
  • Right-Click the solution folder – Remove the ReadOnly attribute – subdirectories included
  • Optional: Use tool like Agent Ransack to find all TFS files (.vssscc and .vspscc) from the solution folder - subdirectories included. Delete them
  • Disconnect you network connection to avoid accidentially changing in TFS
  • Open the solution in VS2010 RC
    => The Conversion wizard starts.
  • Press Next
    Upgrade to Framework 4.0?
  • Press No, when asked to upgrade to Framework 4.0
  • You’re done. Play around.

The End

VS2010: Install on XP SP3

Filed under: Deployment, Visual Studio — rasor @ 10:12 am

While waiting for Visual Studio 2010 Ultimate RC to install I grapped images of what is being installed:

(more…)

February 28, 2010

TFS: Avoid corresponding paths on VPC’s

Filed under: TFS, Virtual, Visual Studio — rasor @ 11:35 am

Have you ever experienced that you and another developer has a copy of the same VPC and wants to Check Out from TFS to the same path on each of your copy?

If yes, then you also know that TFS won’t allow this. I forgot what error it comes with.

You could change local path or computer name to get around this, but it might not be without trouble.

If you cannot change local path due to it might give you some extra trouble
and you don’t want to change the computer name – this can also cause trouble for SW like SharePoint – then:

Give each user each own virtual path to the C: drive.

(more…)

February 19, 2010

Plugin: WordPress bookmarklets

Filed under: Blog, WebApps, WinApps — rasor @ 10:20 am

If you are a WordPress blogger you will love the bookmarklet Press This.

(more…)

Plugins: Delicious Sidebar, Toolbar and Bookmarklets

Filed under: Blog, WebApps, WinApps — rasor @ 8:27 am

If you are a http://delicious.com user you might want to install the Sidebar

(more…)

January 18, 2010

Microsoft offerings – and BizSpark content

Filed under: Access, Apps, Biztalk, Databases, Deployment, NET, Network, Sharepoint, SQL, Visual Studio — rasor @ 6:02 am

Was looking for a Microsoft offer that could give OS’s and Servers to play with at home. Found a few interesting programs: 

(more…)

January 17, 2010

SP2010: Adding dll’s to WSP

Filed under: Deployment, Sharepoint, Visual Studio — rasor @ 3:25 pm

Just nice to know. About adding 3rd party dll’s to WSP packages.

VS2010:

http://blog.mastykarz.nl/including-additional-assemblies-wsp-visual-studio-sharepoint-development-tools/

And using WSPBuilder:

http://keutmann.blogspot.com/2009/08/wspbuilder-extensions-ver-106.html

December 18, 2009

ASP post to ASP.NET upgrade and encoding error

Filed under: Debugging, NET, VB6, Visual Studio — rasor @ 7:16 am

I wanted to debug some .NET code from an oldfashioned ASP page. the ASP page called a COM enabled .NET component using Server.CreateObject().
The ASP page received a form posting before the call to the component. 

If I replaced that serverside code with ASPX, then I instead could instanciate the .NET component through a “new MyNamespace.MyComponent()” instead of the “Server.CreateObject()”. By setting the posing ASP form as the startup url like http://mysite/myform.asp, I was then able to set a breakpoint in the new aspx page that received the form posting (myform_actions.aspx). The debugging could nicely continue in the .NET component. 

When you do this trick of upgrading the code for the received form post, there is a few things to consider: 

  • You need to reauthenticate in some way
  • The Session state from ASP is not shared with you ASPX session. You need to recreate any session variables in your ASPX session, if you need to use them in your migrated code.
  • Encoding of the form post needs to be done.

The migration worked fine and the debugging was a releave.
But initially I haven’t set the encoding. 

When the form post entered the myform_actions.aspx I could see (using Fiddler) that a posted “ø” was sent correctly as “%F8″, but it was tranlated to “?”, when read from Request(“MyTextInputCtrl”). 

There were some links telling me about the problem:

http://bytes.com/topic/asp-net/answers/491522-encoding-problem-when-posting-text-between-classic-asp-asp-net
http://www.w3.org/TR/html4/interact/forms.html#adef-accept-charset
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfGlobalizationSection.asp

The latter link fixed the problem:

<configuration>
   <system.web>
      <globalization
         requestEncoding="iso-8859-1"
         responseEncoding="iso-8859-1"/>
   </system.web>
</configuration>

The accept-charset I did not use. It probably is not understood in a HTTP/1.0 post.

The End.

April 16, 2009

WSS30/MOSS07: SPD07 is now free!

Filed under: Sharepoint, WinApps — rasor @ 5:26 am

WSS30/MOSS07: SPD07 is now free!

Download at: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=baa3ad86-bfc1-4bd4-9812-d9e710d44f42

November 8, 2008

TFS 2008 test drive

Filed under: Sharepoint, TFS, Visual Studio — rasor @ 8:10 pm

At work I use TFS only for Source Control for .NET source code. Since TFS is much more I will in this post just get started looking a little around… (more…)

November 7, 2008

TFS 2008 inst: Errors

Filed under: Administration, Sharepoint, TFS, Virtual, Visual Studio — rasor @ 11:23 pm

While trying to install TFS 2008 as in standalone mode on a Win server 2003 several installation prerequisites had to be met: (more…)

October 31, 2008

Visual Studio: Cool keyboard shortcuts

Filed under: NET, Visual Studio — rasor @ 9:53 pm

A few cool Visual Studio 2008 keyboard shortcuts… (more…)

September 19, 2008

Visio: Adding Connection Points to a Shape

Filed under: Apps, WinApps — rasor @ 8:25 am

If you ever used Visio you probably have been using shapes that had to little connection points. You don’t have to live with that:

  • On toolbar select “connection point tool” – it is hiding on the dropdown list of the “connector tool”
  • Optional: zoom to 200% in order to be able to hit a shape
  • Select a shape. => the shape will reveal a dotted line on which you can drop the connection points on
  • Hold down Ctrl while dropping a connection point onto a shape by clicking on the dotted line
http://msdn.microsoft.com/en-us/library/aa200985(office.10).aspx

August 28, 2008

PC Update to .NET3.5 SP1

Filed under: NET, Visual Studio — rasor @ 9:10 am

I’ve just updated my PC from VS2008 + .NET3.5 to VS2008 SP1 + .NET3.5 SP1. (more…)

August 21, 2008

.NET Roadmaps

Filed under: NET, Sharepoint, Visual Studio, WCF, WebApps — rasor @ 9:07 am

This roadmap mixes just some different stuff I wanted to store. (more…)

February 28, 2008

Gimp tutorial – Modify jpg, add txt

Filed under: WinApps — rasor @ 6:41 pm

Sorry, my Gimp installation was in danish. Wonder where that happened.

Layer 1 I put a jpg photo and modified it a bit

  • Farver – Kurver 
  • Filtre – Blødgøring – Selective Gausian blur…
  • (Filtre – Forvrængning – Lens Distortion)

Now some txt should be added 

  • Udviddelser – Logos – Cool Metal – Font: Century Gothic Bold, Size: 50
  • Write: UltraRunning – OK => generates some nice txt
  • Ctrl + L (show layer window)
  • Unselect (click on eye) all layers except the txt layer
  • Txt: R (Rektangulær markering) – Select the txt by drag’n'drop
  • Txt: Redigér – Kopiér synlig
  • Photo: Lag – Nyt lag – Write: “Txt”
  • Ctrl + L (show layer window)
  • Unselect (click on eye) all layers except the Txt layer
  • Photo: Redigér – Indsæt i
  • Photo: R – Select hele billedet, som er rammen hvori txten kan flyttes i synligt
  • Photo: M (Move) – Tryk på txten og flyt den det ønskede sted hen.

December 19, 2007

Examples: Replacing Text

Filed under: TextPad — rasor @ 7:00 am

These examples all use UNIX extended regular expression syntax.

(more…)

Examples – Finding Text

Filed under: TextPad — rasor @ 6:58 am

These examples all use UNIX extended regular expression syntax.

(more…)

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.