179 Topics

Member Avatar for
Member Avatar for Frengerdany

Hi I have a problem with RSA encryption/decription of txt files, I have one method to create a pair of RSA keys and save them into a file, then i made two methods, one for encryt and one for decrypt, encrypt method works fine, but when I want to decrypt …

0
143
Member Avatar for paresh_thummar

hi Friend i have a problem to create user through Membership provider I Wrote [CODE] try { Membership.CreateUser(txtbox1.Text, txtbox2.Text); Response.Redirect("AHome.aspx"); } catch (Exception ex) { Response.Write(ex.Message); } [/CODE] and I got "The password-answer supplied is invalid. Exception" Please Help Me......

Member Avatar for paresh_thummar
0
184
Member Avatar for axeves

The exception is: Unhandled exception at 0x6474f269 in Loliboll.exe: 0xC0000005: Access violation reading location 0x0000000c. I think it's a memory leak. I tried to solve it obviously, but to no prevail. This is the code: [CODE]#include "stdafx.h" using namespace std; int main() { // FreeConsole(); int a; // INTRO = …

Member Avatar for template<>
0
135
Member Avatar for TheFueley

I'm having trouble figuring out how to use exceptions to check if a file stream was created successfully. I know I can use if statements, but how do I do this using try/catch statements? It compiles successfully but it gives me an error when I supply a non-existent filename as …

Member Avatar for TheFueley
0
8K
Member Avatar for rude04

hello everyone,i need to make an encryption/decryption program and I'm almost finished, the problem is when i tried to add some gui an error about throwing exception keeps showing.. this is the code without the gui and it works just fine because the [B]throws Exception[/B] is in the main.. [CODE] …

Member Avatar for rude04
0
711
Member Avatar for Dhammakirty

I have two datatable having same column names. i am trying to copy data of one data table to another. The destination datatable has one datetime column and source datatble has datecolumn. but my code is not working. dtequityData is source datatable drnew is new row created for destination table …

Member Avatar for Knvn
0
126
Member Avatar for micmo

Hi Guys, I'm currently developing a project using WCF (hosted on local IIS) which connects to a local SQL database using LINQ to get data. My problem is that when I run the code, 9/10 times it'll fail with the "Specified Cast Is Not Valid" error, but the other 1/10 …

Member Avatar for micmo
0
1K
Member Avatar for McCurry0x77

What is the best way to assign values to variables of various data types from reading a file (while importing as few things as possible and making use of the simplest code)? I need to write a program which can assign values from a .dat file, if that's relevant. If …

Member Avatar for masijade
0
119
Member Avatar for shabbo_03

im doing a college project in c++. it is a token system of bank(line,queue..).it waits for a enter key and then it creates a token with entry time and expected leaving time,cashier to attend to and token no. whenever i compile the program it gives no error but after runing …

Member Avatar for mbulow
0
350
Member Avatar for ezbaiby

Hey I have a program that has a webBrowser navigate through a few pages, and when it gets to the last page I set it to navigate to, checks if there is a certain string on that page. I just switched my code around to use multithreading and now the …

Member Avatar for ezbaiby
0
822
Member Avatar for erum

i have exception Conversion from string "System.Web.UI.WebControls.TextBo" to type 'Integer' is not valid. on these line [CODE] Dim no_single_room As Int32 = CType(DirectCast(dataItem.FindControl("txt_single"), TextBox).ToString(), Int32) Dim no_double_room As Int32 = CType(DirectCast(dataItem.FindControl("txt_double"), TextBox).ToString(), Int32) [/CODE]

Member Avatar for reach_yousuf
0
97
Member Avatar for ace8957

Hey everybody, So I though that I understood linked lists and arrays well enough to make a hash table with separate chaining. Theoretically, it seems trivial, but I am getting a runtime error. The error appears to arise from the line head = heads[i], where head is a node pointer …

Member Avatar for Agni
0
171
Member Avatar for tcon

hi im sorry if this isnt in the right forum but i cant seem to find any threads in this. i cant seem to create a datetime object in vb.net with datetime string that's in this format "hh:mm:ss tt MM/dd/yy". The error im getting says its not a recognisable string …

Member Avatar for Luc001
0
2K
Member Avatar for Ultraviolet

Hello all. I used [CODE]Directory::GetDirectories()[/CODE] and [CODE]Directory::GetFiles();[/CODE] to search the file system. Normally, I got an Unauthorized Access Exception which I caught using a try\catch block This didn't ignore the exception and kept failing when facing a System directory, but only without throwing the exception. I used this (If) to …

Member Avatar for Ultraviolet
0
102
Member Avatar for cppgangster

