June 2004 - Posts

AAAAh I'm going crazy Fixing this PC

Hey all,

I'm bizzy trying to fix a pc for a friend of me but i can't find the problem with the PC it hangs after playing like 4 minutes solitair or doing word for that time.
It aint the processor it's new and i allready tested it with a working pc.
It aint the Motherboard also tested that.
It aint the memory because i tryed serveral working RAM memory.
It aint the Harddisk tryed 3 diffrend HDD's.
It aint the DVD player because the error is there also if it is unplugged.
It aint the floppydrive because the error is there also if it is unplugged.
It aint the powersupply tryed 2 diffrend kinds.
It aint the graphics cart tryed to 2 diffrend kinds of PCI and one AGP.

Here is some more info about the PC:
Intel Celeron 2.4GHz (Boxed)
JetWay P4X400DBZ
Seagate Baracuda 30GB
RICOH MP5240A DVD+RW/+R
TOPELITE 400 MAX (by CWT) Model NO: ISO-230
Elixir 256MB DDR-400MHz-CL3
S3 Trio64V2/DX
Windows XP
Symantec Antivirus Corp 9

Hope someone has a clou because i'm getting onto the point of trowing it out of the window !!

Good Luck To All

Putting my app on the web problems :(

Hey i had/have some problems with my host and stuff :(

The first one was that i needed to get my DB from home onto the server of the webhost.
There are a couple of ways to do this you can use the Import and Export Data that is with your SQL server then you can select your host that you want to copy the data from after that you can select the server where you want the data to and then the way to copy it pritty Straight forward, but the problem i had with it was that some options like auto increment didn't get tranfered so i found my self a other way.

I opened Enterprise Manager and generated a SQL query from the DB i had after that i opened Query Analyzer and connected to my Server DB and executed the sql that i generated, then i found yet a problem witch i fixed manualy the Primary Keys did get transfert right.

The second problem was i had some problem with my mail server on the host and i had a nice Try Catch but i just wanted to comment it out witch i did but it didn't work and didn't work and i was going mad until Peter told me that i needed to build at my local pc and not just upload the .cs but also the projects .dll and the problem was Fixed :D:D:D

That was it for now will get back with more stupid bull s**t
Happy Junking later

Can Send mail (503 This mail server requires authentication)

Hey all,

I'm finaly in the completing fase of my school project YAY :D
I wrote a blog Sending Mail using C# a while ago and a well now i'm having the problem on my server that i can't send mail this is because i need to send some login info for the mail server the way to do this is following (MMessage is the Mail message):

MMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
MMessage.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); //set your username here
MMessage.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); //set your password here

I got this solution on http://systemwebmail.com/faq/3.8.aspx so if you need some more info get it there :)

Happy Netting

Flash and XML

Hey all I have a project that maybe will use PHP,Mysql but they aren't sure yet if they want to use Flash or HTML and because I'm young and very impatient i allready wanted to start so what is the way to do??? let PHP give some XML :)

So here is just a small actionscripting that may help.

Make XML in Flash:
/* Make XML in Flash */
//Create XML object

xmlSend = new XML();
//Create a Tag
info = xmlSend.createElement("info");
//Create a other Tag
user = xmlSend.createElement("user");
 //Give the other Tag some info
 user.attributes.name = "warstar";
//Put the other tag into the Tag
info.appendChild(user);
//Put the other tag into the Tag
xmlSend.appendChild(info);
/* End Make XML in Flash */
Now xmlSend will be: <info><user name="warstar" /></info>

Now for getting some info from XML into Flash that will go like this:
/* Load and process XML */
//Create XML object

xmlGet = new XML();
//Set object to ignore White spaces
xmlGet.ignoreWhite = true;
//Load informtion from info.xml
xmlGet.load("info.xml");
//Set that if data is loaded goto function myOnLoad
xmlGet.onLoad = myOnLoad;
//Function myOnLoad
function myOnLoad(succes)
{
 //Check if all went well
 if(succes)
 {
  //Get the first Node
  rootNode = xmlGet.firstChild;
    
  //Get the firstNode in the node
  currentNode = rootNode.firstChild;
  //Brows to all the nodes
  while(currentNode!= null)
  {
   //Put the information into variable txt
   txt += currentNode.attributes.id + " - ";
   //Goto next node
   currentNode = currentNode.nextSibling;
  }
 }
}
/* Load and process XML */
The XML file looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<info>
  
<user id="1" name="warstar" pass="****" />
</info>

Sorry i'm not explaining mutch but i'm really Tired So

happy Neeting, let the bed bugs bite

There is already an open DataReader associated with this Connection which must be closed first. (Try reader.Close(); )

Ok so I wanted to get just 3 little thing from my DB and i used this code in the costructor of my Component:

PosterCommand = new System.Data.SqlClient.SqlCommand();
PosterCommand.CommandText = @"SELECT firstName, name, tussenVoegsel, costumerID FROM customerInfo WHERE (costumerID = @id)";
PosterCommand.Connection =
this.sqlConnection2;
PosterCommand.Parameters.Add(
new System.Data.SqlClient.SqlParameter("@id", System.Data.SqlDbType.Float, 8, "id"));

After this i used the function to get the info:

public string Poster(double ID)
{
PosterCommand.Parameters["@id"].Value = ID;
reader = PosterCommand.ExecuteReader();
reader.Read();
string Poster = string.Format("{0}{1}{2}",reader[0].ToString(),reader[2].ToString(),reader[1].ToString());
return Poster;
}

But when i was running the function for the second time i go the error There is already an open DataReader associated with this Connection which must be closed first. And then i found the blody problem i needed to CLOSE THE DATAREADER !!! so now the function is like this:

public string Poster(double ID)
{
PosterCommand.Parameters["@id"].Value = ID;
reader = PosterCommand.ExecuteReader();
reader.Read();
string Poster = string.Format("{0}{1}{2}",reader[0].ToString(),reader[2].ToString(),reader[1].ToString());

reader.Close();
return Poster;
}

Have fun and Good Netting