Solved

error defining the class

Posted on 2012-03-17
4
203 Views
Last Modified: 2012-03-20
Hello I'm obtaining an error when i try to declare and webhandler.

The ImageLogoFetch.ashx:
<%@ WebHandler Language="VB" Codebehind="ImageLogoFetch.ashx.vb" Class="ImagelogoFetch  "  %>


and the ImageLogoFetch.ashx.vb (in the root folder)

Imports System
Imports System.Web
Imports System.Data
Imports System.Data.SqlClient

Namespace NameSpaceImagenes

    Public Class ImageLogoFetch : Implements IHttpHandler
        Const BUFFERSIZE As Integer = 1024

      ......
      .........
      ........
      ........


    End Class

End Namespace
0
Comment
Question by:limmontreefree
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37733804
And the error is ...
0
 

Author Comment

by:limmontreefree
ID: 37739888
The error is "can not create type 'ImageLogoFetch'"

If i try this
<%@ WebHandler Language="VB" Class="ImageLogoFetch" Codebehind="XXXXXXXXXImageLogoFetch.ashx.vb" %>

The error is the same so... The Problem is that the compiler can't found the code file?

Thanks
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37740198
Try changing

<%@ WebHandler Language="VB" Class="ImageLogoFetch" Codebehind="XXXXXXXXXImageLogoFetch.ashx.vb" %>

to

<%@ WebHandler Language="VB" Class="NameSpaceImagenes.ImageLogoFetch" Codebehind="XXXXXXXXXImageLogoFetch.ashx.vb" %>
0
 

Author Closing Comment

by:limmontreefree
ID: 37745051
Many thanks,

Of course....
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now