I have a UWP app (which I developed under Win10 Family with Visual Studio 2017 C #) which creates a text file in the myapp \ LocalState directory.
When I want to copy this file to another directory I have a message telling me that the destination does not take encryption into account (normal Win10 family has no encryption capability).
It is as if this file would encrypted. When I try to decrypt with Cipher I have a message "incorrect parameter".
What's this ?
It has always worked properly until now. This is a new problem. Now I have error messages 0x80073CF6 0x80070199 0x80070032 ...
I think there are corrupted files or registers.
I solved my problem by working around.
I store my data files in "Windows.Storage.KnownFolders.PicturesLibrary".
Related
I have downloaded realm-studio-1.20.0-x86_64.AppImage from realm studio. How do I install this image in order to browse encrypted realm
mobile database on my personal machine that is either exported or fetched from emulator or real device.
Note: I don't want to use stetho plugin for chrome as it dose not support encrypted realm mobile database browsing.
It is actually quite easy, all you need to do is set its privilege to be executable:
chmod +x realm-studio-1.20.0-x86_64.AppImage
And then you can run it now
./realm-studio-1.20.0-x86_64.AppImage
For someone how want to access .AppImage file using UI, follow below steps.
Make it executable by following Right Click on .AppImage file >> Properties >> Permission Tab >> Check “Allow executing the file as program.
Now run the program by double click on .AppImage file.
We have two environments on Azure (Same site, same config etc...) All deployment was scripted over ARM Json files and deployment by VSTS.
When I hit the first environment, everything is ok.
But on the other environment, I caught exception. After investigation, it seems Azure does not see my unity config files (XML files in UTF-8). When I open all my files via (App Service Editor (Preview)) Note: I only set a space on the file for update only. After that my web app run well.
At each deployment, I need to go via Azure Portal to edit my Unity.config files to fix my WebApp.
Anyone have an idea about it? And why my first site with the same file, config, deployment working well, but not the second one?
it seems Azure does not see my unity config files (XML files in UTF-8).
Please double check whether the encoding of your config file is UTF-8 before deploying it. You could take following steps to check it.
Open your config file using Notepad.
After clicked File->Save As..., you will see the current encoding of your config file. If the current encoding is not UTF-8, please change the encoding to UTF-8 and save the file.
Objective: Using Windows 10 functionality, send an encrypted folder of files to a remote pc and allow the files to be decrypted for use on the remote pc.
(updated after initial post)
I have studied this for a bit and I'm not having success. I did this using a folder with 3 .pdf files for simplicity to confirm I understand the process - I don't. I followed these steps:
1) Right-clicked on folder > Properties > Advanced > checked 'Encrypt contents...' >
OK'd my way out when the encryption was complete
The folder and file icons show a lock symbol on them and the filename and extension remained the same as before.
2) Exported the encryption certificate to a .pfx
3) Imported the exported .pfx from the previous step into the remote pc
4) Transferred the file to the remote PC using an SD card
The filename now has another extension added to it: '.PFILE'
I can't get past this step
Also, when I go into Properties > Advanced on the folder or contained files, instead of seeing the 'Encrypt Contents...' checkbox checked, it is unchecked.
The .PFILE extension is part of the Microsoft Rights Management service. It is not present when the file is on the encrypting machine.
I confirmed that the encryption process is effective on the encrypting machine by signing into another account on the same pc; that account could not open encrypted files until I imported the .pfx certificate into that user account. Again to confirm, those files in the 2nd user account on the encrypting pc do not have the .PFILE extension. The .PFILE extension only shows up on the remote pc.
So the issue is I don't understand is why .PFILE shows up on the remote PC and what do I do about it?
Added after yet more testing: When I copy an encrypted folder from the encrypting pc to another pc on my network using the network connection, things work OK. I.E., the copied folder and its internal files show up on the other pc as encrypted in the manner I was looking for. However, this does not solve my problem exactly.
I would like to transfer these files to a PC that is not on my network. I don't seem to be able to copy the encrypted folder to an SD card, nor can I send the encrypted files in a transmission to the remote PC. I'm guessing 'that's just the way it is', so I don't know how to accomplish my objective as stated above.
Additional Results: I used BitLocker on my SD card and achieved a make-do solution for my need.
However, I would like to understand if it is possible and how it can be done to open encrypted files when the extension .PFILE has been appended to the file on a different computer, or am I misunderstanding a fundamental aspect of encryption?
PFILE extensions in this case are an artifact of windows 10 encryption - encrypted file system for sure, maybe bitlocker as well. It happens when you copy a Win10 encrypted file onto a file system that can't handle encryption (e.g., exFAT).
Those PFILEs can be opened on the original PC, and perhaps on another properly configured Win10 box (don't forget to install the same keys/certs on it).
Bun on systems prior to Win10, I don't have any confidence these PFILES can ever be opened.
How to solve? The two not-so-useful answers:
Don't try to store encrypted files on that FAT (or other "old" file system) disk.
Copy the EFS file onto a file system that does support EFS (e.g., NTFS).
I have yet to find out how it would be possible to open a PFILE on a non-Win10 box, even though my target machines have all the right keys to open standard EFS files on an NTFS file system. Documentation is virtually non-existent (like you expected anything else).
i am tring to read excel file but the iis7 is giving this error:
"Microsoft Office Excel cannot access the file 'D:\Demosites\Domaininterface\Keywordsfolder\keywords2172011 23841 PM.xlsx'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook."
someone know about this?
Since the path is explicit, it sounds like a permissions issue - simply: the account that the application / app-pool is running as (in IIS) doesn't have access to that folder.
However, unless it has changed recently, you should note that Excel is not supported for use on a server - it is desktop software, and you may run into a multitude of issues using it on a server. And I have no idea whether this would be a licensed scenario ;p
I am using Visual Studio 2008 and trying to publish a Web Application Project, but it keeps failing when trying to add files in the project. Below is a sample of the message;
Publishing folder JavaScript... Unable
to add 'JavaScript/hoverIntent.js' to
the Web site. Unable to add file
'JavaScript\hoverIntent.js'. The
specified file could not be encrypted.
This happens for image files too. I am lost as to why it is happening. I should add that I am using Windows 7 build 7100, not sure if this is casuing the issue??
Any help greatly appreciated
I know this is an old topic, but I found it when I googled for the same problem.
My solution was to remove the "Encrypt" flag from Windows Explorer for the files listed (Right click -> Properties -> Advanced)
This blog post at BlackMarble is suggesting that you may have the target directory set to use encryption. Sounds like the exception you're seeing is the inability for the VS publish process to handle that.
To get around this problem:
use VS to publish to an intermediate directory. Somewhere on your PC perhaps.
copy the files yourself (with a batch file maybe) to the server
That's a workaround, at least.
Disable windows encrypted file system in cmd with the following:
fsutil behavior set disableencryption 1
Then restart your PC.
When I had this problem on publishing a Visual Studio 2010 web project either to a local folder or to a host, I was stumped. Visual Studio didn't indicate which files or even folders had caused the problem. I wasn't aware there were any encrypted files in the solution and I couldn't find any. I was unable to update my website.
I googled how to find encrypted files but none of the solutions involving efsinfo.exe were appropriate to Windows 7 then I found an example using the cipher command:
https://superuser.com/questions/58878/how-to-list-encrypted-files-in-windows-7
There were a number of different answers to finding the encrypted files. I used the command prompt method.
I opened a command prompt in the root of my application and did:
D:\Data\Code2011>cipher /s:MyWeb >Encryption.txt
I then did a case sensitive search in Encryption.txt for lines beginning E[space] or 'the file is encrypted'
I found two .htc files which were encrypted in a styles subfolder and was able to unencrypt them in the advanced tab of explorer file properties.
The Web then compiled and published OK.
I had this issue as well. I set the source files properties to not be encrypted but that still wasn't working. Turned out that the files were cached in the temporary deployment folder and I had to uncheck encryption there as well. It probably would have worked to delete the temporary deployment directory but the other way worked.