YAFLogo

vikrammalhotra
13 years ago
The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)



Server Error in '/YAF-v1.9.4-RC1-BIN' Application.


Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 81: {
Line 82: // compute page title..
Line 83: var title = new StringBuilder();
Line 84:
Line 85: string pageStr = string.Empty;


Source File: e:\YAF-v1.9.4-RC1-BIN\App_Code\YAF\Modules\PageTitleModule.cs Line: 83
Sponsor

vikrammalhotra
13 years ago
please helop me out in this matter what should i do ....

what should i do further.............


its is a matter of my job................
Hydra
  • Hydra
  • 62% (Friendly)
  • YAF Camper
13 years ago
vikrammalhotra, from Visual Studio bring up the property pages for the web site and go to the "Build" section.
From there, ensure that the target framework is set to 3.5.
JP
  • JP
  • 100% (Exalted)
  • YAF Leader
13 years ago
Make sure you have good web.config file in the Application root folder.

The simplest setup is to copy the recommended_web-config and rename it, should work.

He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
leit
  • leit
  • 50.6% (Neutral)
  • YAF Forumling
13 years ago
JP wrote:

Make sure you have good web.config file in the Application root folder.

The simplest setup is to copy the recommended_web-config and rename it, should work.



:) thank you.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button