Visual Studio 2013 Premium solution load errors after Update 3 - azure

I installed VS2013Update 3 and now I get errors when opening an solution:
The 'Microsoft.VisualStudio.Web.Publish.WebPublishPackage,MircosoftVisualStudio.Web.Publish' package did not load correctly.
And
The 'ScaffoldungVSPackage' package did not load correctly.
The outcome of this is that I can't open the Publish-Dialog and there are no templates when creating a new Webproject.
In the activitylog are following errors:
<entry>
<record>447</record>
<time>2014/08/05 14:27:31.859</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.Web.Publish.WebPublishPackage, Microsoft.VisualStudio.Web.Publish]</description>
<guid>{1AD387FC-B1E8-4023-91FE-F22260B661DB}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'Microsoft.VisualStudio.Web.Internal.Contracts.Publish.IVsWebJobPublishService' from assembly 'Microsoft.VisualStudio.Web.Internal.Contracts, Version=2.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>
<entry>
<record>450</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>
<entry>
<record>451</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>
Has anyone an idea how to resolve this issue? I already tried:
Reinstalling VS2013
Reinstallung Update 3
Reinstalling WindowsAzureSDK V2.4
Disabling Extensions
run /devenv setup /devenv updateconfiguration
Delete Appdatafiles
Thanks!

the following solution from the asp.net-forums worked for me:
the solution was to reset the assemblies for Contract and Publishing using the Developer command prompt as Administrator If you have used the default installation setting then this is probably the path
gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Publish.dll"
gacutil -i "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Publish\Microsoft.VisualStudio.Web.Internal.Contracts.dll"
here is the link:
http://forums.asp.net/p/2000916/5751509.aspx?p=True&t=635430085558824221&pagenum=1

I resolved the issue by downloading the assemblies and restarting VS2013 update 5
https://www.microsoft.com/en-us/download/details.aspx?id=43709

Related

WixUIExtension.dll could not load from the network path while creating MSI package using WIX

I am using WIX (Windows Installer XML 3.7) to create an MSI package.
This is in my *.WIXPROJ file
<ItemGroup>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixToolPath)WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
</ItemGroup>
Also,
<PropertyGroup>
<ApplicationPath>\\BuildFolder</ApplicationPath>
<WixToolPath>$(ApplicationPath)\BuildMSI\wix37-binaries\</WixToolPath>
</PropertyGroup>
When creating MSI file from network path following error is occurred.
The extension '\BuildFolder\wix37-binaries\WixUIExtension.dll' could not be loaded because of the following reason: Could not load file or assembly 'file://\BuildFolder\wix37-binaries\WixUIExtension.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Please help me how to resolve this issue.
Regards,
Dileep
Try the following:
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>

Gradle fails on manifest merging for "targetApi"

My project contains activity declarations in the manifest that use the tools:targetApi attribute to ignore some warnings. Specifically:
<activity
android:name=".activities.ProtocolActivity"
android:label="#string/title_activity_protocols"
android:parentActivityName=".activities.InformationActivity"
tools:targetApi="jelly_bean">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.InformationActivity" />
</activity>
Out of the blue, however, for instance after switching branches, I get the following compilation error:
Error:/home/paul/git/ally-v2-app/app/src/main/AndroidManifest.xml:67:9-80:20:
Error: Invalid instruction 'targetApi', valid instructions are :
REMOVE,REPLACE,STRICT
...
Error:java.lang.IllegalArgumentException: No
enum constant com.android.manifmerger.AttributeOperationType.TARGETAPI
I'm using the following:
Gradle 2.10
Gradle plugin 2.0.0-beta6
Android Studio 2.0 beta 6
Both on an Ubuntu 15.10 machine and a Windows 10 machine
It seems I can get things working again by clearing the cache and restarting Android Studio, or removing the attributes, building, then adding them again.
Replacing it by
tools:ignore="UnusedAttribute"
also fixes the lint issue.
Remove the targetApi tag:
tools:targetApi="jelly_bean"
I am posting this late, but probably will help someone..
Find the manifest.xml file described by error in the temp folder, copy it and past in the assets->plugins->android directory and rename it to AndroidManifest.xml
Then edit it and find the <application...> and inside it paste the suggested solution.
For example, I had to paste tools:replace="android:label" so it would look like <application ... tools:replace="android:label">

Entity framework assembly issue

