removing VsWebSite.Interop Assembly from Web.Config

I've started to notice that the following assembly keeps getting added to my web.config
    <add assembly="VsWebSite.Interop, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
however, if I upload to my host with this file it breaks with the error
    Could not load file or assembly 'VsWebSite.Interop, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
If I remove the "add assembly" line the site still works fine.

My Question is:
What can I do to either stop Visual studio adding the assembly or automate it's removal before uploading?

I use a Web Development Project to complie and trim my site before uploading is there something I could add to this?
LVL 16
Who is Participating?
RejojohnyConnect With a Mentor Commented:
i think this gets added with ajax toolkit .. but I have also noticed that once you remove it, it does not get added again .. are you sure that its adding itself again to the web.config?

A short while ago we made available the 10618 release of the AJAX Control Toolkit. This release addresses a handful of user-impacting issues introduced by changes in the recent 10606 release and identified by the user community in the support forum and online issue tracker
Dependencies: Removed explicit reference to VsWebSite.Interop.dll and stdole.dll. They will not be automatically included in the web configuration files by Visual Studio.
McExpAuthor Commented:
This is odd, I thought I had already tried removing the line. am now on 10920 and all is fine.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.