I am importing into my database using my own tool (c#) in an ASP.NET app. The tool works fine in a development environment, but fails when I run on a non-development server. I get the "Attempted to read or write protected memory" exception when I do the database update. This error makes no sense to me.
This only happens when I import Japanese characters.
I am using the same machine to run the app, and teh same database. The column being loaded is a nvarchar type. The only difference is the web server. The web.config is the same for both configs.