YAFLogo

vikrammalhotra
2010-02-03T05:31:37Z
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
2010-02-03T06:05:33Z
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
2010-02-03T15:41:29Z
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
2010-02-06T15:44:47Z
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
2010-03-31T05:54:39Z
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.