Error while importing excel file into mysql database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sejal17
    New Member
    • Dec 2007
    • 56

    #1

    Error while importing excel file into mysql database

    Hello Every one,

    I am trying to import excel file data in to mysql database table,the code for import excel file is working fine in local system but when i am testing it online webpage it display error like

    "System.Securit y.SecurityExcep tion: That assembly does not allow partially trusted callers."

    If any one have solution then plz help me..

    Thanks in Advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sejal17
    Hello Every one,

    I am trying to import excel file data in to mysql database table,the code for import excel file is working fine in local system but when i am testing it online webpage it display error like

    "System.Securit y.SecurityExcep tion: That assembly does not allow partially trusted callers."

    If any one have solution then plz help me..

    Thanks in Advance.
    Which library are you using?
    Have you tried to add AllowPartiallyT rustedCallersAt tribute the assembly?

    Comment

    • sejal17
      New Member
      • Dec 2007
      • 56

      #3
      Originally posted by r035198x
      Which library are you using?
      Have you tried to add AllowPartiallyT rustedCallersAt tribute the assembly?
      can you please tell me how to add that assembly?

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by sejal17
        can you please tell me how to add that assembly?
        Sorry I meant to set that attribute for the assembly.

        Comment

        • sejal17
          New Member
          • Dec 2007
          • 56

          #5
          I am beginner in asp.net so can you plz tell me
          how to set this attribute and where i have to set it?

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by sejal17
            I am beginner in asp.net so can you plz tell me
            how to set this attribute and where i have to set it?
            See if this link helps.

            Comment

            Working...