CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: Date Entered: 1/3/2007 11:53:09 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 133 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
"Mappy" <>
NewsGroup User
Error BC30451 with VBC : Name Application is not declared1/3/2007 11:53:09 AM

0

Hi

I try to compile a vb file with vbc and there are few errors like BC30451 : Name application is not declared

Problem appears for session and application.

If someone 's an idea.... thanks !

here is the code :   

Imports system
Imports Microsoft.VisualBasic

Namespace GestTicket
    Public Class Ticket

        Public Function InitTicket(ByVal UserId As String) As Boolean
            Dim flag As Boolean = False
            If Session.Contents(UserId) Is Nothing Then
                application(UserId) = DateTime.Now.tostring("t")
                flag = True
            End If
            Return flag
        End Function

        Public Function UpdateTicket(ByVal UserId As String) As Boolean
            Dim flag As Boolean = False

            If application(UserId) <> Nothing Then
                application(UserId) = DateTime.Now.tostring("t")
                flag = True
            End If
            Return flag
        End Function
        Public Function CheckTicket(ByVal UserId As String) As Boolean
            Dim flag As Boolean = True
            If application(UserID) Is Nothing Then
                flag = False
            End If
            Return flag
        End Function

        Public Sub KillTicket(ByVal UserId As String)
            application.remove(UserId)
        End Sub
    End Class
End Namespace
  

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:













web application deployment

problem with asp.net development server and internet explorer

page load progress indicator vs 2005 control?

asp.net runtime error: there is no build provider registered for the extension ''

the type 'foo' exists in both 'one place' and 'another'

difference between file system and http web apps in vs2005

triggering an installed application from a link provided in web page

debugging asp.net - virtualpath on vs2005 webserver

mysterious location of project folders

cannot add web reference to web application project

maintaining scroll position on page postback in vs.net 2005

upgrading from vs 2003 to vs2005

web app vs web site vs web project

the remote server returned an error: (401) unauthorized (asp.net2005)

webapplication is not running in debug mode.

multiple projects - adding control in design view adds web.config

problems getting webprofile to work with custom profile

why does designer partial class only contain declarations?

image editior in asp.net

hyperlinkcolumn

create a wap on a remote iis/frontpage extensions server

constants file in app_globalresources directory changes do not appear without compilation.

problem with "<system.componentmodel.dataobjectmethod...."

asp.net 2.0 poor performance loading design view of .aspx and .ascx in a large solution.

converted project not recognizing when new controls are added!

have to explicitly add resources to project after conversion

service unavailable

migration issue.

problem with ifilter during pdf 2 text conversion

object reference not set to an instance of an object - web application project

using wap = loosing performance ?

erro : login failed for user '(null)'. reason: not associated with a trusted sql server connection

wap rc1 - adding global resource

incorrect type generated with user controls registered in web.config

resource expressions work in dev, not in production

web site project and web application project

error generating designer file

installation issue

"convert to web application" menu option does not appear

event handler creation fails when class contains overloaded methods

download to excel file (diferent date format in different pcs)

problems after converting from web site to web application

web.config parsing error in web app projects with iis

web combo row height is changing dynamically

how to generate fixed number of rows in a gridview?

sending sms from website

deploying vs 2005 web app over vs 2003 web app

problems with web reference, settings.settings file and web.config

error cs 0433 found class in multiple dll's

wap issues

   
  Privacy | Contact Us
All Times Are GMT