Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Creating mailbox in Exchange 2007 and Exchange 2010 using C# in same server

$
0
0

Hi Everyone,

Currently our organization going through an upgrade of Exchange servers from 2007 to 2010. But we need to keep one exchange server in 2007 itself for some time.

While modifying the existing c# code I found that the AddPSSnapIn concept dont work with Exchange 2010 as it uses Remoting concept. So I rewrite the code with Remoting concept for the Ex2010 servers and used the existing condition which uses AddPSSnapIn concept for the Ex2007 server depending on the server name (by hard coding).

The code for Ex2010 is working successfully but I got the following error while executing the code for Ex2007,

Could not load file or assembly 'Microsoft.Exchange.Data.Directory.resources, Version=8.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I checked in the path-C:\Program Files\Microsoft\Exchange Server\bin for the required assembly and its not there. But the list of assemblys match with the folder in the existing server which used to create mailboxes for Ex2007.

Note:

First I prepared a new server environment with installing Ex2007 management tools and then when the upgradation came up I uninstalled Ex2007 management tools and installed Ex2010 management tools. Then I got the problem for creating mailbox in Ex2007. So I unistalled the Ex2010 management tools  and (restarted the server) installed Ex2007 and Ex2010 management tools (didnt restart the server after installing both).

I have no idea about the cause of the problem. Pl help me to resolve this because its critical.

Thanks in advance,


Regards,
Elango
Chennai.
Mark As Answer or Vote As Helpful if My Reply Does.


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>