ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’

aspnet.png

Recently I deployed an ASP.Net application to a production server and received an error message that began, “Could not load file or assembly ‘System.Web.Extensions…'”.

The Reason  for the Error

The application uses Microsoft ASP.NET 2.0 AJAX Extensions 1.0, but they had not been installed on the production machine.

The Obvious Solution

The obvious solution was to download the ‘ASPAJAXExtSetup.msi‘ installer from Microsoft and run it on the live server. The required .dll files would then be inserted into the GAC.

The Hitch 

The production machine is a Windows 2000 server. In order to access these files, the IIS instance on the server would need to be restarted. Unfortunately, this was not an option. The target server hosts various applications that cannot be brought down without disrupting the users.

The Final Solution

The development machine did not exhibit the problem, so this machine obviously had the dll files present. The simple answer is to place a copy of these files in the application’s ‘bin’ folder on the production server. When I did this, the error message went away immediately.

So, what files did I need, and where did I find them?
Well, since the installer copies the dlls into the GAC, they can obviously be found there.

For reference, the GAC on my machine is at:

C:\WINNT\Assembly

Unfortunately, you can’t see the individual files using Windows Explorer. However, the files can be viewed using the command prompt. It is a bit of a messy process, but it is possible to use the Command Prompt to extract the files.

The good news is that there is an easier way. A colleague pointed out that the installer also places another copy of these files outside the GAC. From this location, they can simply be copied and pasted into the bin folder of the target application.

On my machine the required files are here:

C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\

The files I needed were:

System.Web.Extensions.Design.dll
System.Web.Extensions.dll

Many thanks to GK for pointing this out to me.

Advertisement

