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

Software Development Network >> .NET Development

.NET Development

New Question

Serial port
error in updating the database...
ForEach loop question about Databases
How to install .Net Framework on Win Server 2003 SP1
SetAccessControl throws unauthorizedaccessexception
Connecting to a Sybase db
Error while accessing MS ACCESS database via ASP
Unhandled exception
Getting parameter-type T TypeInfo for call to GetValue...
Error installing dotnetfx3.0

Top Answerers

David Smit
FinallyInSeattle
Jehan Badshah
ScottRitter
Amit Online
cindyjones10
Pockey
TiKu
agenda9533
timay
sitemap
Only Title

Answer Questions

  • edle Sending Message to a known IP

    I am asking how to send message to a known IP. This question has been answered a number of times before in this forum.  A quick search for socket code examples, will provide you a number of links to full samples   http://msdn2.microsoft.com/en-us/library/w89fhyex.aspx Again, what sort of protocol If you don't care about the protocol and just want some raw way then you may want to look into using Sockets otherwise you could take a look at this example project that is a simple chat application that sends both text and images. I want to send a string text and picture You'll have to be much more specific... what kind of message do you want to send Via what sort of protocol Use a Socket cla ...Show All

  • Raymundo Chapa94595 Release bin doesn't run outside VS2005

    Hi, I have a pretty big project C# under VS2005. I work on it from 2 years, and from 1 year on VS2005. Since middle f this month, the release binary is not working anymore outside VS2005. I can still run my project from VS2005 in both Debug and Release mode. If I start the project outside VS, running directly \bin\myapp.exe then I have the usual dialog box (SmartCabNet has encountered a problem and needs to close ... blabla) In the Event Viewer\Application I can see: Faulting application smartcabnet.exe, version 1.0.0.5, stamp 459285ff, faulting module kernel32.dll, version 5.1.2600.2945, stamp 44ab9a84, debug 0, fault address 0x00012a5b. If I run \debug\myapp.exe then all is working fine. Note that the crash occurs wh ...Show All

  • prashanthkumarhv hashtable.values.CopyTo() function

    Hi Guys, I am trying to convert the values in my hashtable to an array. I am using the hashtable.values.CopyTo() function but it always breaks, it doesn't seem to matter if I change my array type. The data in the hashtable is a [,] and i would prefer to keep it that way, however I know that I may have to change it to a double[ ] (conincendentaly I have done that) but I still get a error on the lines it doesnt fit. Can someone please help. I have pasted my code below. double []meanR = new double [7]; theMeanReturn = mean.getMeanCcyReturns(TheReturns); // theMeanReturn returned as a [,] double [] TheMeanReaturn = new double []; //parse theMeanReturns to a [ ] for ( int p = 0; p < theMeanReturn.Lengt ...Show All

  • Brandon T Perry The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    Hi, When I deploy the asp.net application on 64 bit OS mechine I am getting the following error. The same application is running properly in 32 bit mechine. Error : The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exc ...Show All

  • chare Missing DWMAPI.dll causes problem with COM interop in c#

    I have recently installed IE7, and am now experiencing a problem with COM interop in one of my c# projects. It seems that there is a dependency on a dll called DWMAPI.dll from the COM dll. I have read a bunch of posts about similar problems, and it seems this dll comes with Vista, but is missing on XP machines. For some reason, installing IE7 makes it become a dependency for things like .NET interop. The only solution I have been able to find in the forums and posts is to uninstall IE7. Microsoft has not yet posted anything that I could find in regards to this issue. Does anyone know something I don't Any help is greatly appreciated. Thanks, Dan This thread suggests that the real problem is wit ...Show All

  • gomaz Can I dynamically incorporate feature to assembly using CodeDOM?

      I have same problem :    I need to insert call to begin of the call of some defined and widely used class,  (without interfaces!). What technology permits this:Emit, CodeDOM       Once it represent object graph - can I incorporate my call into this graph    Or just only can create assembly as a whole thanks you. Check Mike Stall's post in this thread ... I do not want get events, but , by AOP way to tweak direction of call of code - instead of call of some method I want call to my method with same signature. Or insert call to my method to begin of some existed method. or making behaving this method as virtual. or , please comment how Debug ...Show All

  • Dipendra Calling Win32 API from Assembly Language

    How do I call a win32 API function from assembly language Basically I need to call functions from kernel32.dll from assembly language. Win32 APIs are just stdcall C functions , so this is a specific instance of a more general question: how to call a C-function form another DLL w/ stdcall calling convention from assembly. In general, The easiest way to answer "how do i do X" in assembly is to do X in C and then look at the generated assembly from the C compiler under a debugger (in Visual Studio, you can right click and do "Show Disassembly". The exact syntax will depend on your assembler. SachinPatole Please bear in mind that I am very biased, having written a suite of free tools to write ...Show All

  • Craig G Can Someone Help me With this ?

    hi all ------------------------------------------------------------- using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Personal : System.Web.UI. Page { ITS . Learner_PersonalDataTable Personal_Info; string STUDENT_NAME = "name" ; protected void Page_Load( object sender, EventArgs e) { ITSTableAdapters. Learner_PersonalTableAdapter adapter = new ITSTableAdapters. Learner_PersonalTableAdapter ( ...Show All

  • Malmer Cross-thread operation not valid.

    How should I re-enable a Form after being disabled during an external process I have a Form which calls notepad and while notepad is active it disables itself: process.StartInfo.FileName = "notepad.exe" ; process.StartInfo.Arguments = "\"" + file + "\"" ; process.StartInfo.UseShellExecute = false ; process.StartInfo.Verb = "" ; process.Exited += new EventHandler ( process_Exited ); process.Start( ); DisableFormDuringEdit( "Editing..." ); On return, in the event process_Exited event, I tried to enable the form with 'this.enabled=true' but I get the message: Cross-thread operation not valid: Control 'MyForm' accessed from a thread other th ...Show All

  • nikos_22 Socket Connection - Wrong address is returned

    Hi, I'm using socket connection to connect pocket pc (client) and my computer (server). When I run the program on the emulator, I'm able to establish a connection. At the server, I print the remotePoint from which the connection was accepted. I always get the unassigned IPAddress "127.0.0.1" printed. I have been trying to figure it out myself, but in vain..Can anyone please tell me why this happens Thank you so much. /******Server******/ IPEndPoint myEndPoint = new IPEndPoint ( IPAddress .Any, 5155); Socket mySocket = new Socket ( myEndPoint.AddressFamily , SocketType .Stream, ProtocolType .Tcp); mySocket.Bind(myEndPoint); mySocket.Listen( int .MaxValue); Console .WriteLine( "S ...Show All

  • Ceres629 Handlers

    has any one of you guys out there used utils.rendercontrolasstring(), if so; would you please indicate from which library is it found snipet: DataGrid grid = new DataGrid (); grid.DataSource = dt; grid.DataBind(); string html = utils.rendercontrolasstring(grid) Found on an Asian website (Google rulez): static class Utils { public static string RenderControlAsString(Control ctl) { StringWriter sw = new StringWriter(); HtmlTextWriter writer = new HtmlTextWriter(sw); ctl.RenderControl(writer); return sw.ToString(); } } ...Show All

  • Antonio Neeves HttpWebrequest Post

    Hello Im trying to upload a file to a https address using the getRequestStream method of the httpWebRequest class. The code appears to work fine and no exceptions are thrown, but the file does not appear to have uploaded to the server. The stream is working as it should. The server requires authentification via a public key, which i have and is installed. I have used the CreateFromCertFile method of the X509Certificate to add the certificate to the WebRequests client certificates. I belive this method extracts the public key from the certificate If I try and call the GetResponse method, an exception is thrown - The remote server returned an error : (401) Unauthorized. The URL is something like https://somesite.com:500/test/tes ...Show All

  • DaveSmith Error when importing an Excel SS into a dataset

    Hi; What can I not fill my dataset once I have connect to my Excel ss. When I get to the fill ds part of my code I get the following exception " "The Microsoft Jet database Engine could not find the object "tab1". Make sure the object exists and that you spell the name and path correctly." Here is the code I am trying to use: Option Explicit On Imports System Imports System.IO Imports System.data Imports System.Data.OleDb Module ptr423Late Dim sPath As String = "C:\Desktop\657423.mdb" Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & sPath & ";Persist Security Info=False" Dim Conn As OleDbConnection = New OleDbConnection(con ...Show All

  • eric02 SQLCommand insert not working for dataset with more than one row.

    I am trying to insert data into 2 tables, Order and Order_Item, in a transaction. Everything works fine if I only have 1 row in my objCartDT datatable. If I have only one row, the 2 tables are updated as expected. But if I have more than one row in the objCartDT datatable, something fails, and I can't figure out what (but I suspect it has to do with the params in conjunction with "cmdNewOrder_Items.ExecuteNonQuery();" and the looping I'm trying to do. Maybe not. I will paste the function that is called on button click (to submit the order). I am using a MS Sql server database. public void btnSubmitOrder_Click(object sender, EventArgs e)     {          SqlConnection objConn;   ...Show All

  • takkyangel WebException: The underlying connection was closed

    Hi After upgrading our win client app to run on version 2.0 of the .net framework (prev. v1.1) on of our customers reports the following error when calling a web service on our server: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. The customer is using a proxy-server, but it worked fine before the upgrade, and other customers who are behind proxy-servers has no problems. The error does not occur when the customer accesses the web service using Internet Explorer. The customer is behind a firewall. /Daniel We still haven't found a solution to this. We're more or less certain that it ...Show All

434445464748495051525354555657585960

©2008 Software Development Network

powered by phorum