|
Okay, finally found the answer here... thanks Phil
http://blogs.msdn.com/phenning/archive/2007/08/08/remoteendpointmessageproperty-in-wcf-net-3-5.aspx[^]
It seems this was an after thought in WCF, but it is imho essential to have the ability to know who is calling my public methods, and how - even if it is just for simple logging or debugging.
I know the request may have been proxied accross the world, and that the physical 'sender' may not be reachable, and that the underlaying protocol may not be 'whatever', but I will 'always' want to access this kind of information.
It is simple really, someone calls me and I give them an answer - but only if I can see their number in the display. Maybe I just want to call them back later.
So to simply sum up what I wanted this for:
public void Subscribe(string MyCallbackProtocol, int MyCallbackPort, string MyCallbackInterfaceName){
string YourAddress = (I want to determine this! I want to call you back later.);
}
There are 10 kinds of people that understand binary, those that do and those that don't...
|
|
|
|
|
Hi,
I have a WebService-WS, WebApp-WA and DTOproject-DTO. I made a DTO, SZ, serializable and added it as reference to WS and WA. When I call webmethod WS.oneWS.method() it returns an array of WS.SZ where I need DTO.SZ. Am I missing something here apart from making SZ serializable? Please help me.
Thanks in advance.
|
|
|
|
|
Thanks in Adv.
How to forcefully Kill a Thread in VB dot net 2005
Best Of Regards,
Mirza Rahman
|
|
|
|
|
It's not really the proper way to stop a thread, but you just call it's Abort method.
someThreadIStarted.Abort
|
|
|
|
|
Thanks for Replying I tried this
like
Thread.abort
thread.resetabort
thread.suspend
But nothing works
It give error that Call is from some outside referenced Thread
|
|
|
|
|
What's the exact error message?? Are you trying to kill a thread your code didn't create?? Or are you trying to have a thread kill itself??
|
|
|
|
|
U need to create an event handler with a delegate and call it when needed.
Just google it
Best Regards
3ala2
|
|
|
|
|
I have a setup.ini file has the information below, created in .NET setup project
[MSILoader]
MSIFileName=Allianz-PHI-Setup-SW2.msi
[FXSection]
SupportedRuntimes=1.1.4322
InstallUrl=http://go.microsoft.com/fwlink/?LinkId=9832
Message=1.1.4322
UseDefaultMessage=1
The out put of the above setup projects are setup.exe, setup.ini & Allianz-PHI-Setup-SW2.msi
I need to install one more msi package during the setup.exe installation(that is internally calling Allianz-PHI-Setup-SW2.msi) like the same I need to add one more msi called sqlxml.msi.
I need to add the sqlxml.msi details into the setup.ini file so that both the packages will get installed.
Please advise
-
|
|
|
|
|
NICE TO MEET wrote: I need to add the sqlxml.msi details into the setup.ini file
Who told you that and where did they get their information?
|
|
|
|
|
Hi,
I have a VS2005 Setup & Deployment project and I want to use a Windows installer condition to check to see if a folder already exists (sub-folder in the Application Folder hierarchy). I used the condition 'NOT Installed' in the properties for my sub-folder in the File System tab, but it looks like it's installing the sub-folder every time. Is 'NOT Installed' the right property to check to see if a folder already exists, or is that only used to check if the application is installed or not?
Thanks
|
|
|
|
|
JBAK_CP wrote: I want to use a Windows installer condition to check to see if a folder already exists
See if this helps[^]
|
|
|
|
|
Where I work we have a support tool that does many custom fixes.
Our desktops in the business are all locked down and have restricted/minimal access to the Control Panel.
We currently log on as Admins to machines to get full functionality or do a RunAs on the require .cpl applet.
Is there a way we can remotley contol another machines control panel or individual control panel applets; so the other machines control panel appears on our machines, so we dont have to remote to other machines or log users off
Thanks in advance
|
|
|
|
|
What does this have to do with the .NET Framework.
And, no, you can't do this. Remote code execution is a HUGE security risk, and is therefore HIGHLY restricted. I don't know of any control panels that support remote management.
|
|
|
|
|
I have a .NET 1.1 project I am trying to create msi package in .NET 2005 version setup project. After the build of the setup project msi gets created but the exe is giving error.
Also one more thing, if I run an msi package that should call one more msi (that is that need s to install ane more package). How to add the second msi to this one.
-
|
|
|
|
|
NICE TO MEET wrote: but the exe is giving error
What is the error?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
if I open the exe it is saying, It has encountered a problem it needs to close
-
|
|
|
|
|
I have added CSS for my project and deployed it on testserver.but the changes is not reflected on test server but it is working on my local machine
|
|
|
|
|
Did you clear your web browser cache and try out?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
i wrote the coding like this how get the same space between the all line any one help me this coding get error message
Dim x As Int64
Dim DetailsS As String = Nothing
Dim strcolname As String = Nothing
Dim Isbn As String = Nothing
For x = 0 To DataGridView1.RowCount - 1
strcolname = DataGridView1.Rows(x).Cells(2).Value.ToString
Isbn = DataGridView1.Rows(x).Cells(10).Value.ToString
Dim strpad As New String(" "c, 13 - Len(strcolname))
DetailsS += strcolname + ":" + strpad + Isbn + vbCrLf
Next
TextBox1.Text = DetailsS
modified on Tuesday, February 10, 2009 3:06 AM
|
|
|
|
|
What error message, what line?
It wouldn't happen to be Dim strpad As New String(" "c, 13 - Len(strcolname)) would it?
|
|
|
|
|
First: What Is a User-Control Embedded Class?
A User-Control Embedded Class is a user-control with no U.I. but has a separate class (such as public class MyEmbeddedClass() { }) located just below the user-control's partial class, and the class is just like any other class, having properties, private and static methods (mostly static), etc., such that when the user-control is placed on a web page, only that webpage wherein the user-control is placed on can now call MyEmbeddedClass() methods.
And, in a web app that compiles on the fly, only that web page is impacted when MyEmbeddedClass (located in the user-class'es code-behind) is changed.
Usage:
Create a user control called classMyStuffcontrol.ascx, then add a SEPARATE class to it as follows
public class MyStuff(){
}
We'll pretend it is a decent sized class, having 12 or so static methods (functions), around 500 lines of code.
Focus #1: Now, this user control is needed on about 7 web pages and 3 other user controls.
1) Does this mean, in Focus #1, that there would be 10 instances of the class Mystuff (within classMyStuffcontrol.ascx), even though there are only static methods?
Focus #2: Now, one of those pages which already uses one of the user controls that has MyStuff() in use also needs access to the class MyStuff, so I add the MyStuffControl to the web page as well..
2) Does this mean that there are multiple instances of the class MyStuff for that webpage and user-control, both using classMyStuffcontrol.ascx, would there be 2 instances of the class MyStuff instantiated even though there are only static methods?
Now, before ya start asking "why", here's why I do this:
- some 3 years ago I was asked to create a single user control that did tons of stuff; no extra code files would be accepted. So I coded the whole thing in a single UI page and corresponding code-behind page (those 2 files were acceptable). The code behind had 6 separate classes which focused on a given set of tasks.
Soon after this, a different client asked for the same thing once they became aware that I had done something like this already. From there, it kept snowballing; client after client wanted similar output (1 or 2 files containing all the code for a big solution.
After 6 months, I set aside this 'practice', but a few months later started using it wherein only a single class was associated to a single user-control. Now, there are still the universal / web-app-wide classes I used, but alot of the other classes were specific to a given area, and/or not used as much as a webapp-wide class would be used.
What this permitted was my ability to change the user-control embedded class, affecting only those web pages (wherein an on-the-fly compile took care of it) versus a web-app restart (such as what occurs when the web.config file is changed).
Have I described this enough such that you would be able to provide feedback as to its usefulness and/or practicality? Specifically, am I asking for trouble down the line or are user-control embedded classes, when used in moderation, a reasonable solution?
Thx.
ASP ~ Apple Simply Performs
|
|
|
|
|
While I can't say that I fully understand what you are trying to accomplish, it sounds like your trying to separate concerns. You want your UI markup to be separate from the code that controls it. If that is the case, and you are trying to separate concerns, I highly recommend you look into the MVP and MVC patterns. Both are designed to achieve a separation of concerns, separating UI from the code that controls it, allowing the two to be developed independently. In addition, its possible to use a single presenter or controller (logic) with multiple views (ui).
|
|
|
|
|
I use .Net's on the fly compile in for web-apps. I'm seeking to reducing the number of web-app restarts.
If I have a general ClassName.cs file in the web-app App_Code folder and I change code in that file, the whole web-app will restart, and this causes current web sessions to become invalid.
Keep in mind that this general ClassName.cs file has code that is only used on specific pages, not throughout the whole web-app.
So, I take that class and put it into the code-behind of a user-control; I call this a User Control Embedded Class, or UCEC. When I update code in the embedded class, only those pages to which the User Control has been added are recompiled on the fly versus the whole web-app, which results in a web-app restart / lost sessions.
I do understand what MVC and MVP provide, and even in those patterns I use UCECs.
ASPX ~ Apple Simply Performs eXcellently
|
|
|
|
|
How can I tell my program to run under every system-setting with the NumberFormat of "en-US"?
I used this for a part of my project, but I am sure there is a way to tell the program once the "right" format and to use it then by default in the whole program.
Globalization::CultureInfo^ culture = gcnew Globalization::CultureInfo( "en-US",false );
Globalization::NumberFormatInfo^ format = culture->NumberFormat;
double value = Double::Parse(stringValue, format);
|
|
|
|
|
You can set the culture on the current thread:
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false);
|
|
|
|