windows-8

The type initializer for '<Module>' threw an exception and Arithmetic operation resulted in an overflow

半腔热情 提交于 2019-12-11 11:35:36
问题 The same code runs in Windows 7 32 bit. But fails in windows 8 64 bit. Any ideas? Thanks 回答1: I just resolved it. This application requires 32-bit mode where as the IIS in my Windows 8 machine runs in 64-bit mode by default. I had to set Enable 32-bit Applications to true for the AppPool this application is using. and it was not failing on a specific line of code. The exception was thrown somewhere between Application_BeginRequest and Session_Start 来源: https://stackoverflow.com/questions

Google Plus integration in Windows Phone 8 and Windows 8 Store app

半城伤御伤魂 提交于 2019-12-11 11:16:05
问题 Is there any sdk available to integrate the google plus in windows phone 8 and windows 8 store app? Like the facebook sdk is available which makes our life easy to integrate the facebook in our app. I want sdk which will make my life easy to integrate the google plus with windows 8. Or any other solution to integrate google plus with my windows 8 apps. Thank You. 回答1: Gus Class on the Google+ Developer Relations team has done some work around Windows 8 and the .NET client library to show how

Creation Of GroupItems in MetroApps using HTML & Javascript

痴心易碎 提交于 2019-12-11 11:07:39
问题 I am using Windows 8 and Visual Studio 2012 RC for Metro apps Development. Here I am taking GridApplication template for creating 3 listviews ( groupedItems ), these 3 listviews will need to display different information from my service. Actually in default grid application they have given common items for all listviews, but here I do not want to display images for second listview , when I removed background image variable in javascript file it is showing like empty-image symbol (cf.

How to create a file when the file is not exist in WinRT?

拥有回忆 提交于 2019-12-11 11:00:44
问题 What I want open a file if it exists, create it if it not exists What I code try { return await folder.GetFileAsync(fileName); } catch (FileNotFoundException ) { StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync(fileName); return file; } What the error Cannot await in the body of a catch clause How to make it? 回答1: Why not just call CreateFileAsync and specify OpenIfExists? Create the new file or folder with the desired name, or returns an existing item if a file or

Output of Environment.GetEnvironmentVariable(“PROCESSOR_ARCHITECTURE”) and OperatingSystem.Platform on Windows RT

让人想犯罪 __ 提交于 2019-12-11 10:58:31
问题 I'm writing a cross-platform application and I really need some basic info about the system. Not just for switching it (I could use compile variables, since I have the same code linked in platform-specific projects). So don't tell me that knowing the platform and architecture info is useless: Windows RT and c# Can anybody provide me with this info, because I don't have any easy way to get it by my-self (I have no emulator/device to work with, I'm using a netbook with linux installed on it, so

Find SQLite Database On WinRT

前提是你 提交于 2019-12-11 10:40:39
问题 When my application starts I can copy a pre-populated SQLite database to the application LocalFolder as suggested here (http://timheuer.com/blog/archive/2012/06/28/seeding-your-metro-style-app-with-sqlite-database.aspx). Now I would like to be able to get a copy of the database back at times when debugging so I can inspect its contents and check that it is as expected. Is there anyway to do this when using the simulator, or even when running local if not ? Thannk you 回答1: It will be located

How to handle concurrency with StorageFile operations?

只谈情不闲聊 提交于 2019-12-11 10:28:46
问题 I'm attempting to write to a file but "occasionally" I run into issues that I think are down to concurrency, as some of the time, I'm getting a System.UnauthorizedAccessException with message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) ...from the following: public async void SubmitChanges() { DataContractSerializer serializer = new DataContractSerializer(typeof(LocalCache<T>)); StorageFile file = await ApplicationData.Current.LocalFolder .CreateFileAsync

How do i set the id in WinJS.Binding.Template in a Win8 App

冷暖自知 提交于 2019-12-11 10:15:53
问题 The following html is not working for me. <div id="weightListViewTemplate" data-win-control="WinJS.Binding.Template"> <span data-win-bind="innerText: name; id: id"></span> </div> <div id="basicListView" style="width:420px;height:600px" data-win-options="{ itemTemplate: select('#weightListViewTemplate') }" data-win-control="WinJS.UI.ListView"> </div> The list appears but the ID property is not set on the span objects. How to a set the id of the span dynamically in the template based on the

App-wide Observable Collection

二次信任 提交于 2019-12-11 10:12:09
问题 If I put an Observable Collection inside a separate .cs (class) file and use it in my MainPage.xaml , how can I make it so that all the data stored inside that same Observable Collection is accessible from within a different XAML page at a later time? E.g. MyClass.cs: public ObservableCollection<String> oC = new ObservableCollection<String>(); MainPage.xaml.cs: // add to observable collection SecondPage.xaml.cs: // access and use data stored in ObservableCollection 回答1: I think you just want