Frankly speaking 100's of programmers read the problems and not 5 percent of them give suggestions or answers

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.

when website published not while running through VS 2005
I am trying to export data from dataset to excel sheet
for that i am using excel application object
which gives the above said error

Somebody suggested to make changes in DCOM config file which i did and because
of that error is not coming but excel file is not getting saved only

Solution for this

I am trying to browse an image and i will search for the images with the same name in the folder called IMAGES . If it exists i just replace it
when i run my project using Visual Studio its working fine and image is perfectly getting replaced

when i do the same thing after publishing it , its saying
Access to the path 'C:\Inetpub\wwwroot\ms\IMAGES\' is denied.

I tried these things still not working
1) In the folder properties i allowed web sharing with read and write options
2) In the IIS for the IMAGES folder i gave read, write all permissions
3) In the web.config file identity impersonate = true
and authentication mode = "Windows'

Please solution for this

this is in windows project
i have one form which has a progress bar
from that i am calling a class file which has decrypting function in it while it performs decryption of a file i want to show the progress of decryption in my form

now how do i fetch the values from class file
i tried using return, from which i got the value back but the remaining function execution in the class file halted because it returned value

i even tried is there a way to access the progress bar in class file
which also failed

any answer for this solution

i have a checkbox inside a datagrid
when i select few checkboxes in 1st page and when i move to 2nd page the checked status of 1st checkboxes disappear(they become false)

one more doubt
if i want to make a checkbox true which is in 3rd page how to do it
with this code

for(int i=0; i< datagrid.items.count; i++)
// here although my datagrid has 3 pages and each page containing 5 rows
// it shows only 5 as grid count


i created a new folder and took this path and published from windows application to this folder

I got three files

Project folder
Project application manifest

When i ran setup.exe file i got my winodws application running , but the thing was it didnt got installed on to the program files or it was not available for uninstalling in control panel

Now i want to remove the project exe i dont know how and where it has installed by default or what reference it is taking
because when i tried installing the new exe it says the path is already refrenced by the exe

I wil be selecting the image to resize using open file dialog box ,

That image has to be resized to very small size and then it should be converted to byte array and stored in the database

converting to byte array and storing is working

Image resizing and storing to byte array is not working

code please

ex :

while asp web project is running , i have an option for the user , if the user presses F8 key in index page he will be redirected to login page

In the same way while vb application is running i should be able to capture the key press event and redirect the user to certain form

Here user refrers to adminstrator .

Is there an option like that in visual basic

is it possible to develop a c program which gets the shell windows and fetches the address bar or internet explorer url or a unique id specific to a website .

solution solutin solution PLEASE

commented: you've got 78 posts and still you beg "solution solution solution PLEASE" ? haven't you learned yet? -1

I am fetching the url of internet explorer browser
ex: [url][/url].............................

for website

but for every page visited inside the orkut website urls keep changing

So i was wondering is there any through which a website can be identified uniquely like ip address, or any text scanning or any ways which should be unique to an whole website .

Please provide some inputs , its urgent

ex :

Set ie1 = CreateObject("InternetExplorer.Application")
ie.Navigate ""

the above code opens the page but the url will be
something like [url][/url].........

I want to get the url , whats the code for it and how to get ip address of an website

Please HELP

<asp:Image ID="imgpdet" runat="server" Height = 350" Width="350"/>

I want to assign the height and width of the image which is the same of the original image from database .

Actual problem is i have an horizontal and vertical photos , if i give height matching the horizontal photo the vertical photo will be displayed in expanded format.

public void EncryptFile(string input, string output,RijndaelManaged alg1)
FileStream inputStream = new FileStream(input, FileMode.Open, FileAccess.Read);
FileStream outputStream = new FileStream(output, FileMode.OpenOrCreate, FileAccess.Write);

        SymmetricAlgorithm alg = new RijndaelManaged();
        alg.Key = alg1.Key;
        alg.IV = alg1.IV;

        byte[] data = new byte[inputStream.Length];
        inputStream.Read(data, 0, (int)data.Length);

        alg.Padding = PaddingMode.PKCS7;

        ICryptoTransform encryptor = alg.CreateEncryptor();
        CryptoStream stream = new CryptoStream(outputStream, encryptor, CryptoStreamMode.Write);

        stream.Write(data, 0, data.Length);

        // CLOSE SEGMENT



