I'm trying to create a C# console application using SignFile lib to access Token USB (contain Digital Signature) to sign a folder of PDF files.
The problem is after build Release to run on Windows Server 2012, this application run successful without any error (with Administrator account). But when I try to run with remote in my laptop (using Administrator account too), this application run error with this code:
Unhandled Exception : System.Security.Cryptography.CryptographicException: Bypassing PIN exception: An internal error occured
Anyone got any ideas about this situation?
Related
I have a desktop application that has a setup.exe built by Squirrel.
The app files get downloaded to the users machine at this location:
C:\Users\<userid>\AppData\Local\AppName\VersionFolder\
And a short cut is created on the desktop. For some users, when they run the application, they get the error
"App OnStartup Error: Access to path C:\Users\\AppData\Local\AppName\VersionFolder\Some.dll is denied."
Not sure what's going on?
It works fine for me and few other users. One of users who get this error has admin rights to their pc. Any help would be greatly appreciated.
Whenever I try to sign into Xbox Live on my Unity game (using creators program Unity plugin), both on UWP PC and Xbox One, the game throws an exception:
Exception thrown at 0x00007FFAEF0AA899 in Boulder Falls.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x000000E51B6FEC20. HRESULT:0x803E0110 The application does not have the cloud notification capability.
WinRT information: The application does not have the cloud notification capability.
Stack trace:
>[External Code]
The program '[5896] Boulder Falls.exe' has exited with code 0 (0x0).]
I am using the included prefab to sign in, and I do have developer mode enabled on both the PC and the Xbox, they are all in the correct sandbox, XboxServices.config has XboxLiveCreatorsTitle set to true, and the account I am using is in the test account list. Is there any solution to this?
Edit:
If I try to continue past the exception, it throws another one:
Exception thrown at 0x00007FFA7F1BA839 in Boulder Falls.exe: Microsoft C++ exception: Platform::AccessDeniedException ^ at memory location 0x000000D2BA3FE740. HRESULT:0x80070005 Access is denied.
WinRT information: A network capability is required to access this network resource occurred
I fixed it, I just rebuilt the program in a new folder from Unity, and compiled it from Visual Studio 2017 instead of 2019.
We ran into this issue, too. For us it turned out to be setting the "InternetClient" capability in the Unity PlayerSettings. However, even after checking that, we had to delete the existing build folder because Unity wouldn't update the existing files with the new capability. For reference, there's a quick mention of setting the capability (step 10):
https://learn.microsoft.com/en-us/gaming/xbox-live/get-started/setup-ide/managed-partners/unity-win10/live-partner-unity-uwp-il2cpp
I'm building a C# SSL software, and it worked just fine when I first generated certificate using openssl, and eveything was good, until I reebooted my PC and ran the program again. In the line:
clientSslStream.AuthenticateAsServer(serverCert,clientCertificateRequired: false, checkCertificateRevocation: false);
was the error System.ComponentModel.Win32Exception: 'The credentials supplied to the package were not recognize'
I tried to reinstall the SAME certificate again and restart the program and it worked just fine.
after rebooting again, the program threw this error again. How can I solve the error forever? I'm using default windows certificate importer, and allowing every program to read the private key. I've imported both *.p12 and *.crt files but it wasn't matter. How can I solve the problem?
Here are some screenshot from mmc, on for the certificate on local PC account and the other for User PC account. The screenshots are after reboot, when it doesn’t work:
The answer: In windows, after installing certificate you have to add valid user (e.g: Aviv, Admin..) to keep the certificate installed.
Source: Answer in serverfault
I have a web application where user run queries(through web interface) and gets output in excel format. Sometimes this output comprises of more than 300k records. The user needs this data for further research.
Now in order to speed up the dynamic excel creation with such large volume of data, we are using "Microsoft.Office.Interop.Excel" COM object.
Our code works completely fine on the in-built asp.net development server. However, when hosted on the IIS, it gives us "Access is Denied" error (exact error is as shown below).
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
I have given all the rights to the IIS user but still this is not working.
I have tried Windows Server 2012 R2 as well as Windows 7 OS and it doesn't work on both of them.
I have made changes to the "DCOMCNFG" and granted access to the web users under the "COM Security" tab also.
What are some additional steps I can take to make this work?
Have a look at the following links -
"Retrieving the COM class factory for component.... error: 80070005 Access is denied." (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
http://forums.iis.net/t/1205506.aspx?Retrieving+the+COM+class+factory+for+component+with+CLSID+failed+due+to+the+following+error+80070005+access+is+denied
https://waheedrous.wordpress.com/2014/01/26/error-office-interop-assemblies/
This is a COM permissions problem.
Start > Run > dcomcnfg
Navigate to Component Services > Computers > My Computer > DCOM Config
Locate the Microsoft Excel Application
Right click > Properties
On the security tab: Select Security under Launch and Activation Permissions and click Edit…
Add the account under which the site is running (eg: Network Service) and assign Local Launch & Local Activation permissions
Source
Also the ASP.NET Authentication should be enabled.
I think for this to work, office has to be installed on the server.
So if this is not the case, install Office on the server.
(alternative is to use OpenXml http://www.microsoft.com/en-us/download/details.aspx?id=30425)
I have decided to give up on using COM object for Excel operation on the server. Instead, I have decided to use EPPlus open office XML SDK for generation of Excel files. This works without any additional security permission requirement on the server.
Hi I just tryed to run my application fopr the first time on IIS.
Everything worked find while developing on visual studio but when I added the app to IIS I got this error:
Cannot open user default database. Login failed.
Login failed for user 'IIS APPPOOL\forum'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Cannot open user default database.
What should I do the site works when I run it from visual studio?
EDIT
I did a litle more digging and I managed to find out that I needed to setmy application pool identity to NetworkService I did that but now I got another error :
Unable to open the physical file "D:\Projects IDE\Visual Studio\MyWork\Websites\Forum\App_Data\ASPNETDB.MDF". Operating system error 5: "5(Access is denied.)".
An attempt to attach an auto-named database for file D:\Projects IDE\Visual Studio\MyWork\Websites\Forum\App_Data\ASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Please check two places
1 Access to folder for the NetworkService identity(default for IIS app pool) or for this one(IIS APPPOOL\forum)
2 Connection string credetial. And if there "Integrated security". Provide Specific user and passwrod there.
I received this non explicit error because I had the Application Pool set to .NET 2.0 as opposed to .NET 4.0 on a service that was responsible for authentication. Typically when the framework is incorrect a different type of error about a non-recognized framework .dll is displayed, but not in this case. If this happens, check the following:
The value after IIS APPPOOL is the name of the application pool this current process is run under. In your case there was an AppPool named forum.
Check that the app pool is using the corrected pipeline and .NET Framework required for the application being run.