Showing posts with label Dynamic-link library. Show all posts
Showing posts with label Dynamic-link library. Show all posts

11 August, 2011

MSVCR100.DLL error

Ivor Horton's Beginning Visual C++ 2010 (Wrox Programmer to Programmer)There is one other thing that got my time in the past week. One error, and a very consistent one.

"c:\windows\system32\msvcr100.dll is either not designed to run on Windows or it contains an error"

The proposed solution is to reinstall the application.

That means I have to reinstall Visual Studio 2010.

That means reinstalling Adobe Photoshop Lightroom 3.

Etc., etc., etc.

Top Registry Cleaner Offer

The funny thing that I did is to search out a possible solution to this problem, and what I found in the web is to simply download the dll file with the same name, which I did, msvcr100.dll, from a page in the world wide web who knows where, but I completely trusted without a question or doubt, then tried to copy it to the folder as instructed.

As it turned out, what was offered is for 32-bit OS, and since I'm running 64-bit, the file was not recognized.

Visual Studio 2010 Professional UpgradeThen I realized, it could be loaded with virus!

My, my. I simply swallowed the hook, line and sinker.


I paused a bit, then some more, and as I regained my composure and my wits returned to their proper places, I went to msdn, and searched for ways to fix MSVCR100.DLL error.

I found the solution on reinstalling the MS Visual C++ redistributable package, and I downloaded the exe file, ran it, and voila! That solved my problem!

Which file was that again? vcredist_x86.exe.

I actually wasted a lot of time following the 'try reinstalling' proposal, which I did a number of times, and if you know how long it takes for the installation to run, you would know how long I kept my laptop up, and myself...

What actually got me into this broil?

Visual Studio Pro 2010 Eng Academic Edition DVDI was applying the VS2010 SP1 patch - and if you  know this - it takes forever to install! The patch was in the middle of installation, and with my laptop set to shutdown automatically at 2am, that's where my problem began. The auto shutdown kicked in before the SP1 patch completed.

I was actually leaning away from solutions provided by MS, but the things happening lately, it is changing my mind. I guess for the better.

Too much politics, I guess.

Till then!

Enhanced by Zemanta

29 March, 2011

ODP .NET installation

DLL IconImage via WikipediaI have tried my installation of the different versions of ODP .NET.

You see, I am developing applications using VS 2005, VS 2008 and finally, VS 2010.

And with much of the developments in the Oracle world, with regard to database access, I am keen to try out ODP .NET, especially since I caught the selling point where it says that ODP will be much faster, more efficient. Not to mention that MS oracle library is already deprecated, and will be gone soon.

From OTN, I am able to see that they have installer files for Ora9, Ora10, and Ora11.

I gladly downloaded all 3, and started installing.

Actually, I used the latest file, and it was to my shock!

My applications couldn't run...

As quickly as I installed, I uninstalled ODP .NET for Oracle 11i.

And fortunate enough, my applications were able to run again (like they did recover from an initial shock)!

-----

Pro ODP.NET for Oracle Database 11g (Expert's Voice in Oracle)That was about 2 days ago.

Today, as is normally my case, I cannot rest until I make things running, or I am able to "see" what is waiting, what's in store.

So after the first setback, I wanted to try again, but this time, I worked on the earlier version - Ora9.

I installed, and rebooted, and voila! It worked. My applications were running.

And sort of being able to land first base, I didn't get contented. (Sometimes I understand why the saying 'curiosity killed the cat').

I continued to install the other 2 ODP .NET softwares (ora10g, Ora11i). You see, I was able to add in as a Reference in my VS 2005 apps the dll file (Oracle, DataAccess) - ONLY. When I tried adding the reference dll file in my VS 2010 apps, I can't find it. So I proceeded to install the higher versions with the hope that I will be able to call ODP in my VS 2010 applications.

Guess what happened?

After installing, I performed a reboot.

ODP.NET Developer's Guide: Oracle Database 10g Development with Visual Studio 2005 and the Oracle Data Provider for .NET: A practical guide for ... Oracle Developer Tools for Visual Studio 2005I called up my VS 2005 editor, and tried to run one of my apps, and it didn't run! The same error message was thrown out, and the same rootcause was found: some initialization files cannot be 'read'.

I tried to compose myself, and decided to do troubleshooting.

I checked the installation folder, and I did see what changed: C:\oracle folder now has a new folder added: product folder. And inside, there are 2 more folders: \10.1.0 and \10.2.0. I compared the structure of my current \ora90 folder with the new folders, and I found that they both have the \network\admin folders.

Being the lazy troubleshooter that I am, I thought of simply copying over the sqlnet and tnsnames files into the new folders, and see if that would solve the problem.

I did just that. I copied the 2 files form the current \network\admin folder, and renamed the sqlnet files in the two new folders as sqlnet_old, then copied the files over.

Did that solve the problem?

You bet it did!

Pro .NET Oracle ProgrammingAfter that quick no-brainer troubleshooting adventure, I proceeded to see if I can call up Oracle.DataAccess dll file in my VS 2010 applications. I opened up one app, and tried to add a reference, and there it was: Oracle.DataAccess, bright and clear, ready for the taking. I did just that.

And one or two steps on, I hit another problem, but I'm past the installation and addition of the ODP .NET library/namespace in my VS 2005 and VS 2010 apps. It's the code-building issues now.

And so, with that short narrative of mine on my ODP .NET adventure, I hope that it will be of help to you who is going in the same direction as me.

Will I hear from you?

Till then!
Enhanced by Zemanta