John Croson's Blog Home: 09/01/2011 - 10/01/2011

Thursday, September 29, 2011

System.ArgumentException: Keyword not supported: 'unicode'.

Oracle wordmarkImage via Wikipedia

This error was giving me fits today. Thought I had my Oracle connection string all setup correctly, since I'd already used it for a GridView control. Thinking I could just copy/paste a SqlDataSource command down for another couple of controls, it should have been a snap...

But I kept getting these System.ArgumentException errors pointing me to my web.config!!!! WTH???

Turns out I forgot ONE parameter in my SqlDataSource object: ProviderName="<%$ ConnectionStrings:MyWebConfigDsn.ProviderName %>"

Voila, all is well in the world.

Enhanced by Zemanta