+ Reply to Thread
Results 1 to 6 of 6

Thread: Web.config Help

  1. #1
    boone1 is offline x10Hosting Member boone1 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    7

    Web.config Help

    Hi, I have a working webpage in Visual Studio 2005, but once it is uploaded to x10hosting, I get the following error:

    "Server Error in '/' Application

    Operation aborted due to an exception (see Trace for details).

    Description: HTTP 500. Error processing request.

    Stack Trace:

    System.Configuration.Provider.ProviderException: Operation aborted due to an exception (see Trace for details).
    at System.Web.Security.SqliteRoleProvider.RoleExists (System.String roleName) [0x00000]
    at System.Web.Security.Roles.RoleExists (System.String rolename) [0x00000]
    at ASP.global_asax.Application_Start (System.Object sender, System.EventArgs e) [0x00000]
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
    "

    My Web.config file is:

    <?xml version="1.0" ?>
    <configuration>
    <appSettings />

    <connectionStrings />

    <system.web>
    <customErrors mode="Off" />
    <roleManager enabled="true"/>
    </system.web>
    </configuration>

    Thanks.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Web.config Help

    What's the URL for a page with the error?

    Try adding a providers section.

    See also Mono Bug 362039.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    boone1 is offline x10Hosting Member boone1 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    7

    Re: Web.config Help

    http://boone.x10hosting.com/Default.aspx

    Do I need to add a provider? I am not trying to do anything fancy, like connecting to an SQL server or database.

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Web.config Help

    Quote Originally Posted by boone1 View Post
    I am not trying to do anything fancy, like connecting to an SQL server or database.
    Actually, you are. Roles and authentication credentials have to be stored somehow. The default role provider on Mono is based on SQLite. Neither WindowsTokenRoleProvider nor SqlRoleProvider is available, and even one of those requires a DB connection.
    Last edited by misson; 12-11-2009 at 09:37 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  5. #5
    boone1 is offline x10Hosting Member boone1 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    7

    Re: Web.config Help

    So I need to add a role provider since I have enabled it? How to I add a role provider for Mono, or in general, so I can get rid of this error?

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Web.config Help

    As per my sig, read the first link in my first post. Failing that, try Google and then the Mono community (forums, chat rooms &c).
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. How to get ASP.Net to work at x10Hosting
    By Hue Kares in forum Tutorials
    Replies: 56
    Last Post: 11-11-2011, 01:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers