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

Software Development Network >> .NET Development

.NET Development

New Question

asp.net(c#) upload problem
CSharpCodeProvider and temporary files
SQLBulkCopy and text files.
need help
Assign strong name to third part DLL
Get the values of method`s parameters
communicate between Server and Client ( using Socket)...
DataSet serialization problem through remoting (VS2005 release)
Updating IBindingList from different thread
Unable to modify database data (ADO.Net, C++, ODBC)

Top Answerers

btolman
MassDev
pgago
Arnabmsdn
Raffaele Rialdi
JonAkaJon
LneWlf
imcgraw
fbalas
Roman_at_work
Rafin, Olivier
Only Title

Answer Questions

  • Leonid Niraev Security

    I'm trying to run an application throw the net and trying to create a file in local disk (C:\), but it's showind a message like this: "System.Security.SecurityException: Request failed." I've discovered that the problem is the permission of the framework. So, i'd like to know how can i solve this problem implementing this security by code in the application, not manually by "Control Panel". Thank you! You can find .Net Security configuration in Control Panel - > Administrative Tools - > Microsoft .NET Framework 2.0 Configuration Run it and I hope you'll get it working because its simple to use. By the way, I would like to know Are you running application from local Hard Disk or network Shar ...Show All

  • Paul D. Murphy Networkstream.Read() Not Working

    I have two TcpListeners listening on the same IP address but different ports in an application (server). Likewise, I have two clients waiting to connect to the server in another application (client). Now I receive data from the server through one port and send data from the client to the server using the other port. Thing is, the client sends what it's supposed to send but the server fails to read that data and just skips through the read data portion of the code. if (ns2.DataAvailable == true ) { ns2.Read(jsCommands, 0, jsCommands.Length); label1.Text = System.Text. Encoding .ASCII.GetString(jsCommands); } Now if i remove the DataAvailable check and just try to read the data, the program closes the socket and hangs af ...Show All

  • Kostas Pantos running an external command line program

    Hi, I am trying to run a 3ed party program from a c# application and read the result of the run. To do this I Create a new Process object, redirect the standard output and read from the standard output stream. The problem is, the stream is always empty although the programm always prints output. the code itself seems to be fine and if i try to run simple dos commands it works ok. Any ideas Thanks. Well, I don't think you can intercept console buffers of one program from another directly , but since I assume you already have a handle to the console of the program, you could try reading characters directly from it by (x,y) coordinate. Have a look at these Win32 API functions: h ...Show All

  • chunkai Is it possible to enumerate modifiers?

    Hi All, I would like to place in a combo both the vbModifiers and c# like default,private,internal,public etc.... Can these be extracted from somewhere or shall i manually add them also forgot how you handle keywords or reserved words in c# the following does not seem to work public enum cSharpModifiers { @default, @private, @protected, @internal, @public } thanks in advance The TypeAttributes enumeration contains the various values. You can enumerate all the enumeration values and use the VisibilityMask to mask off the values. However it would probably just be easier to manually specify the values. Note that you should use the .NET definitions rather than the C# or VB defini ...Show All

  • Bit Bucket "Could not create type..." error deploying webservice

    I know this question has been asked a billion times already because I've found several instances on the net, but none of the proposed solutions seems to solve my problem, so I'd appreciate any help. I've created a C# webservice on my local machine that runs fine. Now I'm trying to deploy it to a webserver. The server is Windows 2003 with IIS 6. I created a new virtual directory in IIS, set it to be an application, and gave it "scripts only" execute permissions. I've manually copied all the files from my local webservice directoy to the virtual directory on the server. When I try to access the page, I get the dreaded "Could not create type 'Service'" message. Here is some additional interesting information: 1. I'm ...Show All

  • Neotech AppDomain.Load assembly file not found exception ?

    Heya all, I'm currently developing an application that loads a dll that is dynamically compiled every now and then. To avoid restarting my application, I chose to use an appDomain so I can call AppDomain.Unload(appDomain); whenever the DLL is build again. So far I've got the following code: AppDomainSetup ads = new AppDomainSetup (); String fullPath = GetFullFileName(); //returns full filename ads.ApplicationBase = Path .GetDirectoryName( fullPath ); ads.PrivateBinPath = Path .GetDirectoryName( fullPath ); AppDomain ad = AppDomain .CreateDomain( "myName" , null , ads ); ad.Load( AssemblyName .GetAssemblyName( fullPath ) ); ///-> Throws FileNotFoundException! //do some stuff here (reflecti ...Show All

  • nativecpp ToInt32 Exception

    I recently moved an application developed in VS2005 on Windows 2000 to VS2005 on XP pro. Now I have format exceptions occurring when using Convert::ToInt32 when the string is a "1". To check this further created simple project with button and two text boxes, working bit is: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { String^ ares = textBox1->Text; int aint = Convert::ToInt32(ares); textBox2->Text = Convert::ToString(aint); } This fails every time when just 1 is entered with System.FormatException - Input string was not in a correct format, or if more than one digit is entered a leading 1 is ignored. Works ok if a leading zero is entered. If I change the second line to ...Show All

  • xkx32 Performance?

    Hi there. I have a performance related question: in the following 2 examples, why would I use one over the other Any one offers better performance / security, etc 1. string newString = string .Format( "{0} and {1}" , thisString, thatString); 2. string newString = (thisString + " and " + thatString); Completely disregard for now the obvious extras that the Format method provides (composites, numeric and date formats, alignments, etc.), also the trimming of the 2 parameter strings, this is pure string appending and the end result is exaclty the same, so why one over the other Thank you Thank you, that was the answer I was looking for. Would operations on string literals be String ...Show All

  • Pranav Sanghadia Is it possible make new thread with return value???

    Hi , I want to make new tread but to return data set. IS it possible public static DataTable fillAvailableEquipments() { getData=new ThreadStart(fillAvailableEquipmentsByTread); getDataThread=new Thread(getData); getDataThread.IsBackground=true; if(Defaults.Lenguage == Language.English) getDataThread.CurrentUICulture = Defaults.enCultureInfo; else getDataThread.CurrentUICulture = Defaults.ruCultureInfo; frmHead.MyTread=getDataThread; getDataThread.Start(); } private static void fillAvailableEquipmentsByTread() { DataTable dt = some method that return DATA TABLE; } It give me error becouse thred has to be VOID ...can it be done in some other way HELP.... ...Show All

  • Cybersurfer System.AccessViolationException: Attempted to read or write protected memory.

    I have experienced much grief trying to figure out what to do about this error. I have a project that make exstencive use of the Shell. And while working with this shell project in a stand alone project it is perfect.. Works like a champ.. Now when i get ready to intergrate the shell project into my main project i start getting weird jit errors and memory not accessable errors.. My other controls in the main form even start throwing errors when this shell project is added... The only thing that i can think of is that there is a memory location is being overwritten while the address is in use by some other pointer. Here is one of the main spots in my code that this is a for sure error thrower when the _ItemActivate even event is ra ...Show All

  • RickHan How to send xml file to the remote server??- vb-visual studio 2005

    Hi I am trying to send xml file to the remote server and rsponding to the error messages and results from the rmote server. The xml file has the envelope element. Please sombody give me an idea where to start. Any sampe applicaion will be great. Advance thanks What's your mode of communication Asmx webservices WSE WCF Sockets Hi I am using Windows form in vb 2005. I am trying send it over HTTP. I already have vb6 application to do this but I want it on VB 2005. I have converted to vb 2005 but left with many warnings and I couldn't fix it. Application I am trying to do the following: Send xml file to the remote server and display the response message and error messages to t ...Show All

  • Toshipenguin FTP w CF 2.0

    Hi all, I am getting an odd error during an FTP. It happens completely randomly. I can sometimes ftp 50 files with no error, and other times 2 errors in a row with the same files. This machine can FTP via CF 1.1 without error as well as with any other FTP method I have tried. Like I said it only happens with the 2.0 and I am at a loss. Any ideas Here is the error; System.Net.WebException: The remote server returned an error: (501) Syntax error in parameters or arguments. at System.Net.FtpWebRequest.SyncRequestCallback(Object obj) at System.Net.FtpWebRequest.RequestCallback(Object obj) at System.Net.CommandStream.Abort(Exception e) at System.Net.FtpWebRequest.FinishRequestStage(RequestStage stage) at System.Net.FtpW ...Show All

  • PsyCadelik How can I continue after an error?

    Here's a good one for ya... I'm writing some code in a method that intentionally passes bad data to a series of calls in the method. The problem is, once the first error in the method is encountered, it jumps to the catch and then leaves the routine.  What i need it to do is to continue at the next item in the routine that is going to throw an error.  Since .NET doesn't seem to have Resume Next, is there any equivalent way to do this   Public Sub CauseErrors Try Error1(BadData) Error2(BadData) Error3(BadData) Catch End Try End Sub Hi, The problem you are facing is not a problem but it is the intended behaviour of Try... Catch block Structure your Try ... Catch in the fol ...Show All

  • tamri .Net 2.0 send email with multiple “To” recipients

    Hi, I know how to send emails in .Net 2.0, but I can not send one with multiple email recipients in the “to” field. If possible I would like to specify display names for all recipients in the “to” field but this is not required. I'm converting a VB.NET 1.1 app to 2.0 and the mail functions are giving me the most trouble with the lack of support for delimited addresses. The following line of code throws an invalid address exception for me: Dim objMessage As MailMessage = New MailMessage() Just realized this was posted last October. I can't believe this still hasn't been revised in the documentation! This is the only thing that worked for me: mai ...Show All

  • DarkProphet cross thread exception in background worker_runCompleted?

    I have read about threading and know that updating GUI components in a worker thread is a no no. I thought when using a background worker on the runworkercompleted event that it was back on the main thread and you can edit the components. I posted my code, i get a cross thread exception when trying to update the labels in the switch statement. thanks private void bgwCurrentWorker_RunWorkerCompleted( object sender, RunWorkerCompletedEventArgs e) { if (e.Error == null ) //background process successful 'e' should be xml string { string sWeather; sWeather = ( string )e.Result; if (sWeather.Contains( "Success" )) { XmlReader reader = XmlReader .Create( new System.IO ...Show All

505152535455565758596061626364656667

©2008 Software Development Network

powered by phorum