Search code examples
.netasp.net-mvcpublishingiis-5submitchanges

data context SubmitChanges() exit's code without exception - deployed .net mvc on iis5.1


I have just deployed my first application in .NET MVC and i'm having issues.

I have resolved the iis 5.1 problems with the routing (If anyone is looking for this go here: http://itscommonsensestupid.blogspot.com/2008/11/deploy-aspnet-mvc-app-on-windows-xp-iis.html )

**Now my issue is that wherever I call db.SubmitChanges() on my data context it seems to stop the code from continuing and doesn't do the update. Is there a step I'm missing when publishing my website? **


Solution

  • This was a problem with the database being read only when i exported the webapp. It didn't give me a nice error message or exception though it jut seemed to break. I checked under IIS and the user account it was trying to use only had read permissions.

    Once i changed this i restrarted IIS (not stop/start which i did the first time by accident) and the problem was resolved