asp.net mvc - C# EF Code First Deploy to Godaddy -


i having issues deploying app godaddy hosting using ef code first. dont want app create database since database exists.

so read posts on here , placed in constructure:

database.setinitializer<mycontext>(null); 

now permission error writing temp file.

anyone had successful experience deploying godaddy shared hosting?

when project used model first , edmx files deployed fine.

i able work right after posting this..

all had move:

database.setinitializer<mycontext>(null); 

to global.asax application_start

can post what's server error receiving.

setting db initializer null should work fine. have tried that. if post exception, can find out why happening


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -