Issues with WebMatrix 2 application running on your server?

Web hosting Forums and discussions

Forums for Web hosting discussions: If you have any queries or questions related to web hosting services, place them here and get answered by our experts and customers. We invite you to even participate and provide solutions or answers that are known to any queries placed in this forums. We will get answer for all the queries and questions raised here.

Issues with WebMatrix 2 application running on your server?

Melinda Cote (Guest) on Saturday, April 27 2013, 01:14 AM
0
I am looking for a new Web hosting provider who specifically supports WebMatrix 2/Web Pages 2 applications. I understand, from a Live Chat with you, that you do. The website I have written using this platform also uses a small SQL Compact Edition database, which is simply a file (.sdf extension) stored in the App_Data folder of the application. On my local development machine, which has WebMatrix 2 installed as well as the IIS Express server to host it, my application runs perfectly and error-free.

Here's my problem:

I have tried 2 different Web hosts so far, and on neither host does my app run without throwing exceptions. Here is an example on one host:

Server Error in '/' Application.
--------------------------------------------------------------------------------
The Role Manager feature has not been enabled.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: The Role Manager feature has not been enabled.
Source Error:
Line 1: @{
Line 2: WebSecurity.InitializeDatabaseConnection("StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true);
Line 3:

MY QUESTION:

Are there assemblies or dlls that must exist on the Web server, in addition to the packages and dlls within the WebMatrix application that get uploaded when I FTP, that are necessary for my application to run? If so, are these installed on your server so that I will have no issues should I open a hosting account with you? If not, can you provide assistance as to what components I will need, and instruct me on how to install them on your server? Or do I need to modify my web.config file in some way? Please help. I can find no information concerning this issue or how to solve it despite many hours of Internet searches on the subject.

Thank you so much for your help!
       
  •  
    Replied by Jacob on Saturday, April 27 2013, 05:29 AM · Hide · #1
    Hello,

    By default when you deploy using WebMatrix, all your required assemblies are uploaded to BIN folder along with publishing. You need not worry on that part as long as something custom component you might refer from local assemblies. What we suggest make sure you have configured your web.config file correctly and also ensure that you have given read and write permission on this sdf file for the website users account - the account in which your app pool is running. ( This sdf file need modification by the user when you read /write data into it. ) Try this with your host.

    Also I would suggest deploy the sample bakery app of the Webmatrix that use SDF db you will see how it manages internally - but make sure you have given correct permission on the sdf file and folder if it does not work.

    Try this out and revert to us.
    Technical specialist HostASP
Your Response
Please login first in order for you to submit comments