Today I faced an issue while compiling the project with VS 2010. First I thought it was due to invalid snk file. But I confirmed it, that was not the problem. Later I found it was a permission issue. The solution is very simple, to resolve this error; open the following folder - “C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys”, and give your user (whatever account you use to log onto your computer and work on Visual Studio) full control. You can do it by Right click on the MachineKeys folder and select properties, and in the security tab, make sure the current user have full control.
Sometimes you may need to change the startup page of Windows Phone application. By default it will be pointing to MainPage.xaml. You can modify the WMAppManifest.xml to change the default page. In the WMAppManifest.xml you will find the following.(You can get the WMAppManifest.xml by expanding the properties node in the Project Explorer window.) <Tasks> <DefaultTask Name ="_default" NavigationPage="MainPage.xaml"/> </Tasks>
Here is a small C# snippet which will return a date time value in a readable way as facebook,twitter, stackoverflow and most of the forum sites, like 1 day ago,1 min ago etc. If youâ€™re building a website, then the jQuery plugin Timeago is a pretty sweet way to do it (as long as you can stand webpages that auto update text). I have wrapped it in an extension method.
This is post is about another hybrid application scenario. I had to implement this in one of our projects, the problem was like this, unlike other hybrid applications, this project had a native login screen, which will authenticate the user against a REST API service and once the authentication is successful, service will set an authentication cookie. And once authentication is completed, application will start a new activity, which will load the web application. If cookie is not present, the web application will show the Forms authentication screen.