Solved

error defining the class

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

16 Experts available now in Live!

Get 1:1 Help Now