Error found while saving. System.Data.OleDb.OleDbException (0x80040E10): No value given for one or more required parameters.

Hello Friends
I am facing problem while saving the data into the ms access 2007.
Below picture shows my database and table
Below picture shows my error log.
Here is my GettingCategoryId() method code.
private OleDbCommand GettingCategoryId()
OleDbCommand cmd2 = new OleDbCommand("select * from tbl_category where category_name='" + combobox_category_name.Text + "' ", GlobalVarClass.globalCon);
OleDbDataReader dr = cmd.ExecuteReader();
while (dr.Read())
textBox1.Text = Convert.ToString(dr.GetInt32(0));
return cmd2;
Here is my conv_photo() method code.
void conv_photo()
//converting photo to binary data
if (pictureBox1.Image != null)
ms = new MemoryStream();
pictureBox1.Image.Save(ms, ImageFormat.Jpeg);
byte[] photo_aray = new byte[ms.Length];
ms.Position = 0;
ms.Read(photo_aray, 0, photo_aray.Length);
cmd.Parameters.AddWithValue("@item_image", photo_aray);
Here is my connection string.
public static string gloabal_connection_string = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= " + Application.StartupPath + "\\pos_fircos.accdb";
public static OleDbConnection globalCon = new OleDbConnection(gloabal_connection_string);
This is my saving code.
OleDbCommand cmd = GettingCategoryId();
cmd = new OleDbCommand("INSERT INTO tbl_items(category_id,item_no,item_model,item_description,item_sale_price,item_image)Values('" + Convert.ToInt32(textBox1.Text) + "','" + Convert.ToString(textbox_item_no.Text) + "','" + Convert.ToString(textbox_item_model.Text) + "','" + Convert.ToString(textbox_item_description.Text) + "','" + Convert.ToDouble(textbox_item_sale_price.Text) + "',@item_image)", GlobalVarClass.globalCon);
conv_photo();
cmd.ExecuteNonQuery();
Please give me solution this problem.
Waiting for your reply.
Thanks and regards
Your truly,
Hasnain Ahmad
[email protected]

I strongly recommend that you change your command from using string formatting to build up the command to a simple command that uses parameters.  This will: a) clean up your code so it is understandable, b) prevent SQL injection attacks which your current
code is fully vulnerable to, c) help more easily identify which parameter you aren't actually setting.
//Not validated against the compiler so there may be syntax errors
var cmd = new OleDbCommand("INSERT INTO tbl_items(category_id,item_no,item_model,item_description,item_sale_price,item_image) Values (@categoryId, @itemNo, @itemModel, @itemDescription, @itemPrice, @itemImage)", GlobalVarClass.globalCon);
cmd.Parameters.AddWithValue("@categoryId", Convert.ToInt32(textBox1.Text));
cmd.Parameters.AddWithValue("@itemNo", textbox_item_no.Text);
cmd.Parameters.AddWithValue("@itemModel", textbox_item_model.Text);
cmd.Parameters.AddWithValue("@itemDescription", textbox_item_description.Text);
cmd.Parameters.AddWithValue("@itemPrice", Convert.ToDouble(textbox_item_sale_price.Text));
//This is the parameter that doesn't seem to have any value so replace ?? with the variable holding the value of the image
cmd.Parameters.AddWithValue("@itemImage", ??);
conv_photo();
cmd.ExecuteNonQuery();
Michael Taylor
http://blogs.msmvps.com/p3net

