views:

41

answers:

3

I get the following error:

"ERROR: Unable to update Web.Config because of the following exception: 'The value contains embedded nulls (\u0000). Parameter name: provider connection string'."

All I'm doing is adding a new model to my ASP.Net MVC app.....

Just to be clear, this is when the wizard creates the model from the DB...

A: 

Well, judging by your error message, the value of your connection string is invalid.

Have a read here. If reading that doesn't help, please consider editing the question with the connection string - ensuring that no identifiable information is there.

Dan Atkinson
Actually the Entity connection string never gets included in the web.config by the GUI... It just hands out that error message, I had to put in there by had.
hminaya
A: 

It's actually a bug in the wizard, when it happens you have to go in and modify the web.config by hand...

hminaya
A: 

I suspect you used a text editor which used an encoding scheme the provider doesn't like. Try re-editing it in VS and see if that fixes it.

Chris B. Behrens