Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

Before I go into what's wrong I'll give you a little bit of background on what I'm running:

I'm running VS 2008 SP1, .NET 3.5, developing in C#, using ASP.NET and AJAX, and running in windows vista (unfortunately).

I've got a problem where every time I try to create a control, the designer doesn't update and will not give me access to the control in the code behind. This only happens on my machine. When I commit my code to our subversioning tool (SVN) my co-workers can run my code after they update their designers. They are running the same image as my machine.

I've google'd the problem and came up with a view "solutions," none of which have worked. Here's what I've tried:

-Opening up in design view to force the designer to re-render.

-Deleting the .designer.cs file and then right-clicking on the project to convert to web application. When I do that I get this error:

MSIL
Error   1   Generation of designer file failed: Unable to create type 'AJAX:ValidatorCalloutExtender'. 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.\wucManageTeamMember.ascx   1


-I have the system.web.extensions in my references.

-I've tried moving various DLL's into my bin folder (system.web.extensions.design.dll and system.web.extensions.dll) I don't have the microsoft.web.etc DLL's that have been recommended but neither do my co-workers who can run the app.

-I've tried uninstalling and reinstalling the .NET framework as well as visual studio.

We're thinking that there's something wrong with the way my system.web.extensions is registered to my machine or corrupted in some way. As you saw in the error message, visual studio is saying that it could not load it even though I have it in my references and in my bin. Short of a reformat, does anyone know how I can correct this?? Any help is appreciated.
Posted

1 solution

Just a thought: you say you have System.Web.Extensions but have you checked to see that it is the correct version; i.e. the version that is being asked for? So it is looking for version 1.0.61025.0 where you might have version 1.0.61024.1 or similar.
 
Share this answer
 
Comments
AeonBlue 9-Jun-10 11:29am    
Digital Man,

You gave us the hint that we needed. We checked the version of the system.web.extensions and noticed in the properties that the error was requesting an older version than what I had. We then noticed that the "specific version" property was set to "true" so we changed that to "false" and voila! Boom goes the dynamite. Thanks a lot for your help!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900