Question : Open Sharepoint server's pdf file in asp.net...

Hi,

Want to Open a pdf file in asp.net  which is in the sharepoint server..
I 've used the code below...


            System.Net.WebClient client = new System.Net.WebClient();

            string path = "http://hawaii:9999/Functions/HumanResource/HR/Employee%20Handbook/GE%20Emp%20Handbook.pdf";

            Byte[] buffer = client.DownloadData(path);

            if (buffer != null)
            {
                Response.ContentType = "application/pdf";
                Response.AddHeader("content-length", buffer.Length.ToString());
                Response.BinaryWrite(buffer);
            }
Then its giving exception like

The remote server returned an error: (401) Unauthorized.

what to do to solve this problem..

Answer : Open Sharepoint server's pdf file in asp.net...

Do you have access to the oracle software owner account for the Grid Database?  If so you can use the following to connect as sys to run the alter system command and connect to rman to run crosscheck and delete commands.

While logged in as the oracle software owner account for the Grid/OMS Database:

connect as sys:
$ sqlplus / as sysdba
SQL> alter system set db_recovery_file_dest_size=100G scope=both;

Connect to target database with RMAN catalog:
$ rman TARGET / CATALOG rman@RCAT

Connect to target database without RMAN catalog:
$ rman TARGET /

Then you can run your crosscheck and delete commands:

RMAN>
crosscheck backupset;
crosscheck copy;
crosscheck archivelog all;
delete noprompt obsolete;
delete noprompt expired backup;
delete noprompt expired copy;

If you don't have access to the oracle sofware owner account or sys privileges you'll need to obtain the access before you can make these changes.

Random Solutions  
 
programming4us programming4us