Birk
Birk

Reputation: 2183

System.Windows.Forms in asp.net 3.5

I'm trying to implement a website screen shot class as described here http://www.plentyofcode.com/2007/09/website-screenshot-capture-with-aspnet.html

The class imports the following methods

Imports System
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Windows.Forms
Imports System.Diagnostics

Namespace GetSiteThumbnail

   Public Class GetImage [...]

The reference to System.Windows.Forms apparently worked in asp.net 2.0 but has been removed from 3/3.5 is there an equivalent for 3.5 or does anyone know a way to replicate this website screen shot setup in 3.5?

Upvotes: 1

Views: 6100

Answers (3)

Birk
Birk

Reputation: 2183

For refrence to anyone looking at this later. By adding

<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

To the <assemblies> section of your web.config file you can use System.Windows.Forms

Upvotes: 1

Samuel
Samuel

Reputation: 38346

Your project needs a reference to the System.Windows.Forms assembly. Make sure it is there.

Upvotes: 1

John Boker
John Boker

Reputation: 83709

can you just add the references to the System.Windows.Forms dll ?

Upvotes: 8

Related Questions