Solved

cannot be used as an expression

Posted on 2009-05-13
2
1,453 Views
Last Modified: 2012-05-06
I encounter this error when i just done and upgrade from visual studio 2003 to 2008, 2.0 frameworks not 3.0 or higher.


Timer' is a type and cannot be used as an expression.      
'System.Timers' is a namespace and cannot be used as an expression.      S:\store\ViewSRP.aspx.vb      
0
Comment
Question by:sevensnake77
2 Comments
 
LVL 20

Accepted Solution

by:
ddayx10 earned 500 total points
ID: 24381899
Don't have a lot to go on here but it sounds like you are not implementing it correctly. Also not exactly sure thich language you are using, but...

VB
Dim t as System.Timers.Timer = new System.Timers.Timer(1000)

C#
System.Timers.Timer t = new System.Timers.Timer(1000);

Might want to look at this:
http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx

VS2k3 to VS2k8 is a huge jump both in codebase as well as software. If you are certain you are implementing it correctly and suspect that there was an issue upgrading Visual Studio that is causing the software to fail.... I cant help ya there.

dday
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 24385148
I just wondering do you know why this is happening.

After the upgrade from 1.1 to 2.0 frameworks.  I finally thought I had no more errors. But Now when i run the debug error I keep getting this error.

Error      34      Unable to open file 'S:\obj\Debug\A1S.Gecko_InsertTemplate_Frame.resources': The system cannot find the file specified.      
Error      35      Unable to open file 'S:\obj\Debug\A1S.Gecko_Page.resources': The system cannot find the file specified.      
Error      36      Unable to open file 'S:\obj\Debug\A1S.Gecko_Page_Frame.resources': The system cannot find the file specified.      

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

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

744 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