Here's the scenario:
You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session.
Please note that this is the not the same as just retrieving the current interactive user.
I'm guessing that there is some sort of API access to Terminal Services to get this info?
Anybody knows how to debug a web service hosted by an IIS in a Silverlight 4.0 application?
My IIS version is 7.5 and my operating system is windows 7.
Can you please specify the steps on how to?
Thank you so much
I recently discovered the GDB in Xcode which makes up for some functionality which IMHO seems to be lacking in Xcode.
So I can do the following in GDB:
(gdb) po [LoginManager sharedSession].loginToken
20D52FE9-3573-437E-9A65-846572B63726
However, I have another Service class, which is currently not loaded so I get the following error:
(gdb) po [SessionService displaySessionInfoForToken:@"XXX"]
No symbol "SessionService" in current context.
I don't understand why the LoginManager can be loaded but not the SessionService.
Can someone help me resolving the following issue:
When trying to connect from iPad app to SAP ECC system through ODATA channel services via SUP, it is allowing me to login for the first time and could retrieve the data successfully from SAP system. But when I logout and try logging in again with the same session, application gets crashed. Below is the crash report for your reference.
I am using SDM Parser to connect the SAP system.
SDMODataServiceDocumentParser *sdmDocParser = [[SDMODataServiceDocumentParser alloc] init];
[sdmDocParser parse:aServiceDocument];
m_serviceDocument = sdmDocParser.serviceDocument;
//Load the object with metadata xml:
SDMODataMetaDocumentParser *sdmMetadataParser = [[SDMODataMetaDocumentParser alloc] initWithServiceDocument:m_serviceDocument];
[sdmMetadataParser parse:aMetadata];
After initiated the service, setting the URL.
[service setServiceDocumentUrl:m_serviceDocumentURL];
Using SDMconnectivityhelper to connect the URL
id<SDMRequesting> serviceDocumentRequest2 = [connectivityHelper executeBasicSyncRequestWithQuery3:[[ODataQuery alloc]initWithURL:[NSURL URLWithString:encodedStrUrl]]] ;
- (id <SDMRequesting>)executeBasicSyncRequestWithQuery3:(ODataQuery *)aQuery
{
id<SDMRequesting> request = [self createRequestWithQuery:aQuery];
[request setTimeOutSeconds:TIMEOUT_SEC];
[request setRequestMethod:@"GET"];
[request addRequestHeader:@"Content-Type" value:@"application/xml"];
[request startSynchronous];**[App getting CRASH in this line]**
return request;
}
- (id <SDMRequesting>)createRequestWithQuery:(ODataQuery *)aQuery
{
if (isSUPMode)
{
[SDMRequestBuilder setRequestType:SUPRequestType];
}
else
{
[SDMRequestBuilder setRequestType:HTTPRequestType];
}
id <SDMRequesting> request = [SDMRequestBuilder requestWithURL:aQuery.URL];
request.username = self.username;
request.password = self.password;
return request;
}
Crash Report:-
Incident Identifier: 347511BA-5F7F-45D4-8662-D5DCD2F88EA7
CrashReporter Key: 9a4d38cf19b1a94476eb6b2170d4f56678d6ca60
Hardware Model: iPad3,4
Path: /var/mobile/Applications/F38AD64F-03F8-4A21-
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
Triggered by Thread: 0
Thread 0 Crashed:
0 libsystem_platform.dylib 0x393a94c0 _platform_memmove$VARIANT $Swift + 160
1 Eby Sales Order 0x0015a2c8 0xb7000 + 668360
2 Eby Sales Order 0x0015a8b8 0xb7000 + 669880
3 Eby Sales Order 0x003331ee 0xb7000 + 2605550
4 Eby Sales Order 0x0031856e 0xb7000 + 2495854
5 Eby Sales Order 0x00338454 0xb7000 + 2626644
6 Eby Sales Order 0x000e6ad8 0xb7000 + 195288
7 Eby Sales Order 0x000e99a0 0xb7000 + 207264
8 Eby Sales Order 0x000ea442 0xb7000 + 209986
9 Eby Sales Order 0x000eb0d6 0xb7000 + 213206
10 Eby Sales Order 0x000c13d0 0xb7000 + 41936
11 Foundation 0x2ec93112 __NSFireDelayedPerform + 410
12 CoreFoundation 0x2e27ef4c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
13 CoreFoundation 0x2e27eb66 __CFRunLoopDoTimer + 790
14 CoreFoundation 0x2e27ceee __CFRunLoopRun + 1214
15 CoreFoundation 0x2e1e7764 CFRunLoopRunSpecific + 520
16 CoreFoundation 0x2e1e7546 CFRunLoopRunInMode + 102
17 GraphicsServices 0x331216ce GSEventRunModal + 134
18 UIKit 0x30b4688c UIApplicationMain + 1132
19 Eby Sales Order 0x000bd8da 0xb7000 + 26842
20 Eby Sales Order 0x000bd89c 0xb7000 + 26780
hi all, i want to develop a program that will process images and show all esxisting images with details like "picasa photo viewer",also i have a windows service that gathering new images,it will run under "Local System Account",but in limited user account my program don't work,how i can run my program from limited user account ? thx for ur time
I try in a test version of DBArtisan to set up a datasource and register
both servere as localhost, database to use, my username and password,
but, when testing the connection, I get message that connection failed.
Hooking up from eg. Delphi and other utilities run nicely. But not
DBArtisan,
Is MySQL 5.0 not supported yet ??
Or is it WAMP that is the culprit naming the service wampmysqld insted of just mysqld ??
I am trying to find out if I can get notified when a site is down, or when a service running under WAS is no longer running.
I don't want to code a monitoring tool, I am sure there must be something out there...
hi
im using this, the first one - 16.1 Example A Preferences
(sorry for the link)
Cant for the love of android not get this to work
I want to click that CheckBox witch is connected to the autosave PreferenceActivity
and at the same time clicking it I want to fire an event to a method in the Activity that started the PreferenceActivity. There i will start a service.
`` Sigh hope you understand the probl.
Using Spring as Framework, if i need provide business logic's service to either JSP/Servlets(on Web Servers) or to Application desktop client or Mobile clients, the only way to accomplish the logic business(without EJB) in a remote server is through Servlets?
Hello everyone,
I am working on one real estate website which is Using RETS service to get the data to my local server.
but I have one little bit problem here,I can fetch data from RETS which is having about 3lacks record in RETS Database but I didn't find the way,How can I fetch that all records in bunch of 50k at a time ?
I didn't find any 'LIMIT' keyword on RETS.so how can I fetch without 'LIMIT' 50k records at a time?
Please help me.
I have a mini API that is only for an app I have built. The API service is on a separate domain to my app. I make jsonp calls to it and receive json in return.
Therefore I only want my app to be able to access it. Can I just list a series of IP addresses for my app and allow them? Is there a better way to stop requests from anyone else to my API?
I have the following problem. I have a webservice, which accepts a post request with some json data in the request body and which also returns Json data.
Now I want to build a user friendly HTML page to test this service. I have a form to fill in data, when the user clicks the button, the JSON should be build from the form data and POSTed to my webservice, the response should be displayed to the user. How do I achieve that?
In order to achieve this effect, I would like to know how I can make the WebBrowser to scroll up when new content is added to the HTML page?
"Allow more entries to be displayed in the view: When the user clicks more, additional entries should be displayed in addition to the ones which are already displayed. The code should cause the UI to scroll such that the first entry of the "more" set is on top".
I am using com.ibm.rcp.browser.service.WebBrowser which is similar to SWT WebBrowser.
I'm doing some initial research on smart phone development, and I noticed that Android and Windows Mobile both support c++ for application development. I was curious if anyone had any experience trying to manage shared files between both Android and Windows Mobile, and to what extent that code can be shared? e.g. no user interface can be shared, but web service and business logic classes can be shared, etc.
I have two applications, and one is keeping sending live images to the other and it need to be long-running.
WCF - is it suitable?
TCP/IP directly?
Service bus, NServiceBus?
Is there any better alternative for this communication?
Hi. I'm sending data to a web service through the MSXML2.XMLHTTP40 object. It's works fine in the development enviroment, but IIS is unable to send the data (long wait and then IIS close the connection). I must configure some in IIS in order to enable XMLHttpRequest ?
I'm using a Windows Service to do some directory cleaning (implementing a FileSystemWatcher).
The problem I'm having is that sometimes, when several files in a directory are deleted, one of the files still shows in the Explorer window. If you refresh the window the file disappears. Similarly, if you right-click on it or try to copy it, a pop-up informs that it no longer exists.
So what I'd like to know is: is there any way I can programmatically refresh the view of the Explorer window?
Hi
I want to add "Sharing documents" feature to my app, like in google documents service. As i see:
User can:
can list/view/create/edit/delete own documents
share own document to everyone - its a public document
share own document to another user with read-only access
share own document to another user with read-write access
view list of own documents and users to whom he gave permission to read and write
view list of foreign documents
view/edit foreign document with read/write permissions
Please tell me, which permission/authorization solution is preffered for my task?
I am making a windows service to be able to run operations on a sql server database (insert, edit, etc) and invoke Stored Procs.
However, is there a way for me to know the type of the SP? When invoking from C#, I need to knof if it is returning 1 value, or more, or none (so I can use executereader, scalar, etc)?
Thanks
Hello,
I am interested to filter forum posts containing pornographic material and flag it.
I am using ASP .Net with C#.
Do you have any service in mind which I can use? Any other suggestions?
Thanks
I'm trying to write a simple/small Windows Communication Foundation service application in Visual Basic (but I am very novice in VB) and all the good examples I've found on the net are written in C#. So far I've gotten my WCF service application working but now I'm trying to add callback functionality and the program has gotten more complicated. In the C# example code I understand how everything works but I am having trouble translating into VB the portion of code that uses a delegate. Can someone please show the VB equivalent?
Here is the C# code sample I'm using for reference:
namespace WCFCallbacks
{
using System;
using System.ServiceModel;
[ServiceContract(CallbackContract = typeof(IMessageCallback))]
public interface IMessage
{
[OperationContract]
void AddMessage(string message);
[OperationContract]
bool Subscribe();
[OperationContract]
bool Unsubscribe();
}
interface IMessageCallback
{
[OperationContract(IsOneWay = true)]
void OnMessageAdded(string message, DateTime timestamp);
}
}
namespace WCFCallbacks
{
using System;
using System.Collections.Generic;
using System.ServiceModel;
public class MessageService : IMessage
{
private static readonly List<IMessageCallback> subscribers = new List<IMessageCallback>();
//The code in this AddMessage method is what I'd like to see re-written in VB...
public void AddMessage(string message)
{
subscribers.ForEach(delegate(IMessageCallback callback)
{
if (((ICommunicationObject)callback).State == CommunicationState.Opened)
{
callback.OnMessageAdded(message, DateTime.Now);
}
else
{
subscribers.Remove(callback);
}
});
}
public bool Subscribe()
{
try
{
IMessageCallback callback = OperationContext.Current.GetCallbackChannel<IMessageCallback>();
if (!subscribers.Contains(callback))
subscribers.Add(callback);
return true;
}
catch
{
return false;
}
}
public bool Unsubscribe()
{
try
{
IMessageCallback callback = OperationContext.Current.GetCallbackChannel<IMessageCallback>();
if (!subscribers.Contains(callback))
subscribers.Remove(callback);
return true;
}
catch
{
return false;
}
}
}
}
I was thinking I could do something like this but I don't know how to pass the message string from AddMessage to DoSomething...
Dim subscribers As New List(Of IMessageCallback)
Public Sub AddMessage(ByVal message As String) Implements IMessage.AddMessage
Dim action As Action(Of IMessageCallback)
action = AddressOf DoSomething
subscribers.ForEach(action)
'Or this instead of the above three lines:
'subscribers.ForEach(AddressOf DoSomething)
End Sub
Public Sub DoSomething(ByVal callback As IMessageCallback)
'I am also confused by:
'((ICommunicationObject)callback).State
'Is that casting the callback object as type ICommunicationObject?
'How is that done in VB?
End Sub
I've gone through ODBC API searching for a function that can extract information of a data source. The closest I found is SQLDataSources that enumerates all data sources and gives you the DSN name/description.
But specifically I would to extract the TNS service name of an Oracle data source. This property appears in the registry under ServerName but I found no way to access it through an API.
hello,
Can we change the color of the table view title the string which i am showing appears in gray color can we choose color for it .Is there any property of table view title
i am not asking for table view header or footer i mean the title
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
// Keep space in the following line ........ DONT REMOVE
return [NSString stringWithFormat:@"Select your service:"];
}
I am busy working on a java app to run on blackberries but on some devices i am testing on, the code does not seem to be working and im having a hard time pinpointing where the problem lies.
My question is: Could the problem with some phones working and not working have t odo with the type of network they are running on such GSM vs CDMA and would the code that stops working on some devices be in one of the following areas:
1) Listeners - such as MessageListener and Phone Listener
2) UI Objects - simple test labels and buttons
3) Connection to a web service using ksoap2