Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 29th, 2010, 12:13 PM
Authorized User
Join Date: Jul 2009
Posts: 61
Thanks: 15
Thanked 1 Time in 1 Post
Default Problems using NotesForGallery control

I am using the notesforgallery control to provide a simple gallery in a website.
All worked well on my test site but when I loaded it up to my ISP navigating to the page with the control caused an error:
That assembly does not allow partially trusted callers.

Research indicated that I needed to have the control 'unsigned'
so I have downloaded the source for notesforgallery and opened the NotesForGallery.csproj file in the folder notesforgallery as a project in VWD.
In the properties page I unchecked the 'Sign the assembly' box on the signing tab. I then selected Build>Build NotesForgallery
The build appeared to have succedded indicating the path for the dll as
C:\Websites\Controls\NotesForGallery-src\NotesForGallery\NotesForGallery\bin\Debug\Note sForGallery.dll
I added this dll and the notesforgalery.pdb file in the folder to the bin folder in my website using rightclick>add existing item.
I then used website>add reference and browsed to the bin directory to locate notesforgallery.dll
I then did Build>rebuild website.
A test on my local PC still works perfectly (as indeed it did before)
Then I loaded the complete new bin directory to the live site and the page containing the control.
Now when I navigate to the page containing the control I do not get an error but the thumbnails do not display -- just a small empty 'box'. If I click on any box the appropriate image is correctly displayed.
So, thumbnail handler not working? but why?
In my web.config (as per instructions) I have the statement
<add verb="*" path="ThumbnailHandler.ashx" type="NotesFor.ThumbnailHandler, NotesForGallery"/>
Searching for ThumbnailHandler.ashx showed a reference to it in Gallery.cs in the control source and there is also a thumbnail.cs but no .ashx?
Presumably I haven't recompiled it properly or uploaded it correctly but I canot see where I have made my mistake?
Geoff Baldwin

Last edited by SouthendSupporter; December 29th, 2010 at 12:16 PM.. Reason: Correcting typos

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login statsus control Problems crender2000 ASP.NET 3.5 Basics 13 July 18th, 2010 07:41 AM
Problems with View Control dotnetDeveloper ASP.NET 3.5 Basics 0 March 17th, 2009 10:52 AM
Problems with "SelectedValue" in Control Parameter rsearing ASP.NET 2.0 Basics 5 July 11th, 2007 09:30 AM
asp:Label control - 2 problems VictorVictor ASP.NET 2.0 Basics 8 April 14th, 2006 10:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.