Software Development Network Logo
  • Visual FoxPro
  • Visual Basic
  • Game Technologies
  • Smart Devicet
  • SQL Server
  • Microsoft ISV
  • Audio and Video
  • Visual Studio
  • IE Development
  • Windows Forms
  • SharePoint Products
  • Visual C#
  • .NET Development
  • VS Team System
  • Visual C++

Software Development Network >> .NET Development

.NET Development

New Question

online database connecton
Serialization design problem relating to custom objects
Sending digital signed mail with .net 2.0
Creating A Helper Thread
XML variable problem(small question)
What is the signifigance of maxstack in IL or "Which set accessor is more efficient?"
XmlSerialization of object data type
relationship between tables error
DataView RowFilter not filtering on percent sign
stream reader in vb.net

Top Answerers

libyan
Bikki
tall_matt
LegendRey
ss1234
aero1
Paul Bates
Bachmo
CharlieDigital
Seradex
Weso艂owski Pawe艂
Only Title

Answer Questions

  • Amos Soma How to retrieve dlls version?

    Hi, My app (C# 2.0) used some dlls, some locals and some in GAC. For support, I need to retrieve the dlls version (local and GAC) and the dll file version. How can I do this Thanks. This is the final method: /// <summary> /// Build DataTable With Assemblies details /// </summary> private static DataTable GetAssembliesData() { DataTable dtAssemblies = new DataTable("Assemblies"); dtAssemblies.Columns.Add("Assembly"); dtAssemblies.Columns.Add("Version"); dtAssemblies.Columns.Add("FileVersion"); dtAssemblies.Columns.Add("LocateInGAC"); foreach (Assembly LoadedAssembly in Thread.GetDomain().GetAssembli ...Show All

  • CruzPedro how to use WMI to get registry keys

    Hi, I need to access the registry through WMI but i can't find any examples on the internet, can someone help me tkns P.S.: the language is C# //const uint CLASSES_ROOT = 0x80000000; //const uint CURRENT_USER = 0x80000001; //const uint USERS = 0x80000003; //const uint CURRENT_CONFIG = 0x80000005; const uint LOCAL_MACHINE = 0x80000002; ConnectionOptions options = new ConnectionOptions(); options.Impersonation = ImpersonationLevel.Impersonate; options.EnablePrivileges = true; options.Password = password; //null if u want to access the local machine options.Username = user; //null if u want to access the local machine ManagementScope my ...Show All

  • DanglingChap Send data to RichTextBox ->IllegalCrossThreadCalls

    Hi, I've got the following code: Imports System.IO Imports System.Net Imports System.Text Imports System.Threading Imports SeasideResearch.LibCurlNet Public Class Form1 Private dnsLock As Object, cookieLock As Object Dim et1 As EasyThread, et2 As EasyThread Public Shared Tbox As RichTextBox Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Tbox = RichTextBox1 End Sub Public Sub OnLock(ByVal data As CURLlockData, _ ........ End Sub Public Sub OnUnlock(ByVal data As CURLlockData, _ ..... End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.Enabled = False BackgroundWorker1.RunWorkerAsync() End Su ...Show All

  • Mr_White Embedded xslt calling resources

    Hello, I am having an issue in using an embedded xslt in a dll when a part of that xslt is calling an extension object which uses an external resource. My xslt code is as follows < xsl:stylesheet version ="1.0" xmlns : xsl ="http://www.w3.org/1999/XSL/Transform" xmlns : mapUtil ="urn:mapUtil" extension-element-prefixes ="mapUtil"> <!-- some other xslt stuff but below is the main part --> < xsl:variable name ="primaryIndex" select ="mapUtil:GetCategoryInformation($Id, 'PrimaryIndex', 'true')"/> The GetCategoryInformation method inside the MappingUtility object calls a stored procedure. When I try to run this through, I get a " ...Show All

  • gleason78 How to solve it?The '+' is changed into ' '(blank) in the querystring parameter of url.

    I want to guide customer to a b/s based system from a winform.The querystring parameter is encrypted with DES and the encrypting result include some plus sign in the winform side. I find that the '+' is changed into ' ' in the b/s system,so there is a execption when it is decrypted. I have no an exat method to solve this problem. I ever wanted to replace the ' ' with '+'.But I can't be sure that whether the ' ' is from '+' or not ,since the ' ' have no any change after the process of transmission. Thanks for your attention and help. I have the same issue here I can't beleive that we are the only ones with this and that nobody figured it out. I'm trying my luck on this and i ...Show All

  • TimmayB File search

    Is there anything in the .net library that would allow me to search for a file on a pc, ie. sql2005 installer I need a method that allows me to search specific locations for specified files rather than just checking a predefined path ie File.Exists(filename) as the user may have moved those files to a different location. ta Mark so I could just set the folder path as the C:\ drive and let it search that drive and all its folders for the application ... Indeed, correction, multiple parent directories... However, to search multiple directories you'd have to implement yourself. Just keep in mind that this could take a heck of a long time, so it'd probably ...Show All

  • lecedre Validating XML Uploaded via FileUpload (ASP.NET)

    My webform allows users to upload an XML file, which I want to validate as part of a custom validator before doing anything with. This should be easy, right Problem: The XmlReader is unable to find a root node when accessing the FileUpload.PostedFile (or the equivelent Request.Files[0].InputStream). What's curious is this: I can load the stream directly into an XmlDocument without problem. I can also save it to disk and load it into a reader without problem. (So yes, I am sure that the root node exists in the filestream). Here's the basic code if anyone wants to try this out: XmlReader catalog = XmlReader.Create(Request.Files[0].InputStream); while (catalog.Read()) {} catalog.Close(); This would respond to something like: ...Show All

  • Napalm-uk-RTW Using XML permission sets in CASPOL

    I need to setup and deploy .NET Code Access security for an application. Instructions from the vendor apply to the .NET Configuration MMC, but to deploy to the enterprise I need to use CASPOL (creating an .MSI not being appropriate) I cannot seem to find detailed information on the format of the XML for for adding a Permission Set using the CASPOL -addpset command. Actually I also need to create a Code Group and link this to the Permission Set. Using the XML from the security.config file created using .NET Configuration MMC and the instructions from from the vendor gave me this XML file:- <PermissionSet class="NamedPermissionSet" version="1" Name="My PermSet" Description="My Client Control Per ...Show All

  • ctrahan WSE3.0 in medium trust IIS - partially trusted caller error!

    I am having a hell of a time trying to solve this error. Stack trace is at the end. I am using WSE3 with a custom DLL to perform compression on the message body. The DLL is called WSCompression and can be found here: http://weblogs.shockbyte.com.ar/rodolfof/ When I test my web service through local web browser, the web service executes just fine. Its when I try to invoke the service from a fat client that I get the error listed below. If I change my IIS settings to be FullTrust, everything works fine, so I know its not my client. Here is everything I have tried so far: edited my local web_mediumtrust.config to grant full trust to: the web.config, my policyCache.config, the entire app the WSE3.0 dll in the bin folder of my webapp. I really ...Show All

  • dclements CLR and thread deadlocks

    Hello, I'm hosting the CLR (.NET 2.0) in an unmanaged C++ app. The CLR is used for calling C# plugin functions through IDispatch. The C# plugins are COM visible classes and are created from the app main UI thread. They are mostly used for accessing the app through a COM primary interop assembly generated with TLBIMP.EXE. The interop between C# and the app is achieved through the default Microsoft COM wrappers. This is all working fine but I'm having a problem when the C# functions are called by the app from a worker thread. At this point the CLR attempts to interop with the app via the UI main thread which is causing a deadlock because that thread is locked while the worker thread is executing. From what I see in the call stack (b ...Show All

  • St&amp;#233;phane Beauchemin FtpWebRequest GetResponse throw The server committed a protocol violation :(

    Hello. I have some trouble with FtpWebRequest class. I use it for connection to two ftp servers The first server is working perfectly, but when i use the same programm to connect to another one the "The underlying connection was closed: The server committed a protocol violation." exception is thrown when I call GetResponse method. I found only one difference between servers. The first server returns: 220 Hello k-net ftp server The second FTP return the same banner but ON RUSSIAN Lang!!! 220 ! ! Is any UseUnsafeHeaderParsing property exists for FTPWebRequest, like for HTTP P.S> I'am not using SSL! The sources is here: ///... FtpWebRequest listRequest = ( FtpWebRequest ) We ...Show All

  • dagjo Trouble with attaching data into a database

    I have just started using Visual Studio and I am trying to program an application to send information to a SQL database. I keep getting this error message and cannot figure out how to fix the problem: System.Data.SqlClient.SqlException was unhandled Class=20 ErrorCode=-2146232060 LineNumber=0 Message="An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" Could someone please help me fix this error Thank you, Anthony Ostrem ...Show All

  • jeffery chan securing server-side types in IPC remoting

    I have an application that uses .NET Remoting over IPC. I have a lot of code that distills to the following pattern. (Assume each interface/class defined in different assembly.) public interface ILimitedAccess {} public interface IFullAccess : ILimitedAccess {} internal class MyClass : IFullAccess { } Server-side components use IFullAccess. Client-side components use ILimitedAccess. In scenarios where the server and client are 2 separate machines, clients are effectively prevented from using the IFullAccess interfaces by witholding the .NET assembly that declares them. Unfortunately, I am using IPC and all of my .NET assemblies are on the same machine. This means that client-apps (which can be written by 3rd parties) can simply load ...Show All

  • Vile How can I disconnect Wireless Network Connection?

    Hello, I have started to develop a network application which will run on the notebooks.I need to disconnect the Wireless Network Connection when the user simply press a button. I searched on the internet but could not find a solution using c# or vb.net. How can I do it using .net framework (2.0) classes. Do I have to use API Thanks in advance. Oceaner. OK Thanks, Yes I new it its for RAS based connections like DialUp and DSL. You are probably on Wifi which is again a LAN so it won't work. I would like to know how you disconnect manually from Wireless network so that May be I can find some Native API to do this for you. Any further input may help me in finding some solution because ...Show All

  • Ed Lewis TCP keepAlive settings problem

    am trying to set the keepalive timer by the setting the keep alive option in setsockopt Cli.SetSocketOption( SocketOptionLevel .Socket, SocketOptionName .KeepAlive, true ); i found something in .net similar to the WSAIoctl(socketid,SIO_KEEPALIVE_VALS,struct tcp_keepalive settings,...) in winsock2 library which sends keep alive messages every n milliseconds specified by the tcp_keepalive.keepalivetime. the api am trying to use is this Cli.IOControl( IOControlCode .KeepAliveValues,...,...); can someone tell me how to use this api to set the keepalive time and interval to the socket or does the .NET framework is incapable of doing something similar. Thanks in advance Sathish Ah... Sorry I w ...Show All

8788899091929394959697989901234

©2008 Software Development Network

powered by phorum