PDA

View Full Version : Access denied to app when manifested or codesigned



NewsArchive
05-22-2016, 04:21 AM
Hello,

I have an app that refuses to run if it is manifested or codesigned.
I use exactly same settings for manifesting and codesigning on this app
as on a lot of other apps that works OK.

The program shows a message "Access denied" if manifested or
codesigned.

This is a NetTalk server app, but I have no idea if this has any
bearing.

Anybody have ay idea what could be causing this ?

TIA.

/Poul

NewsArchive
05-22-2016, 04:26 AM
>
> Anybody have ay idea what could be causing this ?
>

"Access denied" sounds like a protection software issue (false-positive?).
IMO, the protection software put a lock onto the application.

Friedrich

NewsArchive
05-22-2016, 09:34 AM
>>
>> Anybody have ay idea what could be causing this ?
>>
>
> "Access denied" sounds like a protection software issue (false-positive?).
> IMO, the protection software put a lock onto the application.
>
> Friedrich

Tried to disable the AV software but same result.
And a number of other apps manifested and signed the same way is
working without any issue.

/Poul

NewsArchive
05-22-2016, 09:35 AM
> I have an app that refuses to run if it is manifested or codesigned.
> I use exactly same settings for manifesting and codesigning on this app
> as on a lot of other apps that works OK.
>
> The program shows a message "Access denied" if manifested or
> codesigned.

Hi Poul,

Where are you trying to run it - under Program Files or elsewhere?

Also what is the name of the executable (specifically does it have a word
like "Setup" as part of the name)?

That might give some clues.

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
developer tools!
www.solidsoftware.de - ImageEx and RichReport templates!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
05-22-2016, 09:35 AM
> Anybody have ay idea what could be causing this ?

Also what OS and are you running it as a service or do you get the error
anytime you try to start the manifested app?

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
developer tools!
www.solidsoftware.de - ImageEx and RichReport templates!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
05-23-2016, 01:39 AM
Hi Charles,

This is Win10 - program name "KundeWeb.exe".
The program is installed outside "program files" or any other protected
directory.
The only special about this app (compared to my other apps in the same
folder) is the fact that this is a NetTalk server app that has
SelfService implemented. The error is shown whether I try to run the
program from Explorer or try to install it as a service.

Cheers
/Poul

NewsArchive
05-23-2016, 01:40 AM
> This is Win10 - program name "KundeWeb.exe".
> The program is installed outside "program files" or any other protected
> directory.
> The only special about this app (compared to my other apps in the same
> folder) is the fact that this is a NetTalk server app that has
> SelfService implemented. The error is shown whether I try to run the
> program from Explorer or try to install it as a service.

Hi Poul,

Interesting.

What happens if you remove Self-Service from a copy of the app and just try
to run it normally (with the code sign and manifest)?

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
developer tools!
www.solidsoftware.de - ImageEx and RichReport templates!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
05-23-2016, 01:41 AM
Hi Poul

Checkout the Capesoft docs for SelfService here

http://www.capesoft.com/docs/SelfService/selfservice.htm#C8

search the page for 'manifest' and you'll get...

8 8.Make sure that your access settings (in the manifest file) are
correct to what your application will require. This is normally
requireAdministrator.

search for 'denied' and you'll get...

C8) I can't install my service - it says access denied (errorcode 5).

Answer: You need to be logged in as an administrator (or elevated with
Administrator privileges in Windows Vista). IOW - the user that you're
logged on to windows with, must belong to the administrators group.

which ties in with the .manifest bit as well.

Graham

NewsArchive
05-23-2016, 01:41 AM
> Checkout the Capesoft docs for SelfService here
>
> http://www.capesoft.com/docs/SelfService/selfservice.htm#C8

Interesting. Thanks for sharing, Graham.

Friedrich

NewsArchive
05-23-2016, 01:42 AM
Hi Poul,

> The only special about this app (compared to my other apps in the same
> folder) is the fact that this is a NetTalk server app that has
> SelfService implemented. The error is shown whether I try to run the
> program from Explorer or try to install it as a service.

It needs to run elevated, i.e. with requireAdministrator in the manifest.

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
05-23-2016, 01:43 AM
Charles, Graham and Arnor,

Thanks for your imput.

Changed the manifest to requireAdministrator.

Result when run as Administrator:
"The application has failed to start because its side-by-side
configuration is incorrect. Please see the application event log or use
the command-line sxstrace.exe tool for more details"

Found this page (link below) on microsoft.com that suggests
reinstalling Microsoft Visual C++ Redistributable.
Why on eath would that solve a problem for a Clarion / netTalk program
?

/Poul

http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/error-the-application-has-failed-to-start-because/df019c0d-746e-42d0-ad68-465e18e3f3ef?page=3

NewsArchive
05-23-2016, 01:45 AM
Hi Poul,

I'd post on softvelocity.clarion.third_party and put Nettalk server in
the subject line.
_Maybe_ Nettalk has some specific dependencies that need listing in the
manifest.

Graham

NewsArchive
05-23-2016, 09:14 AM
Will do.

Thanks.

/Poul

NewsArchive
05-23-2016, 09:14 AM
Poul,

I remember a similar case from years ago. Are you using a "special"
character (non-US-ASCII) in the "Program Description" (in the manifest) or
"Descriptive Name" (in the code-signature)? If yes, don't do this.

Friedrich

--
Friedrich Linder
Lindersoft | SetupBuilder | www.lindersoft.com
954.252.3910 (within US) | +1.954.252.3910 (outside US)

--SetupBuilder "point. click. ship"
--Helping You Build Better Installations
--Create Windows 10 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner

NewsArchive
05-23-2016, 09:15 AM
> I remember a similar case from years ago. Are you using a "special"
> character (non-US-ASCII) in the "Program Description" (in the manifest) or
> "Descriptive Name" (in the code-signature)? If yes, don't do this.

For example, never use Danish / French / Spanish / etc. letters or German
Umlaute.

Friedrich

NewsArchive
05-23-2016, 09:15 AM
Spot on.
Youre the man :-)

All is good now.

Cheers
/Poul

NewsArchive
05-23-2016, 09:15 AM
> Spot on.
> Youre the man :-)
>
> All is good now.

PERFECT! :-) Thanks for the update.

Friedrich

NewsArchive
05-24-2016, 02:53 AM
I should add that same non-ascii characters are used an all my other
projects.
It is only on this NetTalk / SelfService app that I have a problem.

Cheers
/Poul

NewsArchive
05-24-2016, 02:54 AM
Go USA!<g>

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
05-24-2016, 02:55 AM
Rah rah.

Hope spelling never becomes a factor.

Company Name: Harbour Armour Colour Vigour Are Us

Simon Kemp

NewsArchive
05-24-2016, 02:56 AM
> Company Name: Harbour Armour Colour Vigour Are Us
Company Name: Harbor Armor Color Vigor R Usa :-Z

Graham