Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Website Programming Problem Design Solution
This is the forum to discuss the Wrox book ASP.NET 3.5 Website Programming Problem Design Solution by Chris Love; ISBN: 978-0-470-18758-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Website Programming Problem Design Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2010, 09:00 PM
Authorized User
 
Join Date: Apr 2010
Posts: 50
Thanks: 3
Thanked 0 Times in 0 Posts
Default I get error in web.config file - prevents compilation

Error 4 Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. c:\inetpub\wwwroot\WebSiteDDL1\web.config 32

The line basically is:

<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
....
---
 
Old June 23rd, 2010, 02:35 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

And where do you get this? Where does the config code from? And in what version of Visual Studio and .NET? The error message seems to suggest the project relies on AJAX. This used to be a separate download but has now been integrated into .NET in 3.5 and later and as such no longer requires the separate install when using .NET 3.5.

If it's indeed AJAX, try creating a brand new web site in Visual Studio 2008 and then copy over the config from the new project to yours, leaving project specific stuff in place.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 23rd, 2010, 05:08 PM
Authorized User
 
Join Date: Apr 2010
Posts: 50
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I thought I need to add references to the system.web.extensions.dll and system.web.extensions.design.dll file to the Visual Studio project. I do have those files, but, in later versions of .NET. So, I have to change the target .NET functions if were to use those .dll files. I'm not quite sure how I change the target .NET version in VS 2008 or VS 2010!
 
Old June 24th, 2010, 04:49 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

For a web site project, right-click the project, choose Property Pages and then in the Build category choose the correct framework.

For a web application project, right-click the project, choose Properties and change the target framework on the Application tab.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
<section> error in web.config file teddyk ASP.NET 2.0 Basics 1 May 7th, 2009 11:16 AM
Fix for Web.config Error in ...\Chapter01\LINQforBinding Web Sites rogerj BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 0 February 18th, 2009 01:59 PM
NTFS Partition prevents mdb file from addnew Kaustav Classic ASP Databases 3 January 20th, 2007 09:03 PM
Web service Compilation error belete Classic ASP Databases 1 June 28th, 2004 10:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.