I’ve got an application where I upload an access database to the server, then read that database and import it into my SQL database. However, this is the first time I’ve tried to do something like this on shared hosting, and I can’t change the write permissions on the upload folder so I can’t upload the db?
Anyone know of anything else I could try? I looked into IsolatedStorageFileStream, but not sure that would be any good for reading from the database file once it was in isolated storage
Thanks
UPDATE:
Ok, this was the message I got from the hosting company:
I'm afraid it's not possible to amend the permissions to allow
this to work in Integrated mode as it would pose a security risk
in a shared environment. Its unfortunate that your application
wouldn't function with a custom web directory/application as this
has been used as a work around previously.
I can understand the frustration with this as its basically a
failure between two Microsoft technologies which are meant to work
together. Your web application runs under Identity impersonate and
the user it runs as has read,write,modify permisions to all your
web directories, when run in Integrated mode this aspect isn't respected.
This, combined with the fact that i can’t run wildcard script mapping on the server, means it won’t work in classic or integrated mode. Has anyone come across these issues before?
EDIT: Moved hosting company update to original question as per Alex’s advice.
Final answer: Well, I never got the solution I was hoping for – the only thing I could do was upgrade to cloud hosting as the site wouldn’t work in classic mode as they wouldn’t let me use wildcard mapping.
I wasn’t aware how spoiled I’d been by using servers hosted by my company for doing all commercial projects. Didn’t realise how much of a hassle it was to use .net/MVC on shared hosting. If the last week is anything to go by, it looks like a minefield.