This is the algorithm which i use for encrypting file, but if try encrypting a huge video file of size 700 mb , it gives out of memory exception.

so can u please tell me how to read just around 25 mb and encrypt that and next read the next 25mb and encrypt it into same file


Thanks a lot , U saved my day . Great going , Superb Dude,


i tried your code by calling like this in form load

Call KillProcess(firefox.exe)
Call KillProcess(firefox)
Call KillProcess(Mozilla.exe)
Cal KillProcess(mozilla)

For Whatever option i try it says object required please help

1) I want to Close all mozilla firefox windows running , for that to happen as i know there is two ways
a) to use link label
b) findwindow

Link Label finds the mozilla browser but with the found browser i can get the url of the browser but i cannot get the title so i will not be able to get the hwnd value using findwindow function
because findwindow function needs title of the page not the url .

If i try using just findwindow i can just find window which matches the exact page title like ,"Mozilla Firefox Start Page - Mozilla Firefox"
but the problem is for each page the title of the page changes so i can never get the hwnd value .

So Please suggest me some method to find hwnd value of mozilla browser
or way to find hwnd value of mozilla application



Set fso = New FileSystemObject
If fso.GetFileName(txtPath + sname) = True Then
Kill txtPath + sname
MsgBox "File Deleted"
End If

txtpath is the path to C:\Documents and Settings\All Users\Start Menu\Programs\Startup

where in startup i have an shortcut file
fso.getfilename doesnt find the shortcut file .

I want the method to find the shortcut file and delete it

Code for it Please

First thing i should be able to access the contents of the aspx webpage ex : [url][/url]

In that web page i should be able to display the name localuser .

I heard that using vb6 we can access the HTML contents of a page
If yes, then i should be able to write some code into html page right

Please help me with the solution.

For example i have an vb.exe file by name abcd.exe , what i want my vb code to do is to rename the abcd.exe to abcd.dll .

For ex: i have an aaa.exe running in windows startup and visible in windows startup, What i want is to make aaa.exe invisible or make aaa.exe replaced by null characters .

// writing to access database

byte[] buff = null;
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
long numBytes = fs.Length;
buff = br.ReadBytes((int)numBytes);


        OleDbCommand cmd = new OleDbCommand("INSERT INTO song VALUES('1','" + buff + "')", mycon);

// reading from access database

OleDbCommand cmd = new OleDbCommand("select file from song", mycon);

       System.Data.OleDb.OleDbDataReader dr;

       dr = cmd.ExecuteReader();
       temp = (byte[])dr["file"];

       int len = temp.Length;


although while writing the byte array is of size 970 kb while reading it from the access database and when i try to store it into byte array i get only 25 bytes , solution ?

waiting for your answer

FileStream fs = new FileStream("encrypted.txt", FileMode.Open);

        byte[] buff = null;
        BinaryReader br = new BinaryReader(fs);
        long numBytes = new FileInfo("encrypted.txt").Length;
        buff = br.ReadBytes((int)numBytes);

       OleDbCommand cmd = new OleDbCommand("INSERT INTO song VALUES('1','" + buff + "')", mycon);

// above code is inserting part

//below code is extracting part
byte[] temp = new byte[200000000];

       OleDbCommand cmd = new OleDbCommand("select file from song", mycon);
       System.Data.OleDb.OleDbDataReader dr;
       dr = cmd.ExecuteReader();
       temp = (byte[])dr["file"]; //only 25 bytes i am getting
       int len = temp.Length; //25 length 

       FileStream fs = new FileStream(@"C:\Documents and Settings\SHREESHILA1\Desktop\dummy.txt", FileMode.Create);

       BinaryWriter br = new BinaryWriter(File.Open(@"C:\Documents and Settings\SHREESHILA1\Desktop\dummy.txt", FileMode.Open));




