Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

error defining the class

Posted on 2012-03-17
4
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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:…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

604 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