Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

cannot be used as an expression

Posted on 2009-05-13
2
Medium Priority
?
1,514 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:Seven price
2 Comments
 
LVL 20

Accepted Solution

by:
ddayx10 earned 1500 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:Seven price
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

927 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