I had follow the instruction from the channel 9
https://channel9.msdn.com/Blogs/Seth-Juarez/How-To-Integrate-the-Vungle-SDK-for-Windows-10?ocid=player
and I get the error below:
General metadata correctness
Error Found: The general metadata correctness test detected the following errors:
The assembly VungleSDK in file VungleSDK.winmd has a non-empty manifest resources table. Every Windows Runtime assembly must have an empty manifest resources table.
Impact if not fixed: Windows store doesn't allow apps that don't pass Windows Runtime Metadata Validation.
How to fix: Please ensure that the compiler you are using to generate your Windows Runtime types is up to date with the Windows Runtime specifications.
I does not understand this errors, anyone can help?
I had an error look like the same as the problem with the sdk, but not with the SDK, its in my own project.
The project doesen't contains anything except the project.json and refers a SharedProject which contains only one .cs file.
I get the same error, but I can't find the sollution.
I tryed:
- Add app.manifest (from template)
- Resource Dictionary
- Resource File
Both was empty as the error sais "Windows Runtime assembly must have an empty manifest resources table", so I created some empty one.
I would be happy to know what did you do with the Vungle SDK, what caused the problem and what solved it.
The Vungle winmd file contains same files like my projects winmd...
Here is the answer for my own problem.
Finally I found what caused the problem, by inspecting the .text file in winmd file and locate the file whose content was included in the .text.
Under the winmd project Properties the template generates a .rd.xml ( usually your package name) which is a resource dictionary what sould be removed in my case.
I know it won't help to solve the prolem with the old SDK which were patched earlyer, but if somebody get the error message on package validation and don't know what to do, here is something he can try.
(Just to be clear my problem not connected to the SDK I just get the same error message on validation)
Related
I add licensed select.pdf.dll to my SharePoint project. This dll file has added in both the visual studio reference and the package section(Deploy target as 'Global Assembly Cache (GAC)').
I was not able to deploy my solution to my sharepoint development server, with the error message
“Error occurred in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache: Select.Pdf.dll.”
I have googled the problem, someone cannot deploy because the .dll they want to deploy already existed in %windir%\assembly folder and the .dll is locked by other process.
VS2015 build error: Cannot add the specified assembly to the global assembly cache
https://devramblings.wordpress.com/2011/03/23/error-cannot-add-the-specified-assembly-to-the-global-assembly-cache/
However, the "Select.Pdf.dll" I want to deploy has never been deployed before, the %windir%\assembly and %windir%\Microsoft.Net\assembly folders do not have same name dll. file in them.
I have tried to restart VS, and reset IIS. the problem still existed.
Is there any way to solve the problem? Thank you.
You need to add the relevant .dep files also. When you add your assembly to the advanced section of the package you can add Class Resources at the bottom of the dialog. In my case I had to add Select.Tools.dep and Select.Html.dep before I could deploy my sharepoint solution.
#Mundi's answer works, only clarification is that for us, only selecting Select.Html.dep was enough. It is to be noted that you have to specify that you want to view all files (not just .dll) when selecting the additional Class Resources.
Alternative solution that worked for development scenario (but not advisable for production) is using appropriate gacutil.exe to your .net version.
I have an issue when i execute my app.exe, there is an error which is revealed only in the ".exe", if i try todo the same thing when i use the sources, there is no problem, i think the problem is when there is a call of the update method from a datastore, it return -1 with generated .exe and 0 when i execute sources.
i have tried to refresh any library from my app, before building, but the issue remains, for information the app is using a DB2 DATABASE, and it is built and run in a windows7 environment.
The likely cause is that when you built the exe, the DataWindow object assigned to the DataStore wasn't included. You need to use a .pbr file in the Project object. Look in the help file under 'deploying your application'.
I have encountered this problem as well when I deployed strictly to a *.exe file. The problem went away when I deployed to a *.exe with a *.pbd. This is established on the "libraries" tab of your project by checking the pbd checkbox.
An 'exe' only deployment can't handle hard coded 'literal strings' in your code. Creating and deploying 'pbd' library will allow 'literal strings'.
I installed VS2013 Update2 and CTP1.1.
I'm trying to create a blank cordovaapp project. This error is appearing. How can I fix it?
Z:\VSProject\Projects\SampleHybridApp\SampleHybridApp\SampleHybridApp.jsproj
: error : The imported project "C:\Users\Vishal
Dwivedi\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets"
was not found. Confirm that the path in the declaration is
correct, and that the file exists on disk.
Z:\VSProject\Projects\SampleHybridApp\SampleHybridApp\SampleHybridApp.jsproj
Multi-Device Hybrid App projects do not work if there is a space in the project path (this is a Cordova related issue). In this case, your username has a space.
The only way to resolve this at present is create a different user without spaces in the name and create a new Hybrid app project.
This is my first azure project and I'm not sure if I'm doing something wrong.
I'm trying to get some configuration inside an MVC 3 webrole and for this I'm using:
RoleEnvironment.GetConfigurationSettingValue(KeyName)
When I run the application on the emulator i get his error:
BC30451: 'RoleEnvironment' is not declared. It may be inaccessible due to its protection level.
I tried to add the full namespace like this:
Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetConfigurationSettingValue(KeyName)
And I get this error:
BC30456: 'ServiceRuntime' is not a member of 'WindowsAzure'.
However, I can access the RoleEnvironment inside the "OnStart" event of the WebRole class.
So, is it the expected behavior? If yes, how am I supposed to read configuration through the whole project?
Thanks in advance;
Have you added a reference to the Microsoft.WindowsAzure.ServiceRuntime assembly in your MVC project?
http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleenvironment.aspx
I started a new solution based on seanost suggestion and it worked well, so I figured the problem wasn't VS. After a few try and errors I finally found a solution, I just don't have an explanation for it :-)
Under my MVC project I have a folder called "App_Code".
Since i come from web forms development I'm use to the name so I created this folder to keep some classes. If I try to access "RoleEnviroment" from a class inside this folder the project compiles but won't even open, no matter what I try to access it will throw the same error.
If I rename the folder or move the files to another folder (let's say "Code"), it just works.
As I said before, I just don't know why it happens (and it doesn;t really matter now :-)
FYI, if you're using Visual Studio's Azure templates, references to the following namespaces are included by default, so it's not necessary to set Copy Local to true:
Microsoft.WindowsAzure.Diagnostics
Microsoft.WindowsAzure.ServiceRuntime
Microsoft.WindowsAzure.StorageClient
To make sure Visual Studio and the SDK is installed correctly, you should be able to do the following: Create a new MVC3 Azure project, add a using directive for the ServiceRuntime library in your Home controller, then add the following code in the Index action:
ViewBag.configValue = RoleEnvironment.GetConfigurationSettingValue("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
return View();
Then, add the following Razor syntax in the View:
<p>#ViewBag.configValue;</p>
And you should get the following result in your browser:
UseDevelopmentStorage=true
VSeWSS Deployement cast loader exception:
Do anyone have any ide of solution to this problem.
Error 1 VSeWSS Service Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Log file written to: C:\Documents and Settings\Default User\Application Data\Microsoft\VSeWSS 1.3\VSeWSS1.3 service.log
2010.01.13 10:31:27 Error
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
I only work with GAC deploys, this is my experience with it:
LoadException means a sequence of:
CopyToLocal is set in an assembly reference, this assembly will be included in the WSP package.
VSeWSS tried to deploy, it retracted the solution (thus removed the reference assemblies from the GAC) but something went bad, but it never saved anywhere that the solution was retracted but an error occured.
You attempt a new deploy, the reflection code in VSeWSS attempts to load the CopyToLocal assemblies in the GAC, they dont exist. LoaderException is thrown.
if you open the GAC, you sometimes SEE the assembly there! IT'S A TRAP :) if you F5 the GAC the assembly will be properly gone.
In case this is what happens, the solution is:
Manually Add the CopyToLocal assemblies to the GAC
restart IIS (or recycle the VSeWSS pool)
profit
a 'Clean Solution' might also help between steps 2 and 3.