Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Data Provider for .NET. Please Contact Provider

635401Apr 22 2008 — edited Aug 2 2012
Hello,
I am getting the
"An unexpected error occurred in the Oracle Data Provider for .NET. Please contact the provider vendor to resolve this problem." in visual studio 2008 server explorer.
I have tried all I could by going through different threads on this forum. I have copied the the msvcr71.DLL to C:\app\afshin\product\11.1.0\client_1\bin and C:\app\afshin\product\11.1.0\client_1 and checked the path
C:\app\afshin\product\11.1.0\client_1\bin;C:\OraHome_1\bin;C:\oracle\produc
\10.2.0\db_1\bin;C:\app\afshin\product\11.1.0\client_1;
and machine config. Can some one help? Could installing other products such as CoseSmith cause this? I am using Oracle 10.2.0 and have client 11.1.0 installed. I can access data from visual studio; however server explorer, debugger for oracle, and all oracle tools are not functioning.

Comments

843804
Extend your own JTextArea :)
843804
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.*;
import java.io.*;
import java.net.*;
import javax.imageio.*;
import javax.swing.*;
import javax.swing.border.*;

public class CentredBackgroundBorder implements Border {
    private final BufferedImage image;

    public CentredBackgroundBorder(BufferedImage image) {
        this.image = image;
    }

    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
        x += (width-image.getWidth())/2;
        y += (height-image.getHeight())/2;
        ((Graphics2D) g).drawRenderedImage(image, AffineTransform.getTranslateInstance(x,y));
    }

    public Insets getBorderInsets(Component c) {
        return new Insets(0,0,0,0);
    }

    public boolean isBorderOpaque() {
        return true;
    }

    //demo
    public static void main(String[] args) throws IOException {
        JFrame.setDefaultLookAndFeelDecorated(true);
        JTextArea area = new JTextArea();
        area.setForeground(Color.GREEN);
        area.setOpaque(false);
        area.read(new FileReader("CentredBackgroundBorder.java"), null);
        String url = "http://today.java.net/jag/bio/JagHeadshot.jpg";
        JScrollPane sp = new JScrollPane(area);
        sp.getViewport().setOpaque(false);
        sp.setViewportBorder(new CentredBackgroundBorder(ImageIO.read(new URL(url))));

        JFrame f = new JFrame("BackgroundBorderExample");
        f.getContentPane().add(sp);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setSize(600,400);
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    }
}
843804
Thank you for your help !!^^
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 30 2012
Added on Apr 22 2008
9 comments
10,689 views