59 Responses to ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’

  1. abdulrehman says:

    please send me this dll i really need it

  2. kramii says:

    abdulrehman:

    I am pleased that you found this post informative.

    I am sorry, I cannot send you the files at the moment. If you really need them, you can install AJAX and extract them yourself. It really isn’t hard. See the post above for details on how to achieve this.

  3. I was having the same problem and this solved it. Thank you for posting your solution, it was very helpful.

  4. kramii says:

    Dennison Uy – Graphic Designer:

    I am delighted that you found this post useful.

  5. Chris Peters says:

    I am VERY glad to come to this page to find definitive, no-nonsence answer. I resolved my problem using information provided here. Greate job. Guess what – You are bookmarked!

  6. Will says:

    Thanks, this worked great. I tried for 20 minutes to copy the dlls from c:\WINDOWS\assemblies\ with no luck. The copies were right where you said they would be, and once i copied them to my remote application’s /bin/ folder, the application sprang to life!

    Cheers.

    Will

  7. Nelson says:

    This fixed part of the problem – I am trying to use the new ASP.NET 3.5 Extensions.
    Now I am getting a permission error:

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly ‘System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) (D:\inetpub\oldebeaufortseaport\bbc\web.config line 79)

    Source Error:

    Line 77:
    Line 78:
    Line 79:
    Line 80:
    Line 81:

    Source File: D:\inetpub\oldebeaufortseaport\bbc\web.config Line: 79

  8. kramii says:

    Will & Chris Peters:

    I am pleased that the article helped you. Thank you both for taking the time to give me positive feedback.

    Nelson:

    I am sorry that things didn’t work out for you. Unfortunately, I don’t have ASP.Net version 3.5 (it won’t even load on my PC) so I am unable to reproduce the problem. My best guess is that a different version of the dll’s is required for later versions of ASP.Net? I hope you find an answer.

  9. Pranay says:

    Thanks a lot! that resolved my problem!!

  10. sujith says:

    hi thr.. it worked for me.. thanks

  11. Howzilla says:

    This post solved most of my problems but upon going to the parking lot my car was still dirty and the gas tank was low. When I got home the dog had crapped everywhere and got in the refridgerator and drank all my beer. Got a dll for that? Thanks dude.

  12. Steve says:

    You just spared me about an hour of fruitless Googling. Thank you, sir!

  13. gangs says:

    That worked for me. I owe you a beer man.

  14. kramii says:

    Pranay / sujith / Howzilla / Steve / gangs:

    Thanks for your feedback. I appreciate you taking the trouble. I’m glad the article helped.

    Howzilla:

    LOL! I can’t help with the car, but for the messy beer-drinking dog that can open the refrigerator on its own, I suggest you re-install ObedienceTraining.dll and then register her with the circus – she would go down a storm with the clowns. Alternatively, you could always just try switching her off and then back on again…

  15. CrazyRabbit says:

    Thanks For the tips used 2 out of the 3 given. I installed the msi file on my dev machine and copied the 2 dll’s into my bin folder for the production server. Both solutions worked, no mess no fuss.

    Thanks 😉

  16. Thank a lot. I have always been troubled by the error. Finally I have found the good explanation. Thank you again. In fact, I am always wandering between the the errors given by the use of ajax in vs 2005. But in VS 2008, most errors do not occur like in vs 2005. Thanks.

  17. Thanks!

    Dave

    PS Howzilla and kramii – thanks for the funnies, brought tears to my eyes 🙂

    PPS you really need to install either ToiletTrainDog.dll or GetANappy4Dog.dll to fix the crapping issues!

  18. ar! says:

    Thank you very much! this post help me a lot!

  19. jerry says:

    Thanks a lot
    we used the concept to fix problem in our gogrid server.
    cheers

  20. Vanity 866 says:

    I go to your website every once in a while and I must mention that I like your template!

  21. Etwas OT, aber was ich mich immer schon gefragt habe, warum T-Shirt Druck so teuer ist? Ich meine, die ganzen T-Shirt Drucker wollen knapp 20€ für ein normales T Shirt mit meinem eigenen Motiv haben. Ich suche jetzt aktuell für meine Band einen Anbieter, der mir Kleinserien druckt (so 10-20 stk). Kennt da jemand einen preiswerten Anbieter?

  22. Buckhanon says:

    Just wanted to say what a great site this is,I just subscribed to your feed. Please keep up the good work. Mafia Wars must have’s… Don’t want to miss this.

  23. Cody Ross says:

    Hi, possibly i’m being a bit off topic here, but I was browsing your site and it looks fascinating. I’m writing a blog and trying to make it look clean, but everytime I touch it I mess something up. Did you design the blog yourself? Could someone with little experience do it, and add updates without messing it up? Anyways, good information on here, very useful.

  24. Ayman Yousef says:

    thank u.
    the problem solved

  25. Die Bestellung von Postern und Leinwänden ist einfach und schnell. Laden Sie einfach Ihr Bild in den Shop, wählen Sie aus, ob Sie ein Poster oder eine Leinwand möchten und geben Sie anschließend das gewünschte Format an. Nun wird automatisch geprüft, wie die Qualität des Drucks sein wird und Sie können außerdem das Bild auf die Größe einpassen, Effekte hinzufügen oder das Bild drehen. MAXPOSTER

  26. Thanks a lot for your post. I’d really like to say that the price of car insurance varies from one plan to another, mainly because there are so many different facets which play a role in the overall cost. One example is, the make and model of the vehicle will have a massive bearing on the purchase price. A reliable older family auto will have an inexpensive premium compared to a flashy fancy car.

  27. Simon says:

    Thank you sooooooooooo much! Great post!

  28. Tom says:

    Unfortunately, in .NET 3.5, these files have been superseded and require replacement…..

  29. personal computer virus…

    […]ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ « All Wrong[…]…

  30. @IvankaTrump Love the purses and jewelry! One day I hope I can purchase a purse 🙂

  31. my blog site says:

    Undeniably imagine that that you stated. Your favourite justification
    appeared to be at the net the easiest factor to bear in mind of.
    I say to you, I definitely get irked at the same time as other people think about issues
    that they plainly don’t recognize about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , folks could take a signal. Will probably be again to get more. Thank you

  32. http://www.google.com Like many others, now is my first moment posting here. I really enjoy this website and see it quite often.

  33. When some one searches for his essential thing, therefore he/she desires to be available that in detail, so that thing is maintained over here.

  34. Everything is very open with a precise clarification of the challenges.
    It was definitely informative. Your site is very helpful.
    Many thanks for sharing!

  35. Baju bayi says:

    Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is great, let alone the content!. Thanks For Your article about ASP.Net Error: Could not load file or assembly & .

  36. If you wish for to take a good deal from this paragraph then you have
    to apply such strategies to your won web site.

  37. One of many big judgements you’ll have to make is actually your. Prior to accepting jobs you must understand at least the basic principles of Photoshop. You basically clean every nook and cranny from the vehicle’s interior, and wash the
    exterior.

  38. useful site says:

    Nice post. I was checking constantly this
    blog and I am inspired! Very useful information specifically the closing section :
    ) I maintain such information much. I was seeking this
    particular info for a long time. Thanks and best of luck.

  39. I visited many web sites except the audio feature for audio songs existing at this website is truly marvelous.

  40. unicron13.weebly.com

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  41. rteste.wfree.in

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  42. bobbydelmonte.blog.com

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  43. please click the next internet page

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  44. obadiaspellish419aquatickudos3996.wordpress.com

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  45. test.gydch.com

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  46. ezramedicalcare.Com

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  47. mouse click the up coming document

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  48. Recommended Looking at

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  49. browse around these guys

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  50. renal disease symptoms

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  51. click to read

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  52. But this isn’t what has it on the top, it is the fact that it is just a great price with fantastic features
    and a wonderful battery that tests have demostrated too last nearly ten hours.
    The Dell Vostro A840 has a hard and durable exterior coating that helps the device from getting scratched or dented during everyday use.
    Each artisan* uses pieces to season their creations with just the correct amount
    to reflect their individual expression.

  53. Taxes Relief says:

    Waxing is a lot more durable than shaving ( one other
    mostly used way of hair removal) and you also won’t have
    the bumps of razor burn, however, you will most likely involve some redness for a few hours after waxing.

    The causes we’re all seeking for are within us,
    we contain the techniques to all our questions. If they pay attention to your health care needs
    and help you find the correct insurance, they are reliable.

  54. recycle says:

    The city boasts various carnivals and youngsters
    would enjoy a try to any kind of them. Eco destinations are usually on a par while using Galapagos, featuring wildlife and factories that’s endangered or
    otherwise not fragile. Bald Mountain attracts experienced skiers from
    around the globe, as well being a decent share
    of celebrity and well-to-do travelers as well.

  55. Especially when your blog post is new, it can really help to generate interest quickly.
    A small number of you could be confused at this point about how my outwards bound links became inward bound
    links with no other action. They will pay out the comission a lot of
    money to analyze a website or possibly a product for the owner.

  56. Thank you, I’ve just been searching for info approximately this subject
    for a while and yours is the best I have discovered so far.
    But, what about the bottom line? Are you certain concerning the supply?

  57. Doithuong247 says:

    Doithuong247

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

  58. https://vk.com/id596103626

    ASP.Net Error: Could not load file or assembly ‘System.Web.Extensions…’ | All Wrong

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: