SignTool.exe verify /pa returns exit code 1 from the code but works fine while running from command prompt
Hi,
I am using SignTool.exe from a new Process() to verify a codesigned assembly and it returns the exit code 1 whereas it returns exit code 0 while i run the same from Visual Studio Command prompt. Please let me know your thoughts...
Here is my code snippet from VS2012 ultimate on Win7 PC.
p = new Process();
p.StartInfo.FileName = "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\Bin\\SignTool.exe";
string args = @"verify";
p.StartInfo.Arguments = args + " "+ "/pa " + "/v "+ name;
p.Start();
p.WaitForExit();
pexitcode = p.ExitCode;
//name = "C:\\Users\\v-maparn\\Documents\\Visual Studio 2012\\Projects\\CodesignVerification\\CodesignVerification\\bin\\Release\\Microsoft.IT.Core.dll"
Thanks,
Mani
Hi Amy,
Thanks for your reply. I am receiving the exit code 1 by the Process even though the SignTool is able to successfully verify the assembly. I ran the below command from command prompt and received no errors or warnings. I assume the exit code should be 0.
I have also verified that this assembly has digital signature embedded as you can see from the output.
output:
C:\Windows\system32>signtool.exe verify /pa /v "C:\Users\v-maparn\Documents\Visu
al Studio 2012\Projects\CodesignVerification\CodesignVerification\bin\Release\Mi
crosoft.IT.Security.UI.SystemSecurityManagement.SSMUIWebHost.dll"
Verifying: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\CodesignVerif
ication\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.SystemSecurity
Management.SSMUIWebHost.dll
Signature Index: 0 (Primary Signature)
Hash of file (sha1): 1B58113B218260837A6B850561538A804B034F2A
Signing Certificate Chain:
Issued to: Microsoft Root Certificate Authority
Issued by: Microsoft Root Certificate Authority
Expires: Sun May 09 15:28:13 2021
SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
Issued to: Microsoft Code Signing PCA
Issued by: Microsoft Root Certificate Authority
Expires: Mon Aug 31 14:29:32 2020
SHA1 hash: 3CAF9BA2DB5570CAF76942FF99101B993888E257
Issued to: Microsoft Corporation
Issued by: Microsoft Code Signing PCA
Expires: Thu Apr 24 14:33:39 2014
SHA1 hash: 108E2BA23632620C427C570B6D9DB51AC31387FE
The signature is timestamped: Mon Dec 30 02:58:12 2013
Timestamp Verified by:
Issued to: Microsoft Root Certificate Authority
Issued by: Microsoft Root Certificate Authority
Expires: Sun May 09 15:28:13 2021
SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
Issued to: Microsoft Time-Stamp PCA
Issued by: Microsoft Root Certificate Authority
Expires: Sat Apr 03 05:03:09 2021
SHA1 hash: 375FCB825C3DC3752A02E34EB70993B4997191EF
Issued to: Microsoft Time-Stamp Service
Issued by: Microsoft Time-Stamp PCA
Expires: Wed Feb 11 14:11:31 2015
SHA1 hash: D967AB4CF991F11DA6E318C880F1AF1A9C8D2C7C
Successfully verified: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\C
odesignVerification\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.Sy
stemSecurityManagement.SSMUIWebHost.dll
Number of files successfully Verified: 1
Number of warnings: 0
Number of errors: 0
C:\Windows\system32>
Thanks,
Mani
Similar Messages
-
First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first night.
The speed may have been ok at that time and is too inconsistent/too slow overall. interference may have proven to be more of an issue since as well. If using public DNS that will provide Intermittant results
I'm sure using a hotspot would be fine but it depends on your viewing habits. An HD movie is around 4-5GB. It would also be subject to speed. requirements so best to test to see how it compares.
You would have to check with your Carrier if hotspot it's enabled then just to into your settings and toggle it ON -
Query returns zero records in coldfusion context, but works fine in Navicat
I've got a query that's returning zero records when I load a page. If I copy and paste that same query (from the debug output) into navicat, I get rows returned (as I expect). Has anyone seen this? It happens locally (CF9) AND remotely on our staging server (CF10). Even weirder, it's a query that was previously working fine - I simply added an if statement to the where clause, and all of a sudden...
Here's the query:
<CFQUERY name="LOCAL.getEncounterServices" datasource="#REQUEST.dsn#">
SELECT
a.EncounterProductID,
a.DateTime AS ServiceDate,
aa.CartItemID,
aaa.CartID,
aaaaa.CartStatus,
b.ProductID,
b.ProductName,
b.CPTCode,
b.Price,
c.EncounterID,
c.DateTimeClosed AS EncounterClosedDate,
d.FirstName,
d.LastName
FROM
EncounterProducts a
LEFT JOIN CartItemProduct aa ON (a.EncounterProductID = aa.EncounterProductID AND aa.Active = 1)
LEFT JOIN CartItem aaa ON (aa.CartItemID = aaa.CartItemID)
LEFT JOIN Cart aaaa ON (aaa.CartID = aaaa.CartID)
LEFT JOIN CartStatus aaaaa ON (aaaa.CartStatusID = aaaaa.CartStatusID),
Product b,
Encounters c,
Contacts d,
EncounterStatuses e
WHERE
1 = 1
AND (aa.CartItemID IS NULL OR aaaaa.CartStatus = 'Deleted')
AND a.Active = 1
AND a.ProductID = b.ProductID
AND a.EncounterID = c.EncounterID
AND c.PatientID = d.ContactID
AND c.EncounterStatusID = e.EncounterStatusID
AND e.EncounterStatus = 'Closed'
<CFIF IsDefined("ARGUMENTS.encounter") AND IsObject(ARGUMENTS.encounter)>
AND c.EncounterID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.encounter.getID()#">
<CFELSE>
AND c.DateTimeClosed >= <CFQUERYPARAM cfsqltype="cf_sql_date" value="#ARGUMENTS.startDate#">
AND c.DateTimeClosed < <CFQUERYPARAM cfsqltype="cf_sql_date" value="#DateFormat(DateAdd('d', 1, ARGUMENTS.endDate), 'yyyy-mm-dd')# 00:00:00">
</CFIF>
AND c.LocationID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.locationID#">
AND c.CustomerID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.customerID#">
</CFQUERY>
All of this worked just fine before I added the lines:
<CFIF IsDefined("ARGUMENTS.encounter") AND IsObject(ARGUMENTS.encounter)>
AND c.EncounterID = <CFQUERYPARAM cfsqltype="cf_sql_integer" value="#ARGUMENTS.encounter.getID()#">
<CFELSE>
AND c.DateTimeClosed >= <CFQUERYPARAM cfsqltype="cf_sql_date" value="#ARGUMENTS.startDate#">
AND c.DateTimeClosed < <CFQUERYPARAM cfsqltype="cf_sql_date" value="#DateFormat(DateAdd('d', 1, ARGUMENTS.endDate), 'yyyy-mm-dd')# 00:00:00">
</CFIF>
Previously, it had just been:
AND c.DateTimeClosed >= <CFQUERYPARAM cfsqltype="cf_sql_date" value="#ARGUMENTS.startDate#">
AND c.DateTimeClosed < <CFQUERYPARAM cfsqltype="cf_sql_date" value="#DateFormat(DateAdd('d', 1, ARGUMENTS.endDate), 'yyyy-mm-dd')# 00:00:00">
With no IF/ELSE statement.
Anyone seen anything like this before? Any ideas?
Thanks.Right, I'll start disabusing myself of the DateFormat!
I'm sorry, I should've posted the actual query too. It's inserting the first part - "AND c.EncounterID = ....."
Here's the full query:
LOCAL.getEncounterServices (Datasource=xmddevdb, Time=9ms, Records=0) in /Applications/ColdFusion9/wwwroot/XMD_NEW/xmd_dev/cfc/ShoppingGateway.cfc @ 16:56:28.028
SELECT
a.EncounterProductID,
a.DateTime AS ServiceDate,
aa.CartItemID,
aaa.CartID,
aaaaa.CartStatus,
b.ProductID,
b.ProductName,
b.CPTCode,
b.Price,
c.EncounterID,
c.DateTimeClosed AS EncounterClosedDate,
d.FirstName,
d.LastName
FROM
EncounterProducts a
LEFT JOIN CartItemProduct aa ON (a.EncounterProductID = aa.EncounterProductID AND aa.Active = 1)
LEFT JOIN CartItem aaa ON (aa.CartItemID = aaa.CartItemID)
LEFT JOIN Cart aaaa ON (aaa.CartID = aaaa.CartID)
LEFT JOIN CartStatus aaaaa ON (aaaa.CartStatusID = aaaaa.CartStatusID),
Product b,
Encounters c,
Contacts d,
EncounterStatuses e
WHERE
1 = 1
AND (aa.CartItemID IS NULL OR aaaaa.CartStatus = 'Deleted')
AND a.Active = 1
AND a.ProductID = b.ProductID
AND a.EncounterID = c.EncounterID
AND c.PatientID = d.ContactID
AND c.EncounterStatusID = e.EncounterStatusID
AND e.EncounterStatus = 'Closed'
AND c.EncounterID = ?
AND c.LocationID = ?
AND c.CustomerID = ?
Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 28
Parameter #2(cf_sql_integer) = 16
Parameter #3(cf_sql_integer) = 6
Thansk again for the help! -
Rich Client Login fails from Infoview but works fine if opened from desktop
Hi Friends,
When i open WebI Rich Client from my infoview (By changing the preferrance settings in Infoview), it returns an error as "Login Fails" , but if i open the webI Rich Client from my Start->Programs->Business Objects XI 3.0->WebI Rich Client , it works fine. i am not sure why invoking rich client from infoview fails, but the same works fine, if opened directly from the desktop. I have only one user "administrator" Created with no password in the Enterprise.
Configuration:
Platform: Windows Xp
Type: Vertical Installation (All the servers and Presentation Layer in a single Box)
Boxi Version: BOXI 3.0
Authentication: BO Enterprise.
Any help in the regard is appreciated.
Regards,
Ram kumar G
Edited by: Ramkumar Govindasamy on Aug 11, 2009 9:58 AMHi,
Windows XP is not officially supported for a BOBJ server installation. Can you consider installing BO on a Windows Server machine?
Have a look prior to the installation at the Support Platforms document for BO XI 3.0. You can find this here:
[http://service.sap.com/bosap-support]
Regards,
Stratos -
I can SSH from the outside but cannot ping ISP gateway from 2911
Hello all,
I came across a rather strange issue. I am able to SSH to the device from my home but while I am consoled in, I cannot ping the ISP gateway or any other IP's. As expected, all trace-routes fail without hitting the gateway as the first hop. I have been reading about the NVI0 interface and I decided to use it. Most of the sample cofigs on here use the "old" ip nat inside / outside on the appropriate interfaces. What do you guys suggest?
Here is the running config. It is rather simple since i did not add all the access-lists except the ones I thought necessary to test the circuit. Please point out any mistakes or errors. Thanks in advance!
Current configuration : 1679 bytes
! Last configuration change at 04:05:17 UTC Fri Sep 12 2014
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname StandbyGZ-2911
boot-start-marker
boot-end-marker
enable secret 5 $1$BRaM$igChPMXLeHjgYR7EGk/Nb/
no aaa new-model
no ipv6 cef
no ip source-route
ip cef
no ip domain lookup
ip domain name StandbyGZ.local
ip name-server 211.136.20.203
ip name-server 211.139.136.68
multilink bundle-name authenticated
license udi pid CISCO2911/K9 sn FGL174410H9
username StandbyGZ secret 5 $1$CXWC$m6kqTGbf0HDLCvkfU7.RA/
ip ssh version 2
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
interface GigabitEthernet0/1
description UPLINK TO CHINA MOBILE
ip address 183.x.x.x 255.255.255.128
ip access-group REMOTE-ADMIN-ACL in
no ip redirects
ip nat enable
duplex auto
speed auto
interface GigabitEthernet0/2
description CONNECTION TO LAN SWITCH 3650-CORE
ip address 10.10.1.254 255.255.254.0
no ip redirects
ip nat enable
duplex auto
speed auto
ip forward-protocol nd
no ip http server
no ip http secure-server
ip nat source list LAN-NAT-ACL interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 183.x.x.x
ip access-list standard LAN-NAT-ACL
permit 10.10.0.0 0.0.1.255
ip access-list extended REMOTE-ADMIN-ACL
permit tcp host 68.107.195.213 any eq 22 log
control-plane
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
exec-timeout 0 0
logging synchronous
login local
transport input ssh
transport output ssh
scheduler allocate 20000 1000
end
StandbyGZ-2911# sh ip int br
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES NVRAM administratively down down
GigabitEthernet0/1 183.x.x.x YES NVRAM up up
GigabitEthernet0/2 10.10.1.254 YES NVRAM up up
NVI0 183.x.x.x YES unset up up
StandbyGZ-2911#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, + - replicated route
Gateway of last resort is 183.233.184.129 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 183.233.184.129
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.10.0.0/23 is directly connected, GigabitEthernet0/2
L 10.10.1.254/32 is directly connected, GigabitEthernet0/2
183.233.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 183.x.x.x/25 is directly connected, GigabitEthernet0/1
L 183.x.x.x/32 is directly connected, GigabitEthernet0/1Hi Chris,
That is what how I am used to configure the NAT, but IOS 12.3 and on introduced interface NVI0, which according to cisco documentation should make applying the NAT statements "easier". IP nat enable has to be enabled on all interfaces and then NVI0 makes the "inside" and "outside" decisions. I was hoping that someone could clarify the real use of that NVI0 interface and if it causes problems. Apparently it cannot be removed from the config. -
LOV works fine when run from JDEV
Hi OAF Gurus,
I have an issue with one of the LOV population.
It is an external LOV and I have created it as a seperate region and it works fine when I run from the Jdeveloper .
When I deploy it in the server,it throwing me an error with a OAF exception saying "java.sql.SQLException: ORA-01008: not all variables bound"
I have created a seperated controller for the external lov and initiate the query for it.
But when I click the About this page for the Region,it says theres no controller for the region.
How could this be solved?
Can this issue be tracked somehow?Answers plz as this is immediate.......
Regards,
Magesh.M.K.
Edited by: user1393742 on Jun 15, 2011 6:36 AMHi Gyan,
No I have not attached the controller through personalization.
My requirement is like
I need to create a lov item but I have to pass bind variables to the lov query.
I think this can be achieved only through external LOV, so I created an external lov and created a new controller for it and initiated the query and attached that to the normal page.
It runs fine through the Jdeveloper but when I deploy it, it is throwing an error saying bind variable not existing and I dont see a controller attached to the region.
Cannot understand whats the reason behind it?
Regards,
Magesh.M.K. -
Why are all of my purchases downloaded from the cloud but can't be played from iTunes?
I recently updated iTunes as prompted. Many of my songs disappeared. I was able to get most of them back. Some of the songs I purchased will not play in iTunes. I've checked my history, and it says that all songs were donwloaded. Why won't they play?
But I would think that the purchases would be saved onto my Itunes account and therefore redownload into my computer. I have been able to retrieve about 9 of the 20+ songs that I bought by syncing my phone however the other purchases are still not there. Also, when I go to the Itunes store and back to the purchases, the button you press to buy it says "PURCHASED" so I know I don't have to rebuy them. How do I redownload the music I purchased previously?
-
I'm trying to remove old apps off my phone, and they keep showing up. How do I get rid of them?
i was losing temper looking for an answer for this. at the end the trick is that you need to show the side bar then only your library will list the apps menu for you to access & start doing the deletion huhhhhh..
Itunes > view (menu bar) > show side bar > under library select apps > all apps list either active & deleted on your device will be displayed in tile view > then you start to delete by right clicking> finally empty recycle bin > -
see above
Follow the steps,
For Windows user,
1. Goto Bookmark backup module in firefox window.
2. Then select Documents and Settings Folder
3. Choose user account folder Ex: User
4. Then goto "Application Data" folder
5. Then choose "Mozilla"
6. Goto "Firefox"
7. Then goto "Profiles"
8. Choose "jj8doebi.default"
9. Then goto "bookmarkbackups"
10. Select the .JSON file that you want to restore the backup
Note that in order to visible the "Application Data" folder, you have to un-select "hide protected operating system files" option in Folder option. -
i have an hp3510 wireless printer that worked fine with both my i-pad and on my laptop when 1st installed. now it will only print blank pages with the i-pad although it still works fine when using my xp configured laptop. can anyone tell me how to correct the i-pad problem so that i can print wirelessly using that device?
thanks!
This question was solved.
View Solution.I would start by powering down the Apple device, make sure that you hold the power button down, and slide the bar on the screen to "Off". If you have more that 1 iOS device that you use with the printer (like another iPad or an iPhone) power them down at the same time. Then turn them all back on and try to print to the printer.
If still having a problem, I would then power down the printer, router, and Apple device.
1. Unplug the router, (most do not have an on/off button)
2. power down printer and Apple device
3. Wait about 20-30 seconds
4. Plug router back in and wait for it to be fully operational and all the light on it back as they were before unplugging it.
5.Power printer and apple device back on (check to settings of iPad to make sure that it is still on the same network as printer and that "Ask to join other networks" is ON).
6. Reattempt to print
I am a former employee of HP...
How do I give Kudos?| How do I mark a post as Solved? -
Does JNLP Sync up the software from the code base only at the startup?
Does JNLP Sync up the software from the code base only at the startup?
There appears a Source sync every time i startup the jnlp app from shortcut.
The users of JNLP application may enable the Internet mid of the application session and fail to get the updates.
If this case repeats for a period of time, there is a good chance of the app user being denied the code update.
Is this case holds true. Does JNLP syncs with the code base only at the startup.
Please explain..
Thanks In AdvanceAre you using versions (only 'Easy solution 2' works without)?*
No I am not using versions
Are you thinking of a background update or an on-demand update?*
background
Have you got all-permissions?
yes
Have you tried writing a small DownloadServiceListener and calling*
DownloadService.loadResource(myURLtojnlp, null, myDownloadServiceListener)*
Does anything happen?*
No. But, no problems trying it.
Easy solution 1*
If using versions and if you want an on-demand update you can launch and wait*
Runtime.getRuntime.exec("javaws -wait myURLtojnlp");*
and then you exit (need all-permissions to call exec, can try showDocument() otherwise).*
You should just have some way to know if the jnlp has changed (you could open an URLConnection and see if LastModified is after application start time).*
I am not using versions.
Easy solution 2:*
If you're just afraid of losing update, you can call BasicService.isOffline at application start, if true you set a timer that checks every 5 minutes, if you go online you call*
Runtime.getRuntime.exec("javaws -import myURLtojnlp");*
and you'll have resources updated, so they'll be good for next start (need all-permissions to call exec).*
You can call it with -wait and ask the user if he wants to restart the application*
Harder solution (here comes the bunch of code with DownloadService):*
you open an url connection to codebase, retrieve jnlp, parse it, for each resource you see if it's cached, if not:*
Solution 1: you tell the user you found updates and ask him to restart (or automatically restart after he pressed ok, with exec or showDocument).*
Solution 2: you download the resource (so that you'll have it even if user doesn't restart the app).You'd better do this in a separate Thread or have an interactive DowloadServiceListener cause service waits for download to end.*
I ll try the timer execution. Have to see weather web start puts up a downloading progress window on top of the application. I belive the DownloadService listener will be silent. I ll implement it and get back to you.
Thanks for your kind guidence.
I think your scenario is very difficult to happen, but I guess you must have your good reasons to ask.*
This scenario happens to my users as they switch on the client when the start their machine and runs for the whole morning. They switch on the internet for other purposes and shuts it down in an hour. Minimal chance of connecting the internet before the startup.
I get update towards the server through a similar timer based mechanism. I ll implement the code updates in the same mechanism.
Thanks. -
Program Error from running the *,exe file but works fine running with CVI
When starting CVI created program on Win 2000, I get message “Program Error”.
I have created a program using NI/CVI version 5.5. I am running windows 2000, I get message
“Program Error"
*.exe has generated errors and will be closed by Windows. You will need to restart the program.
An error log is being created.”
It works fine when running directly from the compilier, but if I run just the *.exe I get this error. I never used to.
Please let me know if anyone else had this problem or knows solution.
Thank you very much.
CraigIn the debugger unitialized globals are initialized to zero, but not for a release .exe. So if you are checking whether a global pointer is NULL before it is set to a value by your application it will generally work fine in the debugger but may crash as a release configuration depending on what you use that pointer for. That's a common thing I have run into.
-
When i tried to text a message from my contact list i received a message saying invalid number of digits. i used the area code with the number but still would not send
Call your carrier and see what they suggest.
-
Bootcamp won't launch, I've been getting the message "quit unexpectedly". This started happening after I erased "pre" from the code now I can't open it any more. What should I do?
Please try
sudo codesign --deep -fs - /Applications/Utilities/Boot\ Camp\ Assistant.app -
Why can't I download digital copies? Every time I attempt to download a movie, iTunes returns an error that the code is no longer valid. Thx.
Hi,
I have seen users reporting on the forum that there download is not working anf stucking up at 99% but when they try it out again say after a day or two then the issue gets resolved, I believe in the mean time the store team/web team fixed that issue. Did you tried it again? Any success?
Regards,
Ankush
Maybe you are looking for
-
Notes made on iPhone no longer show up in gmail on Mac.
They also are not in my iCloud mailbox. I can only find them on my Mac by opening the notes app and accessing iCloud notes. Is there a way to have them show up in gmail? OS is 10.8.5. iPhone is 4S iOS 7.1. Thanks
-
Hi Gurus, We have one issue,i.e,i am created one payment term "X",but at the time of picking the Invoice in MRIR T.code it is picking another payment term.So can i change the payment term manually in the MRIR T.code.suggest on this procedure. Thanks
-
Exchange Rate for planned delivery cost
Hi In one PO ( Document type NB with item category std) exchange rate for planned delivery charges ( Condition type FRC1) is calculated considering base date as document date of PO.( Exchange Rate is not fixed) while doing Goods Receipt In other PO
-
I am trying to enter to the Content Administrator and after I put the login data and click in Login button I get the following message: 503 Service Unavailable Dispatcher running, but no server connected! Details: No details available What can be t
-
XL Reporter - Unable to connect to DI
Hi, i have SAP Business One 2004 2B with patch level 40. I have installed XL Reporter version 6.70.01.00 and i have updated to 6.70.02.02. But when i open SAP B One appears the follow message. "Unable to connect to DI" Any advise for me? Thanks. Rafa