Why can't I create a assembly for silverlight and usual .NET?
Why can't I create a assembly for silverlight and usual .NET? ...
Why can't I create a assembly for silverlight and usual .NET? ...
I am considering establishing an encrypted connection from a .NET app toward a remote MySQL database. According to the manual, there is a SSL Mode option to do that. The example provided in the tutorial rely on a client X509 certificate. Is the client certificate absolutely needed, or can I just connect with SSL Mode=Required and a login...
I have added references to the "System.ServiceModel" library, but the "WebHttpBinding" class is not in it. According to the documentation, it should be there (WebHttpBinding). I have tried this with both the 3.5 and 4.0 frameworks. Thanks for any help. ...
I'm using Visual Studio 2010 and C# to write a web service that requires special handling that I'm solving by rolling my own SoapExtension. This SoapExtension is of course implementing the ProcessMessage method. This is all fine, but for some reason this ProcessMessage is being called twice (two, 2 times) for each of the Stages of the S...
There are reports of this kind of problem in their own forum Telerik, and some comment saying it is not possible. That only works with InputManager components. But in my case, I need to have both features, I need to use components from Telerik () with validations. Some friends know me suggest some solution. Whether using Ajax or some o...
I am writing an application in C# that requires me to create an Array object on the fly from some dimensions the user passes in. The Array.CreateInstance() method can throw (by last count) 6 different exceptions that I would want to handle. For each exception I would want to inform the user by a simple MessageBox.Show() and a message tai...
I'm using a web cam that takes 320 X 240 pictures. This sort of gives the picture a "landscape" look to them, and I need to re-size the pictures to a 169 X 225 "portrait" picture. Its for a badge program. Anyway, when I re-size the pictures, they get all scrunched up because of the difference in aspect ratio. Is there a way to re-siz...
Hello - Using the ultra-simple code below, as soon as I press a key on my keyboard while the form is in focus, the form completely locks up. I'm running this inside of F# interactive. The only way to close the form is by clicking "Reset Session" in F# interactive. I've tried adding event handlers to KeyPress, with the same results. I've...
I'm trying to create a COM Interop assembly (myComInterop.dll) between my vb6 app and a .net assembly. I'm also trying to make it so that it can be "registration free" (see here for explanation). The freedom from registration requires that I create a MyVb6App.exe.manifest file, and also that I use a strong name to sign myComInterop.dll...
Is there an easy way to do this or do I just need to go through each record and insert it into whatever data structure I go with? I need it in this format in order to pass it to a third party software called Aspose. ...
Question: I created an ASP.NET web application. Now it originally was meant for deployment on a webserver. That is working, so, so far so good. My question now is: Is it possible to deploy it as a desktop-application, too? That is to say the installer installs some kind of server, plus the web application, configures the server to run...
Between these two: With Property: class WithProperty { public string MyString {get; set;} } With Field: class WithField { public string MyString; } Apparently I'm supposed to pick the first one. Why? I've heard the argument that the point here is to allow interface changes, but if I have the second one, and change it to t...
I have a problem which I'm pretty sure that I can't solve without going back to the vendor, but I thought I would float the problem here first. Anyway, I have an assembly from a 3rd party that I have to incorporate into existing applications, but it is not signed. This obviously gives me a load of headaches as all my existing product as...
I have an application written using .NET 3.5 SP1 that downloads images from an external site and displays them to end users. On rare ocassions, my users are experiencing OutOfMemory errors because they are downloading enormous images. Sometimes the raw data associated with these images are large, but more often, the dimensions of the ima...
I need to map a network drive from within a .NET application. I'm going to need to use an AD Username and Password to authenticate. Usually I just use a batch file with the net use command. How do I do this from within C# or VB.NET code? ...
In my current app I have a Tree control on a page of a TabControl which is inside a panel of a SplitContainer control. The tree control can thus be hidden by either hiding the SplitContainer panel, or switching to another TabPage in the TabControl. In the Form's menus there are commands which act on the currently selected Node in the tr...
When I use: File.Copy(strRemoteFolder, strLocalFolder) I get an UnauthorizedAccessException with the following message: "Access to the path ... is denied." In .NET, how do I copy a file from a remote computer that requires authentication to my local machine? I understand that I'm going to need to supply a username and password in so...
I have so many bloody different nested folders with different names that were all automatically created by the settings engine that I can no longer tell where the active settings file resides on my machine. Is there a way to determine the path to the active settings file programmatically so I can output it to a debug console? ...
I'm working on tests for my Fluent NHibernate mappings, and my question is - is it a good idea to test for id value if Id column is represented by identity in Sql Server? Since it changes after each insert, how can I possibly do it? new PersistenceSpecification<Product>(session) .CheckProperty(p => p.Id, 1) ...
I was trying to do something like below but it doesn't work. Why won't .NET let me do this? private void MyFunction(var items) { //whatever } ...