Similar Messages

  • Error-No value given for one or more required parameters when using oleDBDa

    Hello,
    I have this sql statement and it works well, the Crystal Report gives good result when I put concrete values like:
    string comstring = "SELECT NOVI.GBR as gbrnov, NOVI.AB as abnov, NALOG1.DATA as datanov, Min(NALOG1.POCKM) AS MinOfPOCKM, Max(NALOG1.KRAJKM) AS MaxOfKRAJKM, (Max(NALOG1.KRAJKM)-Min(NALOG1.POCKM)) AS RAZLIKA, Count(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)) AS Gorivo, Avg(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)/100) AS potrosgor100km, Sum(IIf(([MAGACIN.SIFRA]='0993050' Or [MAGACIN.SIFRA]='0993051'),[MAGACIN.KOL],Null)) AS Motmaslo, Sum(IIf(([MAGACIN.SIFRA]='0992201'),[MAGACIN.KOL],Null)) AS Addblue, ([Addblue]/[Gorivo])100 AS Addbluegor, Sum(IIf(([MAGACIN.SIFRA]='0999001'),[MAGACIN.KOL],Null)) AS Antifriz, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA',''))) AS Zabeleska FROM (NALOG1 INNER JOIN NOVI ON NALOG1.GBRV = NOVI.GBR) INNER JOIN MAGACIN ON NOVI.GBR = MAGACIN.GBR where (((NOVI.GBR)>='1001' And (NOVI.GBR)<='1080') AND ( ((NOVI.AB)='AK') OR ((NOVI.AB)='AK') ) AND ((NALOG1.DATA)<=#10/31/2011# and (NALOG1.DATA)>=#10/31/2011#) ) GROUP BY NOVI.GBR, NOVI.AB, NALOG1.DATA, ([Addblue]/[Gorivo])100, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA','')))";          
    but when I use code like this :
    string comstring = "SELECT NOVI.GBR as gbrnov, NOVI.AB as abnov, NALOG1.DATA as datanov, Min(NALOG1.POCKM) AS MinOfPOCKM, Max(NALOG1.KRAJKM) AS MaxOfKRAJKM, (Max(NALOG1.KRAJKM)-Min(NALOG1.POCKM)) AS RAZLIKA, Count(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)) AS Gorivo, Avg(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)/100) AS potrosgor100km, Sum(IIf(([MAGACIN.SIFRA]='0993050' Or [MAGACIN.SIFRA]='0993051'),[MAGACIN.KOL],Null)) AS Motmaslo, Sum(IIf(([MAGACIN.SIFRA]='0992201'),[MAGACIN.KOL],Null)) AS Addblue, ([Addblue]/[Gorivo])100 AS Addbluegor, Sum(IIf(([MAGACIN.SIFRA]='0999001'),[MAGACIN.KOL],Null)) AS Antifriz, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA',''))) AS Zabeleska FROM (NALOG1 INNER JOIN NOVI ON NALOG1.GBRV = NOVI.GBR) INNER JOIN MAGACIN ON NOVI.GBR = MAGACIN.GBR where (((NOVI.GBR)>=? And (NOVI.GBR)<=?) AND ( ((NOVI.AB)=?) OR ((NOVI.AB)=?) ) AND ((NALOG1.DATA)<=? and (NALOG1.DATA)>=?) ) GROUP BY NOVI.GBR, NOVI.AB, NALOG1.DATA, ([Addblue]/[Gorivo])100, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA','')))";
    Edited by: Don Williams on Nov 23, 2011 7:22 AM

    and the code after that:
    command.CommandText = comstring;
                if (radioButton4.Checked == true)
                    if (textBox1.Text == "")
                        button1.Enabled = false;
                        MessageBox.Show("Внесете гаражен број", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        textBox1.Focus();
                        command.Parameters.AddWithValue("@gbr1", textBox1.Text);
                        command.Parameters.AddWithValue("@gbr2", textBox1.Text);               
                else if (radioButton5.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1001");
                    command.Parameters.AddWithValue("@gbr2", "1080");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else if (radioButton6.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1081");
                    command.Parameters.AddWithValue("@gbr2", "1149");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else if (radioButton7.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1001");
                    command.Parameters.AddWithValue("@gbr2", "1149");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else
                    MessageBox.Show("Немате избрано гаражен број или тип на автобус.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    button1.Enabled = false;
                if (checkBox1.Checked == true && checkBox2.Checked==true)
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = true;
                else if ((checkBox1.Checked == true) && (checkBox2.Checked == false))
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "AK");
                    button1.Enabled = true;
                else if (checkBox2.Checked == true )
                    command.Parameters.AddWithValue("@ab1", "GP");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = true;
                else
                    MessageBox.Show("Немате избрано автобаза.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = false;
                command.Parameters.AddWithValue("@data1", dateTimePicker1.Value.Date);
                command.Parameters.AddWithValue("@data2", dateTimePicker2.Value.Date);
                 DataSet2 dataSet2=new DataSet2();    
                 OleDbDataAdapter oleDBDataAdapter1 = new OleDbDataAdapter();
                oleDBDataAdapter1.SelectCommand=command;
                    dataSet2.Clear();
                    oleDBDataAdapter1.Fill(dataSet2,"Tabela");
                    if (dataSet2.Tabela.Count == 0)
                        MessageBox.Show("Nema podatoci za toj period");
                    ReportDocument cryRpt = new ReportDocument();
                    cryRpt.Load(@"C:\Potrosuvacka-Pregledi\Potrosuvacka-Pregledi\CrystalReport6.rpt");
                cryRpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
                    cryRpt.SetDataSource(dataSet2);
                    crystalReportViewer1.DisplayToolbar=true;
                crystalReportViewer1.ReportSource = cryRpt;                      
                crystalReportViewer1.Refresh();
                    conn.Close();
    I get an error:
    "No value given for one or more required parameters."
    Could anybody help me please?
    Thank you in advance.
    Edited by: nelpet06 on Nov 23, 2011 9:30 AM

  • I am trying to create a community addition, but just keep getting *Error occurred while saving your data.

    I am trying to create a community addition, but just keep getting   *Error occurred while saving your data.
    Trying to add the following community addtion for:     http://technet.microsoft.com/en-us/library/cc755631(v=ws.10).aspx
    In the above website do NOT copy the command, you have to type it in.  Webpage Error.
    You can use both    dsquery server –hasfsmo schema    and    dsquery server -forest –hasfsmo schema
    The problem is, I believe, a hidden character in the command on this webpage which follows the Paste function and results in the error Unknown Parameter error.

    Hi John,
    You might have better luck posting this in the library feedback forum here:
    http://social.msdn.microsoft.com/Forums/en-us/home?forum=libraryfeedback&filter=alltypes&sort=lastpostdesc
    It seems odd to me that the TechNet library feedback forum lives under the MSDN branding, but that seems to be the case.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • System.Data.OleDb.OleDbException reading big number

    I have in my oracleserver (8.1.7) a table with a column declared as number. Writing into this column a big floating number like 1E30 and
    reading this row with a OleDbDataAdapter or OleDbDataReader ends in the following exception:
    System.Data.OleDb.OleDbException: Accessor is not a parameter accessor
    Strange:
    - Writing 1e30 to a number column (via OleDbDataAdapter) works fine (checked with SQL*).
    - Writing 1e-30 to a number column works fine too, but reading it returns 0.
    I use OraOleDB 9.2.0.4.0. Those Problems occures under framework 1.0 and 1.1.
    Anybody knows a solution? Do I have to live with DB double data between 1e-27 and 1e27?
    Thanks,
    Michael

    Hello Pablo,
    And how does your connection string "strXLS" looks like?
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • System.Data.OleDb.OleDbException: Overflow

    [OleDbException (0x80040e57): Overflow]
    System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +44
    System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +233
    System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +190
    System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
    System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +163
    System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +103
    Accountgegevens.verzendenButton_Click(Object sender, EventArgs e) in c:\Users\Admin\Documents\My Web Sites\De webwinkel\Accountgegevens.aspx.cs:55
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +109
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +31
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3460

    Hello,
    The Overflow exception may occurs with type conversion problems in your query. For example, insert a string into an integer column.
    Please try to run the query in debug mode and see whether there are the incorrect data types.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Error occured while saving trade promotion if a control message is given

    Hi all,
    While creating a trade promotion, we want to control the products and if there is/are not available for our criteria, we want to give an error message and stop the application. I put this control message in the BADI ( EXEC_METHODCALL_PPF -> method : EXECUTE ) that generates a form for the event. In GUI there is no problem, it gives the error message and stops. But in PCUI if this message is given, error page appears like that :
    Message E SPPF_MEDIA 052 cannot be processed in plugin mode HTTP
    Class     -> CX_SY_MESSAGE_IN_PLUGIN_MODE
    Program -> CL_CRM_BSP_FRAME_MAIN ==...CP
    ABAP Class -> CL_CRM_BSP_FRAME_MAIN
    Method        -> DO_REQUEST
    thanks,

    Preferences > Plug Ins & Scratch Disks ( you can select up to 4 sources or drives starting with your startup drive ).  You found Web Settings, but what you want is Illustrator Preferences ( should be found in a source file titled Preferences on you C Drive ).  You may or may not have to delete the Preferences file which will automatically be rebuilt at default settings upon restart.  Your RAM requiremnts may be as low as 256mb, but that is just a starting put.  You need enough RAM to run your operating system and peripherals, as well as other apps you want open the same time you have Illustrator open.  Deleting the Illustrator Prefertences file may not be necessary in your case.  Setup the scratch disks first.

  • Error Message While Saving Data : ORA-00372

    Hi,
    I am Getting this Error Message while Saving the data from frontend.
    ORA-00372: file 5 cannot be modified at this time
    ORA-01110: data file 5: '/db/d401/CHG_arsystem_01.dbf'
    Thanks.

    This might be the case when DBA is trying to make tablespce read only and some transaction is waiting for commit read only command is in hang state.
    Check with your DBA to know the datafile status.
    Dilipkumar Patel.

  • Can't save BISM file pointing to excel sheet (data source). ErrMsg: "There were errors found while validating the page: Cannot connect to the server or database."

    Hi,
    Me and a collegue is administrering our new enterprise BI portal in SharePoint 2013 (On Premise) and have a problem with using a specific Excel file including general ledger data as data source through a BISM file.
    This particular BISM file can't be saved without getting the error message "There were errors found while validating the page: Cannot connect to the server or database."
    BISM files against other Excel sheets and sources (for example SSAS tabular databases) works well.
    Can anyone help us pinpointing whats wrong here, this is a really important stakeholder in our organization requesting this reporting?
    Cheers!

    Hi E.SWARD ,
    My self created a Power pivot excel then i want to use this excel to create BI file . Still i am getting the same error . Pls help me to resolve this issue
    Cannot connect to the server or database.
    I am getting the similar error , if i use Tabular analysis server instance .
    Subhash

  • Error 8 while loading the data from the souce system

    Hi Gurus
    Every day we are loading some data from one of our souce systems through process chain
    But today all the loads failed complaining about error 8 while extacting the data
    connection to source system is fine
    we have the problem while loading master data from the same source system
    any solution?
    Thanks in advance

    Hi,
    Check with basis team regarding any patches applied in source system or not ? If yes then replicate all data sources and activate again.
    hope it helps...
    regards,
    Raju

  • Raw Read Error Rate, Errors occurred while reading raw data from a disk

    hi
    when I turn my pavilion dv6 2170ee computer on screen shows below error.
    system diognostics (F2) does not any work
    and when my windows7 comming up this error was shown.
    I install Hard Disk Sentinel software and this program shows below:
    Failure Predicted - Attribute: 1 Raw Read Error Rate, Errors occurred while reading raw data from a disk. Indicate problem with the disk surface or the read/write heads.
    There are 28 weak sectors found on the disk surface. They may be remapped any time in the later use of the disk.
    26848 errors occured during data transfer. This may indicate problem of the device or with data/power cables. It is recommended to examine and replace the cables if possible.
    Replace hard disk immediately.
    how can I fix it?
    may drive format (Fdisk) and renewing windows can fix it?
    tanx and regards
    Mohammad

    Hello mohkhosh,
    I see that you're getting an error indicating possible hard driver failure, that you have this message from 3 different sources. I will try to help you with this.
    After reviewing everything  you're looking at needing to replace the hard drive. I would suggest contacting support to see what they can do for you.
    HP Technical Support, North America 1-800-474-6836. For all other regions click here.
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Error occured while writing cube data

    Hi all,
    I was working around with the manage ownership section. When i tried to change [PCON] or [POWN] values and save it, I get an error message saying "Error occurred while writing cube data". After doing some googling I found out that this was because [PCON] and [POWN] are system accounts and hence we cannot submit data to it.
    Is there any way how I can resolve this issue? I have 2-3 entities which have minority and do not have 100% ownership/consolidation. Please help me out in this matter.
    Regards,
    Ramith

    It should work, check if this helps. Page 133 http://docs.oracle.com/cd/E12825_01/epm.111/hfm_user.pdf

  • Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. at System.Data.OleDb.OleDbServicesWrapper

    HI
    when i copy asp.net 3.5  application  from IIS7 to IIS 8 in windows server 2012 and browse the application and try to save data in oracle , i  get following error in Event viewer
    Log Name:      Application
    Source:        ASP.NET 4.0.30319.0
    Date:          4/6/2015 2:53:21 PM
    Event ID:      1309
    Task Category: Web Event
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      TSharepint2013.test.com
    Description:
    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 17/06/36 02:53:21 ? 
    Event time (UTC): 17/06/36 11:53:21 ? 
    Event ID: 34f214e1dcdf45f5ad8450739c954494 
    Event sequence: 24 
    Event occurrence: 1 
    Event detail code: 0 
    Application information: 
    Process information: 
        Process ID: 18724 
        Process name: w3wp.exe 
        Account name: TEST\splaw 
    Exception information: 
        Exception type: InvalidOperationException 
        Exception message: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
       at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.OleDb.OleDbConnection.Open()
       at printLawsuit.RetJudgement(Int32 x) in C:\inetpub\wwwroot\wss\VirtualDirectories\Law\ExecutionReq\printLawsuit.aspx.vb:line 2374
       at printLawsuit.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\wss\VirtualDirectories\Law\ExecutionReq\printLawsuit.aspx.vb:line 44
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information: 
     Request URL: http://-----:50/executionreq/printLawsuit.aspx 
        Request path: /executionreq/printLawsuit.aspx 
        User host address: ---3.184 
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: TEST\Spfarm 
    Thread information: 
        Thread ID: 16 
        Thread account name: TEST\Spfarm 
        Is impersonating: False 
        Stack trace:    at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.OleDb.OleDbConnection.Open()
       at printLawsuit.RetJudgement(Int32 x) in C:\inetpub\wwwroot\wss\VirtualDirectories\Law\ExecutionReq\printLawsuit.aspx.vb:line 2374
       at printLawsuit.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\wss\VirtualDirectories\Law\ExecutionReq\printLawsuit.aspx.vb:line 44
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Custom event details: 
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="ASP.NET 4.0.30319.0" />
        <EventID Qualifiers="32768">1309</EventID>
        <Level>3</Level>
        <Task>3</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-04-06T11:53:21.000000000Z" />
        <EventRecordID>174735</EventRecordID>
        <Channel>Application</Channel>
        <Computer>TSharepint2013.test.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>3005</Data>
        <Data>An unhandled exception has occurred.</Data>
        <Data>17/06/36 02:53:21 ?</Data>
        <Data>17/06/36 11:53:21 ?</Data>
        <Data>34f214e1dcdf45f5ad8450739c954494</Data>
        <Data>24</Data>
        <Data>1</Data>
        <Data>0</Data>
        <Data>/LM/W3SVC/3/ROOT/ExecutionReq-1-130727947211114471</Data>
        <Data>Full</Data>
        <Data>/ExecutionReq</Data>
        <Data>C:\inetpub\wwwroot\wss\VirtualDirectories\Law\ExecutionReq\</Data>
        <Data>TSHAREPINT2013</Data>
        <Data>
        </Data>
        <Data>18724</Data>
        <Data>w3wp.exe</Data>
        <Data>TEST\splaw</Data>
        <Data>InvalidOperationException</Data>
        <Data>The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
       at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper&amp; datasrcWrapper)
       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&amp; connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.OleDb.OleDbConnection.Open()
       at printLawsuit.RetJudgement(Int32 x) in C:\inetpub\wwwroot\wss\VirtualDirectories\Law\ExecutionReq\printLawsuit.aspx.vb:line 2374
       at printLawsuit.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\wss\VirtualDirectories\Law\ExecutionReq\printLawsuit.aspx.vb:line 44
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    </Data>
        <Data>http://----:50/executionreq/printLawsuit.aspx</Data>
        <Data>/executionreq/printLawsuit.aspx</Data>
        <Data>10.169.3.184</Data>
        <Data>
        </Data>
        <Data>False</Data>
        <Data>
        </Data>
        <Data>TEST\Spfarm</Data>
        <Data>16</Data>
        <Data>TEST\Spfarm</Data>
        <Data>False</Data>
        <Data>   at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper&amp; datasrcWrapper)
       at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, 
    </Data>
      </EventData>
    </Event>
    adil

    Hi,
    As this question is more relate to iis, I suggest you post it to IIS Forum, you will get more help and confirmed answers from there.
    http://forums.iis.net/
    Best regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error occured while reading identity data: failed to decrypt safe contents

    Hello,
    We are trying to access Tibco JMS server through SSL using JNDI lookup. Getting the following error, while executing a sample java file.
    Java Version -
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
    Please let me know if any of you faced similar issues.
    thanks in advace.
    Following are the error messages.
    javax.jms.JMSSecurityException: Error occured while reading identity data: failed to de
    crypt safe contents entryCOM.rsa.jsafe.SunJSSE_cs: Could not perform unpadding: invalid
    pad byte. at com.tibco.tibjms.TibjmsSSL._identityFromStore(TibjmsSSL.java:2699)
    at com.tibco.tibjms.TibjmsSSL.createIdentity(TibjmsSSL.java:2604)
    at com.tibco.tibjms.TibjmsxLinkSSL._initSSL(TibjmsxLinkSSL.java:291)
    at com.tibco.tibjms.TibjmsxLinkSSL.connect(TibjmsxLinkSSL.java:338)
    at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:611)
    at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:1772)
    at com.tibco.tibjms.TibjmsTopicConnection.<init>(TibjmsTopicConnection.java:37)
    at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:139)
    at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:201)
    at com.tibco.tibjms.TibjmsTopicConnectionFactory.createTopicConnection(TibjmsTo
    picConnectionFactory.java:84)
    at tibjmsSSLJNDI.<init>(tibjmsSSLJNDI.java:202)
    at tibjmsSSLJNDI.main(tibjmsSSLJNDI.java:252)
    ##### Linked Exception:
    com.tibco.security.AXSecurityException: failed to decrypt safe contents entryCOM.rsa.js
    afe.SunJSSE_cs: Could not perform unpadding: invalid pad byte.
    at com.tibco.security.impl.j2se.IdentityImpl.init(IdentityImpl.java:70)
    at com.tibco.security.IdentityFactory.createIdentity(IdentityFactory.java:61)
    at com.tibco.tibjms.TibjmsSSL._identityFromStore(TibjmsSSL.java:2680)
    at com.tibco.tibjms.TibjmsSSL.createIdentity(TibjmsSSL.java:2604)
    at com.tibco.tibjms.TibjmsxLinkSSL._initSSL(TibjmsxLinkSSL.java:291)
    at com.tibco.tibjms.TibjmsxLinkSSL.connect(TibjmsxLinkSSL.java:338)
    at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:611)
    at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:1772)
    at com.tibco.tibjms.TibjmsTopicConnection.<init>(TibjmsTopicConnection.java:37)
    at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:139)
    at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:201)
    at com.tibco.tibjms.TibjmsTopicConnectionFactory.createTopicConnection(TibjmsTo
    picConnectionFactory.java:84)
    at tibjmsSSLJNDI.<init>(tibjmsSSLJNDI.java:202)
    at tibjmsSSLJNDI.main(tibjmsSSLJNDI.java:252)
    Subexception stack trace follows:
    java.io.IOException: failed to decrypt safe contents entryCOM.rsa.jsafe.SunJSSE_cs: Cou
    ld not perform unpadding: invalid pad byte.
    at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(Unknown Source)
    at java.security.KeyStore.load(Unknown Source) at com.tibco.security.impl.j2se.IdentityImpl.init(IdentityImpl.java:66)
    at com.tibco.security.IdentityFactory.createIdentity(IdentityFactory.java:61)
    at com.tibco.tibjms.TibjmsSSL._identityFromStore(TibjmsSSL.java:2680)
    at com.tibco.tibjms.TibjmsSSL.createIdentity(TibjmsSSL.java:2604)
    at com.tibco.tibjms.TibjmsxLinkSSL._initSSL(TibjmsxLinkSSL.java:291)
    at com.tibco.tibjms.TibjmsxLinkSSL.connect(TibjmsxLinkSSL.java:338)
    at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:611)
    at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:1772)
    at com.tibco.tibjms.TibjmsTopicConnection.<init>(TibjmsTopicConnection.java:37)
    at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:139)
    at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:201)
    at com.tibco.tibjms.TibjmsTopicConnectionFactory.createTopicConnection(TibjmsTo
    picConnectionFactory.java:84)
    at tibjmsSSLJNDI.<init>(tibjmsSSLJNDI.java:202)
    at tibjmsSSLJNDI.main(tibjmsSSLJNDI.java:252)
    Caused by: COM.rsa.jsafe.SunJSSE_cs: Could not perform unpadding: invalid pad byte.
    at COM.rsa.jsafe.SunJSSE_al.a(Unknown Source)
    at COM.rsa.jsafe.SunJSSE_ag.a(Unknown Source)
    at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.a(Unknown Source)
    ... 16 more
    Subexception stack trace follows:
    java.io.IOException: failed to decrypt safe contents entryCOM.rsa.jsafe.SunJSSE_cs: Cou
    ld not perform unpadding: invalid pad byte.
    at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(Unknown Source)
    at java.security.KeyStore.load(Unknown Source)
    at com.tibco.security.impl.j2se.IdentityImpl.init(IdentityImpl.java:66)
    at com.tibco.security.IdentityFactory.createIdentity(IdentityFactory.java:61)
    at com.tibco.tibjms.TibjmsSSL._identityFromStore(TibjmsSSL.java:2680)
    at com.tibco.tibjms.TibjmsSSL.createIdentity(TibjmsSSL.java:2604)
    at com.tibco.tibjms.TibjmsxLinkSSL._initSSL(TibjmsxLinkSSL.java:291)
    at com.tibco.tibjms.TibjmsxLinkSSL.connect(TibjmsxLinkSSL.java:338)
    at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:611)
    at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:1772)
    at com.tibco.tibjms.TibjmsTopicConnection.<init>(TibjmsTopicConnection.java:37)
    at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:139)
    at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:201)
    at com.tibco.tibjms.TibjmsTopicConnectionFactory.createTopicConnection(TibjmsTo
    picConnectionFactory.java:84)
    at tibjmsSSLJNDI.<init>(tibjmsSSLJNDI.java:202)
    at tibjmsSSLJNDI.main(tibjmsSSLJNDI.java:252)
    Caused by: COM.rsa.jsafe.SunJSSE_cs: Could not perform unpadding: invalid pad byte.
    at COM.rsa.jsafe.SunJSSE_al.a(Unknown Source)
    at COM.rsa.jsafe.SunJSSE_ag.a(Unknown Source)
    at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.a(Unknown Source)
    ... 16 more

    For the benifit of others.
    The issue is resolved.
    When we set the certificate password inside our application we were encrypting it inside our system.
    When we sent it to tibco we did not decrypt it.
    So the encrypted password was sent as it is that was the issue :(
    Thanks,
    Reflex.

  • Error occured while saving the user account information

    I'm trying to install LiveCycle ES 2 with PDF Generator on a Windows 2008 server wtih SQL Server 2005.  When I run the configuration manager I get an error in the step where you add the administrator user credentials for generator.  The error I'm receiving is ALC-PDG-080-032-Error occured while saving the user account information.  Has anyone seen this issue before?  Any ideas on what the problem may be?

    Going back some time, another user (do not recall Matrox on the system) had a similar issue. The workaround in that case was to use Save_As and just increment the file name. Now, I do not recall any real "fix," and for another user, the Save_As resulted in the same behavior, so it was not a universal workaround.
    Good luck, and please report your findings,
    Hunt

  • Error occured while saving ume properties

    Hi All,
    We have installed SAP ERP 6.0 SR3 central instance(ABAP+JAVA)
    I logged into Enterprise Portal using J2EE_ADMIN user.
    I am trying to change properties in System Administration --> System configuration --> UME Configuration --> ABAP System.
    I changed properties then i clicked on 'Saved All changes' button. I am getting following error.
    "An error occured while saving UME Properties. contact your system administrator'
    I want solution to move forward.
    Regards,
    Phanikumar.

    Hi Phanikumar.
    Please check whether J2EE_ADMIN is having super administrator role in portal or not.
    If you have assigned system administration role directly then it might be the case.
    You can try with config tool if still you are getting the problem in the portal
    Hope it helps
    Regards
    Arun

Maybe you are looking for

  • Where is the reader button in safari OS7

    I can't find the reader button in the new updated safari for OS7. It made reading newspaper articles so easy. The adds were eliminated and the article text was enlarged. The reader button was in the old address bar in many pages such as the NY Times.

  • Subtitles On / Off on a Pop Up Menu

    Hey guys, I just created my first pop up menu in Encore, and it looks great.  (But wouldn't it be better if it animated up from the botton of the screen?) My pop-up menu has 2 buttons, subitles On or Subtitles Off.  Right now the disc just starts fro

  • From cs2 to cs5 and i'm stuck already!

    Hi, just loaded my brand new photoshop cs5 extended, a big jump from cs2, and i'm stuck! I create a new page to build a design on, i open an image and it replaces the page, i open a different image and it replaces the last image. if i delete the last

  • Can this be solved by a nested query?

    Hello, Can anybody help me? Thanks a lot. We have a test system that test production units, and output data to the TestData table in the database. The TestData table schema is like the follows. For each unit, it may pass the test system for multiple

  • Unable to install Solaris 10 on Dell PowerEdge 2850

    The Kernel boots from CD without any problem but the "configuring devices" stage lasts very long without any progress/success. The following messages appear, and the install seems to hang at this point: Attempting to configure interface e1000g1 Skipp