Solved

error defining the class

Posted on 2012-03-17
4
205 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

776 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