rick schott
rick schott

Reputation: 21137

Top 10 gotchas using shared hosting with ASP.NET

I have recently started using a shared-host for my clients so see project progress or to play with a new technology for myself. I seems like every time I deploy a new project that runs fine locally, I run into something new on the shared-host.

Do you have a shared hosting deployment checklist?

What are the common problems you run into when deploying to a shared host?

Upvotes: 8

Views: 525

Answers (5)

Ron Klein
Ron Klein

Reputation: 9460

Inconvenient cancellation procedure

In some of the shared hosts I used, I found out that for cancellation I must make a phone call. Nothing over the web, not even an email.

I bet the host thinks most people won't bother calling until it's really needed. They're right.

Upvotes: 0

Ron Klein
Ron Klein

Reputation: 9460

No preview site.

That is, a host based path to your web application without actually pointing the DNS to it.

Example:

http://www234.your-shared-host.com/preview/user/bla/default.aspx (don't try it, it's just an example..)

Upvotes: 0

rick schott
rick schott

Reputation: 21137

One of mine is file IO permission problems. An example being writing to a file on the web server from ASP.NET. You have to use a provided online tool to allow permission to do more than reads.

Upvotes: 3

user151323
user151323

Reputation:

They don't always offer you direct access to the database (Enterprise Manager / Management Studio).

You end up using some weird web GUI for creating database entities, which does not accept otherwise valid SQL syntax and you have to update all your queries and stored procedures to accommodate their custom changes and restrictions.

Upvotes: 3

lomaxx
lomaxx

Reputation: 115833

Medium Trust. If you are developing code to go into a shared host, you should set your local application to run in medium trust otherwise you can almost guarantee you'll get security issues with code that executes fine in full trust but dies in a medium trust environment.

This MSDN article explains about medium trust in more detail:

http://msdn.microsoft.com/en-us/library/ms998341.aspx

Upvotes: 8

Related Questions