Manually installing Glimpse 0.82 for web forms

31 May 2011

This post is about Glimpse 0.82 which is obsolete, for version 0.83+ check the official documentation at getglimpse.com/Help

In version 0.82 the Glimpse guys changed several aspects of the Glimpse package.

In this post I describe how to manually install Glimpse into your ASP.NET 4 web forms web site
without the need of Visual Studio, nuget, MVC or jquery. All you need is ASP.NET 4

First make sure your site in running under ASP.NET 4, you web.config should have

<compilation debug="false" targetFramework="4.0" />

Getting dependencies

Unless you have ASP.NET MVC or Web Matrix installed on your machine, you need a copy of the assembly:

Microsoft.Web.Infrastructure, Version=1.0.0.0

in your bin directory. Glimpse is using it.

It is part of ASP.NET Web Pages:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=300314DA-DEDD-4540-A236-A0DE0A5A534D&displaylang=en

Download the AspNetWebPages.msi and install it, or if you don't want to install it, extract the files on the command line:

msiexec /a C:\aspnetwebpages.msi /qb TARGETDIR=C:\temp 

You'll find the file "Microsoft.Web.Infrastructure.dll" under the path:

\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies

Copy the Microsoft.Web.Infrastructure.dll assembly into the bin directory of your web site.

You may also need the Json.Net Assembly, go to http://json.codeplex.com/ and download the JSON.NET 4.0 Release 2 zip file.

Extract the file: \Bin\Net35\Newtonsoft.Json.Net35.dll into your bin directory.

Get the glimpse Assembly

Download the nuget package manually from:

http://packages.nuget.org/v1/Package/Download/Glimpse/0.82

if you want to use Glimpse with MVC3 you also need this package:

http://packages.nuget.org/v1/Package/Download/Glimpse.mvc3/0.82

(these instructions are tested with version 0.82 only)

Rename Glimpse-0.82.nupkg to Glimpse-0.82.zip and extract the file \lib\net40\Glimpse.Core.dll into your bin directory.

For MVC do the same and copy \lib\net40\Glimpse.Mvc3.dll into you bin directory.

For web forms usage only:

Create a "glimpse" directory in the root of your web site,

Download the following files into that directory:

https://github.com/Glimpse/Glimpse/raw/master/source/Glimpse.Core/glimpseClient.js
https://github.com/Glimpse/Glimpse/blob/master/source/Glimpse.Core/glimpseSprite.png?raw=true
https://github.com/Glimpse/Glimpse/blob/master/source/Glimpse.Core/glimpseLogo.png?raw=true

You should now have the these files in the glimpse directory:

glimpseClient.js
glimpseSprite.png
glimpseLogo.png

Configuration:

Finally you need to add Glimpse to your web.config:

add or integrate into the configSections at the very top of the file (just after <configuration>)

<configSections> 
    <section name="glimpse" type="Glimpse.Core.Configuration.GlimpseConfiguration" /> 
<configSections> 

Add the following section anywhere within <configuration>

<glimpse enabled="true" /> 

Now you should be good to go, enter yoursite.com/glimpse/config in a browser and turn on Glimpse.

Pages in this section

Categories

ASP.Net | Community | Development | IIS | IT Pro | Security | SQL (Server) | Tools | Web | Work on the road | Windows