Hi, Thank you for helping. My source: [CODE] #include <iostream> #include <cstdlib> #include <exception> using namespace std; void MyQuit(); void mamama() throw(char *); set_terminate(MyQuit); int main() { mamama(); return 0; } void MyQuit() { cout<<"Uncaugh specification!\n"; } void mamama()throw(char *) { throw "this is end!\n"; exit(5); } [/CODE] And I …

Member Avatar for mike_2000_17
0
143
Member Avatar for Sunshineserene

Hi, I am getting this error for my codes: Exception in thread "main" java.lang.NumberFormatException: For input string: "{ 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0}," at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224) …

Member Avatar for Sunshineserene
0
2K
Member Avatar for livesinabox

So I had posted a thread here called "Exception Handling" asking for help excuting this program. Then I discovered CodePad! ( So if any of the moderators could help me delete that thread it will be great! ) So I cleared up most of my errors. And I got an …

Member Avatar for livesinabox
0
145
Member Avatar for Gribouillis

This snippet defines a function [icode]exc_browse()[/icode] which displays the current python exception in the web browser. This can be useful to non web programmers who want a nicely displayed exception traceback (web frameworks usually include this feature). The idea of this function is to store the html code generated by …

0
244
Member Avatar for sugumarclick

Hi folks, This is my first thread in Spring Framework and I am new to it . While creating a web app in Spring framework I cannot deploy it as it contains few errors. I couldnot resolve. So i seek help from you . . Bean creation exception is the …

Member Avatar for sugumarclick
0
473
Member Avatar for wiggerboi95

hey everyone, i am a new developer using the bluej IDE on mac 10.6. Whenever i use the virtual terminal to execute, it works perfectly. the other day, i attempted to export the file to a JAR file through the programs basic functionality, as JAR files are natively run on …

Member Avatar for NormR1
0
231
Member Avatar for liamzebedee

I am getting System.IndexOutOfRangeException everytime I try to compile my program. This is where the error is happening. [CODE] public static string findlinks2(string source) { char quotes = (char)34; //sets the char variable to quotes since you can't use it in a string normally string searchstring = (quotes + "fmt_url_map" …

Member Avatar for liamzebedee
0
171
Member Avatar for GDICommander

Hello everyone! When I'm starting a OSGI bundle in my Apache Felix container, I have a ClassNotFoundException. This is the output that I have: [CODE] start file:/C:/Users/Pierre-Alexandre/Documents/NetBeansProjects/Prototype1/src/Prototype1Client.jar 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged …

Member Avatar for GDICommander
0
5K
Member Avatar for neoraghav

Hi, i accidentally given input as character for a integer variable.....then the program went crazy and just flooded the console..... so, is there any way to handle this exception......and how to achieve that thank you

Member Avatar for neoraghav
0
149
Member Avatar for flyingcurry

I have implemented a catch statement for both the InputMismatchException and the ArithmeticException, how come they are not working? Also, if the user enters "quit" for the numerator, the program should be able to exit. But my understanding is that as soon as the user enters something that is not …

Member Avatar for NormR1
0
199
Member Avatar for _neo_

How can I get error message? [CODE] try: ...# some operations except: sock.sendto(err_msg,0,addr) # send client err_msg from exception [/CODE]

Member Avatar for _neo_
0
267
Member Avatar for kazumahits

pls help me to solve my problem. here's my code [CODE]import java.io.*; public class ifelse { public static void main(String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int a; System.out.println("Enter your Level"); a = Integer.parseInt(in.readLine()); if (a == 1) System.out.println("\nYou are Freshman"); else if (a == 2) System.out.println("\nYou …

Member Avatar for jon.kiparsky
0
11K
Member Avatar for badboy11

I need some help understanding how the exception handling flow of code works. I have written a sample program that has exception handling in it. There are two classes here: My custom Array class and the Main.cpp class to implement and test the Array class. Inside the main() method, I …

Member Avatar for badboy11
0
138
Member Avatar for jonniebl

I am writing a program that creates a file and attaches it to an email. I use a loop to create the attachment, send the email and then do it again with different information in the attachment. This works well for one tim through the loop, but on the second …

Member Avatar for jonniebl
0
183
Member Avatar for lai2van

HI, I am very new to C# socket. I have tried several very simple code, but all of them lead to same error message: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:7 at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at MainClass.Main(String[] args) in C:\ConsoleApplication1\Program.cs:line 14 Below …

Member Avatar for Ketsuekiame
0
553
Member Avatar for sorefish

Hey folks, realise this is probably beneath the general level of conversation in here, but I have no technical training. I'm working on a WP site called worseforwear.com, helping out a friend. In the right sidebar, I want to create a CSS exception for the list-style: square part of the …

Member Avatar for sorefish
0
446

The End.