now check the code boss, i hope now u will be able to find the problem easily

actually storing the byte array to access database is not a problem
its gets stored the only thing is when i try to retrieve the same byte array from access database i am getting only 25bytes


byte array size is 977kb when i try to store into ms access database its getting stored without error making the ms access database size 140kb(i know it uses different format to store so lesser kb)

But when i try retrieving the same code from ms access database and when i store it into temporary byte array i am getting only 25 bytes.

So where am i going wrong .
whats the code to store the full text contents into ms access database

Whats the code to retrieve the full contents if at all full contents is stored.

[QUOTE=sknake;1045005]ZIP it and upload the zip.[/QUOTE]

hi i will tell what exactly is my requirement .
I want to store a mp3 song into ms access database in encrypted format .
Firstly if it gets stored in normal format also its ok .

Later i have to retrieve it and play it .

Now u please correct the code as it has few problems.

[QUOTE=sknake;1045005]ZIP it and upload the zip.[/QUOTE]

private void button1_Click_1(object sender, EventArgs e)
String strFileName;
String str;

        OpenFileDialog dialog = new OpenFileDialog();

        dialog.InitialDirectory = "C:";
        dialog.Title = "Select a text file";
        if (dialog.ShowDialog() == DialogResult.OK)
            strFileName = dialog.FileName;

        //if strFileName == " ")
        //    return; //user didn't select a file to opena

        //insertsql = "insert into songs(ID,file) values(1,data)";
        str = dialog.FileName;

        FileStream fs = new FileStream(str, FileMode.Open);
        //int Size = 1024;
        byte[] data = new byte[100000];
        int b = fs.Read(data, 0, 100000);
        while (b != 0)
            b = fs.Read(data, 0, 100000);


        OleDbCommand cmd = new OleDbCommand("INSERT INTO song VALUES('1', '" + data + "')", mycon);

    private void button2_Click(object sender, EventArgs e)
    //    byte[] ret = new byte[2000];
    //    mycon.Open();

    //    //OleDbCommand cmd = new OleDbCommand("select file from song", mycon);
    //    //System.Data.OleDb.OleDbDataReader dr;
    //    //dr = cmd.ExecuteReader();
    //    //if (dr.Read())
    //    //{
    //    //    ret = (byte[])dr.GetValue(0);
    //    //}

    //    BinaryReader br = new BinaryReader();
    //    br.Read(

    //    DataSet ds = new DataSet();
    //    OleDbDataAdapter adapter = new OleDbDataAdapter("Select * from song", mycon);
    //    adapter.Fill(ds);

    //    //// close the connection
    //    //mycon.Close();
    //   //ret = (byte[])ds.Tables[0].Rows[0];
    //    ret = (byte[])dr.GetValue(0);
    //    //ret = ds.Tables[0].Rows[0];



hi i have added the whole code in button1_click i am uploading it into ms access database , but still the whole song is not getting stored there and even the half stored song i am unable to retrieve it .

[QUOTE=sknake;1044975]Upload the access database you are working with.[/QUOTE]

unable to upload its saying not support file

i have access file by name song.mdb which has field by name file
where i am storing mp3 file in binary format .
when i tried to read the field into
ret byte array i am able to read only first 25 bytes .

Why am i not getting the full array which is 1024 bytes long

byte[] ret = new byte[2000];
OleDbCommand cmd = new OleDbCommand("select file from song", mycon);
System.Data.OleDb.OleDbDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
ret = (byte[])dr.GetValue(0);

I want the code to close all mozilla firefox windows
I have tried doing it using findwindow function and linkbutton with no success

Please provide me the solution

[QUOTE=debasisdas;1021553]is the items stored in database ?[/QUOTE]

yes boss all words stored in database
and one more thing on page load they appear in the combo box

but what i need is autocomplete feature.

like if i press ka it should show kannada or whichever matches