Solved

cannot be used as an expression

Posted on 2009-05-13
2
1,480 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
[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 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

726 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