How to deploy x86 compile code on SharePoint server 2010 ( x64) - visual-studio-2010

I'm creating visual web part project which connects Oracle database using ODP.NET. When I deploy on SharePoint server 2010 , web part gives Oracle dll missing error. Even I tried to compile in x86 or Any CPU but it gives error. Here is the error,
SharePoint server 2010 is running on my machine whereas Oracle server is running on different machine. I've verified the code in normal ASP web application and it successfully connects Oracle server.
Any thoughts?

SharePoint 2010 is 64-bit only.

SharePoint 2010 is a 64bit process, so it can only load x64 or Any CPU assemblies.
Be careful that all your assemblies, and all dependencies, have to be x64 or Any CPU.
In your case, I guess you linked to a x86 version of the Oracle assembly. You'll have to install Oracle in x64 mode.

Related

Developing in Visual Studio 2005 for Windows Server 2012

Is it possible to install an ASP.net website developed with Visual Studio 2005 in a server with Windows Server 2012? Our client is planning to upgrade the server from Windows Server 2003 to Windows Server 2012. Will the application (already developed with VS 2005) run in a 64 bits operating system?
It is possible. Two things to make sure you do is to have the correct .Net version installed on the windows server and when you setup the new site in IIS (assuming IIS) that the application pool is set to allow 32-bit applications.
This will take you through how to enable 32-bit app pools (it is for IIS7 but IIS 8 is the same)
https://help.webcontrolcenter.com/kb/a1114/how-to-enable-32-bit-application-pool-iis-7-dedicatedvps.aspx
Visual Studio is just a development environment and is intendant of the target server type/version. You can use Visual Studio to develop any .Net application/website no matter where you want to run it. It is all about the server being configured to run a 32-bit .Net application.

Crystal Reports Installation

I have the following installed on my server
Crystal Reports Basic Runtime for Visual Studio 2008
and
Crystal Reports for .Net Framework 2.0 (x86)
I am moving to a new server. The old server is Windows Server 2003. The new Server is Windows Server 2012 R2 Standard (64 bits)
I want to install the same or equivalent software on my new machine so my software will continue to run. I don't think I need any licenses. Please point me to where I can download the installs
Bob
this is a good poin to start
http://scn.sap.com/docs/DOC-7824
the is ll the type of setup, you need the runtime i think.

Deploying to Windows Server 2003

Using visual studio 2013 on a windows 8 machine I created a F# console application. The app runs fine on the dev machine. But when I build a debug release and export it to a windows 2003 server and attempt to run, I continually get the error: not a valid win32 application even though the build configuration is set to "any cpu". Does anyone know how to solve this error? Thanks.
You are probably using .NET Framework 4.5 wich is not compatible with Windows Server 2003.
If you are not using anything from .NET 4.5 you can change on Visual Studio the framework targeted by the application to 4 and then run it on Windows Server 2003.
Also, here is the list of requirements for .NET Framework 4.5
https://msdn.microsoft.com/en-us/library/8z6watww%28v=vs.110%29.aspx

Visual Studio 2010 web deployment to IIS server

I need to be able to setup my IIS server to accept Web Application publishing via the web deployment tool in Visual Studio 2010. I have attempted to install web deploy, but still haven't had any success. I am not positive if this is the right tool or not.
I am running Server 2008 R2 Enterprise
version 6.1.7601 Service Pack 1 Build 7601
X64
IIS Version 7.5.7600.16385
SQL Databases will be accessed and are housed on this server as well.
SSRS is also running on this server.
Thank you,
Stephen Hathaway

Oracle Data Access components 64 bit not working in IIS express 7.5

I have installed ODAC (Oracle data Access Components 64 bit) odp.net 4. But unfortunately it does not work with IIs Express. IIS express documentation says it supports both 32bit and 64bit systems. Is it possible that it can work with odp.net 4 (64 bit), or must we work with odac 32 bit components in development machines.
thanks in advance!
Probably too late now, but IIS Express 7.5 is 32-bit and cannot host a 64-bit process. I'm assuming that's what your problem is/was because I had a similar issue with the Oracle.DataAccess.dll. However, IIS Express 8.0 Beta can host your 64-bit site.
Visual Studio will only start the 32-bit IIS Express 8 process when you use it to start the site (F5 or Ctrl-F5). However, you can start the 64-bit process from the command line and then attach to the IIS Express process from Visual Studio, if you want to debug. The command I use is:
c:\Program Files\IIS Express\iisexpress.exe /site:SiteName
The the default IIS Express config file is in your documents folder at IISExpress\config\applicationhost.config. That file contains the definitions for your sites and gives you the site name, which you can change.
Make sure you read the instructions for Upgrading from IIS Express 7.5.

Resources