Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cannot be used as an expression

Posted on 2009-05-13
2
Medium Priority
?
1,504 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
[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 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

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…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
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…

705 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