live-chat

Live chat by SightMax

Support Center » Knowledgebase » SightMax 7.1 Server Installation on Servers with .NET 4.0 Framework - Unrecognized attribute ‘targetFramework’ 4.0 error
 SightMax 7.1 Server Installation on Servers with .NET 4.0 Framework - Unrecognized attribute ‘targetFramework’ 4.0 error
Solution Unrecognized attribute ‘targetFramework’ 4.0 error - SightMax 7.1 Server Installation on Servers with .NET 4.0 Framework -

After finishing the installation of the SightMax Installable Server 7.1 on a Windows 2003/2008 Server with the .NET 4.0 Framework installed, when broswing the test.aspx files in both AgentInterface and WebServices there is an error generated regarding the .NET 4.0 Framework compilation. This issue occurs because the web.config in the SightMax Virtual directories are inheriting properties from the web.config from the root of the website.

In this particular case, the SightMax Virtual Directories MUST be set to use the ASP.NET 4.0 Framework in IIS and the web.config in both AgentInterface and WebServices will need to be edited:

Open the web.config in Notepad and add after the "system.web" the following line:
<compilation debug="true" targetFramework="4.0">


then add after closing system.web

<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4"
type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>

Save the file and recycle the SightMax3 application pool in IIS, then browse the test.aspx file again. You will need to complete these steps for both web.config in  the AgentInterface and WebServices folders.


Article Details
Article ID: 404
Created On: 21 Jul 2010 12:14 PM

 This answer was helpful  This answer was not helpful

 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter
Language:

Help Desk Software By Kayako eSupport v3.04.10