I have some sensitive information like application_key and connection_string. They must be predefined for users who install the application. Is it possible to set them so that noone can disassemble XAP file to see the actual values (for example in windows we can encrypt configuration file sections)?
Im not talking about user-entered data that can be encrypted(http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh487164(v=vs.105).aspx), im talking about data, avaliable from application load; for example application_key that is needed to connect to some server and gain access to some actions; so that i don't want such things to be visible.
Update: think ive found the solution:
Obfuscation with Windows Phone 8 so that XAP from the store CANT be opened and thats it!
See the UPDATE. The XAP from the store, even downloaded, can not be opened, its obfuscated by default.
Related
In my web-app (WebPages, C#.NET) I have a drag and drop file box where user's can drag files from windows explorer and, once dropped, it will save in a given location on a shared drive. This part is working fine. The box looks something like this:
The problem is, that it also reads files from the same directory and my user's would like to be able to open the files from this interface on dblclick. I have written an ajax request with jquery (the ajax, too, is working fine), but I can't seem to get the files to open on the user's machine no matter what I try.
Most references I try and look up point me towards System.Diagnostics.Process.Start(#"<directory goes here>") but this doesn't really do anything. It will open some process on the server side, but nothing opens, either on the server or on the user's machine.
What they'd like to do, for instance, is double click 'Hazcom.xls' and it would use the default associated application to open the file. In this case, of course, Microsoft Excel.
Is this even possible or am I chasing a wild goose here?
Sources I've Tried:
Open file with associated application
http://www.csharp-examples.net/open-file-with-default-application/
How can I open Windows Explorer to a certain directory from within a WPF app?
c# open file with default application and parameters
There have been a few more sources I've tried, as well, but they're all pretty much in the same vein as these.
Additional Info:
The internal Intranet application runs on a server using IIS 8
The solution is desired to be opened on the user's machine and not, say, the server itself.
The path to the files is dynamically changing depending on what they have loaded into the interface.
Though, I'm not expecting this to be a solution viable for client side (jquery) I'd be happy to look into that if that's the only solution available.
I'd also settle for simply opening the file location, instead of the actual file itself, but I've had no luck with this either, for what looks like the same reasons as the original problem.
I have made a Windows App which is a spelling game, the user has a score, for example if a user gains a score of 180 when they close the app and reopen the app the score is not there anymore. Can people please give me methods of resolving this so it stores everything about the user (score and name) in which they can later access it if they close the app.
The Windows Store API provides a way to write your own local data to the file system, as described here:
Accessing application data
You read and write to it just as if it were a normal file on your hard drive, you just have to use their API in order to get the file handle.
You could of course also use a web service and store the data in a database, but given your experience/app complexity, thats probably a path to take with a different applciation.
I have created an app that makes use of file types that are not standard to Windows Phone and I have registered my app to these extensions and they can be opened in my app perfectly from example the email client.
My application can modify the file as well as generate completely different ones. I then have an internal file manager page where users can delete files and choose to open then.
My problem now is that I want the user to share these files via email, Bluetooth, tap+send(nfc), etc. with a menu pretty much like the you get in the gallery(photos) app on Windows Phone. Is this a standard function that I can somehow access, or is there another standard library or anything really that I can use to as quickly as possible implement file sharing?
There is a ShareMediaTask but it is intended for sharing media files on any kind of files, so you need to implement everything by yourself.
I just have a "short" Question. I did a lot of research the last few hours and found out, that a Wp7 application has access to his own directory and the IsolatedStorage. So if I want to work with a file in my application I either have to load it into the project using the Solutionexplorer in VS, or create a file manually by code, load it into the Isolated Storage and then read out of it.
So i come to the result that it isnt possible to load a specific file, which is in an unknown directory or folder and has an unknown name from my mobile Phone (or WP7 emulator) into the App directly, right? Because there is no browsing feature or something like e.g. in the ASP.NET Webform,the FileUploadControl.
Is my understanding correct or do I miss something?
you cannot access anything that is on the phone (except music and photo lib etc) other than whats included with the app and its isolated storage area.
you can't browse the local device like you can on windows. however you can download files from the net.
hi
i wrote a script to copy a CAB file via FTP from the distant server to the Mobile. This is all working fine and the size matches.
Now my problem is when i am trying to install the file on the Mobile,
i receive the message "the install was unsuccessful" and when i copy directly from the server to the Mobile this is working
Can you help me with this :-(
Regards
You say the file size is the same, but what about contents? Are the files identical? How are you transferring the CAB to the device manually? Over ActiveSync/WMDC? BE aware that ActiveSync may modify a file during transfer - especially if the CAB is signed and the device doesn't require signed CABs.
See this SO question for some background/similar behavior.