|
you might create a (temporary) memory-resident file system, create a file in there, and execute it. Google + some stamina required.
klik[^]
modified on Tuesday, September 8, 2009 1:04 PM
|
|
|
|
|
Luc Pattyn wrote: you might create a (temporary) memory-resident file system, create a file in there, and execute it. Google + some stamina required.
I was going to suggest writing his own Loader in place of Windows version, but I thought it would have been a bit too overboard.
|
|
|
|
|
Dave Kreskowiak wrote: a bit too overboard.
Nah. If and when we go too overboard, we get a "plz send me the code" reply to straighten us out.
|
|
|
|
|
Hi all
I've made a web service client, that I'm going to use to call a public web service.
But I keep getting this error:
Could not find endpoint element with name 'basicHttpEndpoint' and contract 'oes.dk.NavisionStatIntegrationService.INavisionStatIntegrationService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.
I'm rather new at this web service thing, so I'm not sure what to do here.
I've been browsing the net for answers but nothing good has come up.
This is the client part of the app.config:
<client><br />
<endpoint address="https://test3.oes.dk/NavisionStatIntegrationServiceTest/NavisionStatIntegrationService.svc"<br />
binding="basicHttpBinding" bindingConfiguration="basicHttpEndpointBinding"<br />
contract="oes.dk.NavisionStatIntegrationService.INavisionStatIntegrationService"<br />
name="basicHttpEndpoint" /><br />
</client>
The code I call:
proxy = new NavisionStatIntegrationServiceClient("basicHttpEndpoint");<br />
proxy.ClientCredentials.UserName.UserName = this.UserName;<br />
proxy.ClientCredentials.UserName.Password = this.Password;<br />
this.NSResponse = proxy.InvokeNavisionStatIntegration(this.companyIdentifier, this.immediateExecuting, this.NSRequest);<br />
return this.NSResponse;
This is the code for the NavisionStatIntegrationServiceClient:
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]<br />
[System.ServiceModel.ServiceContractAttribute(Namespace = "http://www.oes.dk/NavisionStatIntegrationService/2009/05/25", ConfigurationName = "oes.dk.NavisionStatIntegrationService.INavisionStatIntegrationService")]<br />
public interface INavisionStatIntegrationService<br />
{<br />
[System.ServiceModel.OperationContractAttribute(Action = "http://www.oes.dk/NavisionStatIntegrationService/2009/05/25/INavisionStatIntegrat" +<br />
"ionService/InvokeNavisionStatIntegration", ReplyAction = "http://www.oes.dk/NavisionStatIntegrationService/2009/05/25/INavisionStatIntegrat" +<br />
"ionService/InvokeNavisionStatIntegrationResponse")]<br />
string InvokeNavisionStatIntegration(string companyIdentifier, string immediateExecuting, string NSRequest);<br />
}
|
|
|
|
|
You'll get a much better response if you post this in the WPF/ WCF / WF forum instead.
|
|
|
|
|
|
Please verify that the .config file is copied together with the exe. The config has the same name as the exe, e.g. MyApp.exe.config. Check if this file has the client-element within.
If the file is missing, right-click on App.config in the Project Explorer ro open the properties and select "Copy always".
Regards
Sebastian
|
|
|
|
|
The .config file is copied together with the .dll and has the same name, Application.dll and Application.dll.config.
The config has the client element from my original posting.
Best regards
Soren
|
|
|
|
|
Well, that is not really how it is working. If you are using the dll within an application, you have to put the client-definition in the config-file for the application.
|
|
|
|
|
I didn't know that but tried it out.
It worked like a charm.
Thx for the input.
|
|
|
|
|
The solution was to put the system.serviceModel part of my .config into application.exe.config.
My original .config was application.dll.config.
This was done, because my .dll was to be called from a foreign program, and I didn't know that the configuration had to be done in that program.
Thx for the input.
|
|
|
|
|
how can i convert an int number to hex?
|
|
|
|
|
someInteger.ToString("X8")
|
|
|
|
|
Cool - I've never spotted "X8".
I've always used the Convert class
Convert.ToString(intValue, base)
|
|
|
|
|
unfortunately there is no similar code for octal or binary, things people around here seem to want often.
|
|
|
|
|
Yeah, that's probably why I've stuck with Convert - only one thing to remember!
There's been few times binary literals would have been useful too...
|
|
|
|
|
|
you're welcome.
|
|
|
|
|
hi,
I developed windows application. In that I used web service. with use of web service I am fetching data from database and stored it into the cache.
cache contains datatable which contained data that comes from the database through web service. Now I want to update the datatable which is stored into the cache. I dont want to update the original database values.
Thanks
sjs4u
|
|
|
|
|
sjs4u wrote: I dont want to update the original database values.
What is the problem?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
I just want to update the datatable..I dont want to update the database.
and these data I want to store it into the cache so that it will be available to other form.
Thanks
sjs4u
|
|
|
|
|
Hi,
I used the delegate, Microsoft.Office.Interop.Excel.DocEvents_ChangeEventHandler, to track the changes in excel workbook.
Excel.DocEvents_ChangeEventHandler EventDel_CellsChange;
EventDel_CellsChange = new Excel.DocEvents_ChangeEventHandler(CellsChange);
xlSheet1.Change += EventDel_CellsChange;
It executes whenever the cell content gets changed.
But its not handling the automatic changes like function changes. Its handling only manual changes.
For example,
A1=10
A2=20
A3=SUM(A1,A2)=30
If A1 value changes to 15, then A3 changes to 35. I'm able to handle the change in A1(15), but couldn't able to retrieve the A3 cell changes. Please guide me to handle the automatic function changes.
Thanks in advance..
|
|
|
|
|
Hi everybody,
I have an tool that reads an file. That file has for example the follow content:
²{öï#°ÿùpO¬[ÿùpO¬ÿùpO¬¿ÿùpO¬ñÿùpO#ÿùpONÿ
I would like to search for repeated character combinations like the bold characters. The character combination ùpO repeated 6 times.
I would like to return some top 5 with the most repeated character combinations. Something like this:
ùpO : 6 times
xyz : 5 times
ab4 : 3 times
ab : 2 times
66 : 2 times
This is the code that reads the file:
string path = @openFileDialog1.FileName;
try
{
using (FileStream fs = File.OpenRead(path))
{
byte[] b = new byte[1024];
UTF7Encoding temp = new UTF7Encoding(true);
while (fs.Read(b, 0, b.Length) > 0)
{
textBox1.Text += temp.GetString(b);
}
}
}
Thanks!
|
|
|
|
|
if you want to clculate how many each char repeat you can use this:
string[] s;
s=File.ReadAllLine(@"file name.txt");
int[] c=new int[255];
for(int y=0y
|
|
|
|
|
I dont whant to count each character. I would like to discover some repeated character combinations.
|
|
|
|