When i am try to use bulkinsert method on EF by using entityframework.bulinsert dll getting Error message _"Could not load file or assembly 'EntityFramework.MappingAPI, Version=5.0.0.6, Culture=neutral, PublicKeyToken=7ee2e825d201459e' or one of its dependencies. The system cannot find the file specified".
It simply means the assembly is missing in your project AND/OR 'EntityFramework.MappingAPI, Version=5.0.0.6, is missing in your References.
Download the 'EntityFramework.MappingAPI, Version=5.0.0.6, from HERE
Extract the dll's from the folder and add a reference to the appropriate one that is version 5, from your solution.
OR
To install EntityFramework.MappingAPI, run the following command in the Package Manager Console
PM> Install-Package EntityFramework.MappingAPI -Version 5.0.0.6
This will install and automatically add a reference to it.``

Error rebuilding ATMHud.DLL for Monotouch

After updating to the latest versions of Xamarin Studio this morning the ZBar and ATMHud references in our project started throwing a bunch of errors, all of which were:
The type 'MonoTouch.UIKit.UIViewController' is defined in an assembly that is not referenced. Consider adding a reference to assembly 'monotouch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' (CS0012)'
I did some reading and found out that I needed to rebuild both of the libraries because of something to do with "assembly strong names" in Xamarin. I was able to muddle my way through rebuilding the ZBar library, but the ATMHud rebuild has given me some trouble and I'm not familiar enough with what I'm doing to fix the problem.
I downloaded the ATMHud project from github and followed the instructions in the readme which state "Run 'make' in the binding directory to build ATMHud.dll", but when I do that I get errors.
Teds-Mac:binding ted$ make
/Developer/MonoTouch/usr/bin/btouch -e atmhud.cs enums.cs AssemblyInfo.cs --out=ATMHud.dll --link-with=libATMHudSDK.a,libATMHudSDK.a
/var/folders/75/vl_6zkyx03sc4tymnp41lsgw0000gn/T/09x9yx7m.nz9/AtmHud/AtmHud.g.cs(751,86): error CS0103: The name class_ptr' does not exist in the current context
/var/folders/75/vl_6zkyx03sc4tymnp41lsgw0000gn/T/09x9yx7m.nz9/AtmHud/AtmSoundFX.g.cs(75,104): error CS0103: The nameclass_ptr' does not exist in the current context
Compilation failed: 2 error(s), 0 warnings
btouch: API binding contains errors.
make: * [ATMHud.dll] Error 1
I've scanned through the files in the folders but can't seem to track down any references to "class_ptr".
Can anyone help with what might be the cause of the problem I'm seeing, and can you confirm that this will get me past the original "assembly strong names" problem I'm seeing?
As a temporary measure you can fix your old assemblies with this tool: https://github.com/rolfbjarne/iOSRefUpdater
Update
I've fixed the ATMHud bindings, now they should compile with newer versions of Xamarin.iOS installed as well.

SubSonic "Version" fails due to missing dependencies

I am using SubSonic 2.1 Final but having problems running "Version" with the SubCommander. I think this problem began when I installed SQL Server 2008 on my local machine and removed 2005.
This is the error I get:
ERROR: Trying to execute Version
Error Message: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServer.SmoEnum, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.SqlServer.SmoEnum, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetDbCollation(String dbname)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetDbComparer(Boolean inServer)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.InitializeStringComparer()
at Microsoft.SqlServer.Management.Smo.AbstractCollectionBase.get_StringComparer()
at Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase.InitInnerCollection()
at Microsoft.SqlServer.Management.Smo.SmoCollectionBase.get_InternalStorage()
at Microsoft.SqlServer.Management.Smo.SmoCollectionBase.GetObjectByKey(ObjectKeyBase key)
at Microsoft.SqlServer.Management.Smo.DatabaseCollection.get_Item(String name)
at SubSonic.SubCommander.DBScripter.ScriptSchema(String connectionString) in C:\svn\subsonicproject\trunk\SubCommander\DBScripter.cs:line 51
at SubSonic.SubCommander.Program.ScriptSchema() in C:\svn\subsonicproject\trunk\SubCommander\Program.cs:line 696
at SubSonic.SubCommander.Program.Main(String[] args) in C:\svn\subsonicproject\trunk\SubCommander\Program.cs:line 68
Anybody knows how to make this work?
You probably have to compile SubCommander with the SqlServer 2008 version of Microsoft.SqlServer.Management.Smo dlls
I made this work by downloading the latest source and build it on my machine. Now it works great.

Resources