|
Hi All,
Does anyone knows how to connect to multiple dynamic endpoints from a WCF Client?
I cant use svcutil.exe to generate proxy.cs because the
services are only exposed during runtime. I did some research on ChannelFactory, but dont seems to get what i want.
Any Help with be appreciated.
Thanks in advance.
|
|
|
|
|
Hello,
I am very exited about the new namespace in .NET 3.5, System.Net.PeerToPeer. Can someone please post some sample code (preferably in C#). I have never written a p2p application before.
|
|
|
|
|
|
Have you looked on msdn?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi all ,
I have a .Net Application that is going to be used in a workgroup environment , I installed the app on the server machine and the suftware runs successfully and connects to sql server with no problem , I also installed prerequisites such as .Net framework 2.0 on lient computer and shared the app folder which is located on server machine . on client machine , When I want to run the app from UNC FileShare I get fatal error that asks to send error to microsoft , but when I copy the entire folder from UNC FileShare to local client , the app connects to server successfully and user can work with software. What's is the problem in your opinion?
Note : I also made the shared folder FullControl and also adjusted Entire Zone in Microsoft .Net Framework 2.0 Configuration to FullTrust(On Server machine) , What causes this problem you think?
Thanks in advance (Emergency!)
|
|
|
|
|
It's called "Code Access Security". Any code running from a non-local (i.e.: Shared folder or other network source) is NOT trusted by default. You have to tell the .NET CLR to trust the code comming from a certain source.
Read this[^] post and follow the three links in it.
|
|
|
|
|
Thanks But ,
I had made entire zone(My Computer,Local Interanet , Untrusted sites,Internet , Trusted Sites) to FullTrust and also Code Access Security for All_Code of Enterprise,Machine and User Level to FullTrust before ,
Note : I don't get security exception , I receive the following error :
" myAppName has ecountered a problem and needs to close , sorry for inconvenience ....."
modified on Thursday, December 27, 2007 12:53:19 AM
|
|
|
|
|
Hi,
I just started playing around with the 3D functionalities in WPF and have a problem now:
I have a ViewPort3D to which I added a cube. To one side of this cube I have applied a material like this:
MeshGeometry3D plane = new MeshGeometry3D();
Point3DCollection points = new Point3DCollection();
points.Add(new Point3D(p1X, p1Y, p1Z));
points.Add(new Point3D(p2X, p2Y, p2Z));
points.Add(new Point3D(p3X, p3Y, p3Z));
points.Add(new Point3D(p4X, p4Y, p4Z));
plane.Positions = points;
Int32Collection indices = new Int32Collection();
indices.Add(0);
indices.Add(1);
indices.Add(2);
indices.Add(0);
indices.Add(2);
indices.Add(3);
plane.TriangleIndices = indices;
PointCollection texturePoints = new PointCollection();
texturePoints.Add(new Point(0, 0));
texturePoints.Add(new Point(0, 1));
texturePoints.Add(new Point(1, 1));
texturePoints.Add(new Point(1, 0));
plane.TextureCoordinates = texturePoints;
ImageBrush brush = new ImageBrush();
brush.ImageSource = new BitmapImage(new Uri(@"C:\test1.jpg"));
DiffuseMaterial material = new DiffuseMaterial(brush);
GeometryModel3D result = new GeometryModel3D(plane, material);
Everything work fine with "small" images. I have a supa dupa cube with a clear texture. But if I use images where the width or height has more than 2000 pixels than I see a weird tiled result on my cube. Has anyone here had any problems with large images in 3D WPF? Any hints are appreciated.
Robert
|
|
|
|
|
Hi,
how do I change the Registry-Key permissons from my own tool?
Under Vista the Key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing is owned by the trusted installer and so also Administrators only have read permissions. But I must write into the Key. So, how do I change the permissions for the admin group to full access?
Is there a function to do this?
thx
André
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
There are no managed code functions that can do this. You could do this by using some interop to the native API's, but I don't recommend it. Why do you need to write to this key any time other than at install time? If you just need to store run-time information, there are other registry keys that your application has access to that you should be using instead. If you actually need to change this key, you need to learn how to do it the correct way and play properly within the permissions by using a manifest file for your application and splitting that feature out into a separate module (application) that can run with elevated privileges or make your entire application require elevated privs to run (not recommended as well).
|
|
|
|
|
Hi Scott,
Scott Dorman wrote: Why do you need to write to this key any time other than at install time?
Sorry can't talk about it, but I must add a key into this folder.
What are the Win32 API functions to change the permissions?
André
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
You can try these articles for more information:
http://blogs.msdn.com/asanto/archive/2006/01/22/516009.aspx[^]
http://www.thescripts.com/forum/thread259111.html[^]
However, you are still probably better off doing this the "right" way and either doing this only at install time, or write the application following the Vista security rules (using application manifests, etc.) If you must do this, you will need to either run the application with admin privileges or launch a separate elevated process (application) that manipulates this key in response to the user clicking a button, etc. that will prompt for credentials. You might also be able to get around this by running in XP Compatability mode, but that's just a workaround.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]<</div>
|
|
|
|
|
Im writing a program to monitor my horrible Wlan card, and id like to include the signal strength there. Now the problem is that i cant find a property for signal strength anywhere.
Microsofts WLan API is more geared towards managing(connecting and profiling SSIDs) from what ive seen, and NetworkInterfaces dont apply directly to wireless cards and hence dont have this property.
Any help on this?
|
|
|
|
|
I think the only place you're going to be able to get this is from the card's driver. There's no API that I can find to give you this information easily.
The problem with going the driver route is that there really isn't going to be any documentation on it. Your research skills will have to be top-notch to get this. And by "research" I don't mean just Googling until you find the answer. I mean reading how others have done it (mostly on UNIX systems from what I can see) and writing test code to find out what it really does and what might and might not work for you and your card.
|
|
|
|
|
Ah bloody crikes
Lucky that I have a noname wifi card which not even google can get me new drivers for..
EDIT: Ah, apparently the Wifi API from microsoft does have this after all, it was just not with the rest of it.
Thanks anyway
|
|
|
|
|
pansartax wrote: EDIT: Ah, apparently the Wifi API from microsoft does have this after all, it was just not with the rest of it.
Care to post the link to it?
|
|
|
|
|
|
Silly me. I was searching for singal strength. It never occured to me to use "Quality" instead.
|
|
|
|
|
Hi i have general doubt,
Number of systems connected in one work group,
If they give the system name and project name the project is working in other system,
Example:System name is ravi and the projectname is webapp1
So if another system guy give http://ravi/webapp1 then the project is working on that system,
Same thing if i did means i have one project its working in my system
So if another one give http://magesh/Myproj then its showing the page cant be displayed,
whats the probs ?, where i have to change the settings to browse my project in LAN workgroup contained system?
Plz give me abt that
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I would like to know which would take precedence?
If the timeout is set at 20 minutes in IIS and 30 minutes in web.config - at time would the application timeout?
Thanks.
|
|
|
|
|
web.config as far as I know .. you could test it easily yourself if you want to be more sure .. in global.asax, write some code in session_start and session_end to save the current time in a log file ..
For example, in global.asax:
void Session_Start(object sender, EventArgs e)
{
using (StreamWriter sw = File.AppendText(Server.MapPath("/session.log")))
{
sw.WriteLine(String.Format("Session started at {0}", DateTime.Now.ToString()));
}
}
void Session_End(object sender, EventArgs e)
{
using (StreamWriter sw = File.AppendText(Server.MapPath("/session.log")))
{
sw.WriteLine(String.Format("Session ended at {0}", DateTime.Now.ToString()));
}
}
and don't forget to add this at the top of the global.asax file (just below <%@ Application Language= ... ):
<%@ Import Namespace="System.IO" %>
modified on Wednesday, December 26, 2007 12:16:37 AM
|
|
|
|
|
Hello.
I have developed a simple communication system as a website where my site users can send messages to each other after logging in. I store the messages in SQL Server. I store the subject, body and other common properties of a message. What I need now is to make my web application POP3- and SMTP-enabled. So that I not only store my messages in my database, i prove my users with email addresses on my website like user1@mydomain.com, so that incoming emails to this address, will be intercepted and I can show each user his messages. Also they can send messages, not only to the internal users of my system, but everybody who owns an email. I think I should let my application talk in POP3 and SMTP language.
On the net, I found some useful articles. One described how to use socket programming to save the message on the server side in a folder. But the problem is that who is gonna send it at the end? IIS? But what if I myself want to send it? What should I do to send a queued message to the recipient's address?
Please if anybody has any experience in this field, help me out.
Thanks in advance.
|
|
|
|
|
Hello
I am creating a setup project in VS2005. It is generating a .msi and setup.exe. I want to genearate only one .exe file that contains .msi and setup.exe. The output file should be with .exe extension.
Pls help me.
Thanks and regards
Yudhisthira Attry
|
|
|
|
|
That cannot be done using the setup projects in Visual Studio. You'll have to use a third party installer product, like Wise For Windows Installer or InstallShield, or some other to do this.
In either case, the installer .EXE will have to be something like a self extracting ZIP file, unpacking the .MSI file to a temp folder and running it from there. Windows Installer will only work with .MSI files, not .EXE's.
|
|
|
|