VS2008 lost assembly. [Solved. Well, if I'm honest, bodged round.]
-
Somehow, VS2008 has lost track of the System.Data.SqlServerCE assembly - it is still in the GAC, but I can't add it to a project reference list any more. And existing projects which contain references to SqlCe complain that I need to add a reference. I have tried: Uninstalling SqlCE (desktop, tools, and mobile) and re-installing. Repair VS installation. Create a new Project. Actually, I have tried the above several times in various different orders, but with no joy. Anyone seen this before? [update] Finally ran out of time (I ran out of ideas a while ago) and bit the bullet. Downloaded VS2008 SP1 (again, this time I kept a copy). Uninstalled VS, and .NET 3.5 Re-installed VS, VS SP1, .NET3.5 SP1 Tried again. Works like a charm. I can even edit SqlCE tables + data in the Server Explorer (which stopped working a month or so ago, when I installes Sql 2008 Express). So, I dunno what caused, it, I dunno what fixed it. But it's gone, and I have a (time consuming) solution if it happens again. [/update]
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
modified on Tuesday, November 9, 2010 2:29 PM
-
Somehow, VS2008 has lost track of the System.Data.SqlServerCE assembly - it is still in the GAC, but I can't add it to a project reference list any more. And existing projects which contain references to SqlCe complain that I need to add a reference. I have tried: Uninstalling SqlCE (desktop, tools, and mobile) and re-installing. Repair VS installation. Create a new Project. Actually, I have tried the above several times in various different orders, but with no joy. Anyone seen this before? [update] Finally ran out of time (I ran out of ideas a while ago) and bit the bullet. Downloaded VS2008 SP1 (again, this time I kept a copy). Uninstalled VS, and .NET 3.5 Re-installed VS, VS SP1, .NET3.5 SP1 Tried again. Works like a charm. I can even edit SqlCE tables + data in the Server Explorer (which stopped working a month or so ago, when I installes Sql 2008 Express). So, I dunno what caused, it, I dunno what fixed it. But it's gone, and I have a (time consuming) solution if it happens again. [/update]
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
modified on Tuesday, November 9, 2010 2:29 PM
-
Did you try manually installing the assembles (from the setup folder) using the gacutil.exe tool?
Thanks for the idea - no I hadn't - because they still showed up in the GAC when I checked, so I assumed they were fine. Sorry for the delay in responding, but I was on plan G: reinstall VS. Brute force and ignorance, yes, but it worked (in the sense that the problem has gone away). It'll probably still keep me awake wondering what the heck caused it though... :laugh:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.