Exception on site after deployment on WinHost (trust related?)

Discussion in 'General troubleshooting' started by GabrielMichaud, May 26, 2011.

  1. Hello,

    I'm trying to deploy a site that I have running locally. The connection string on the site already points to Winhost SQL database, so this part is working fine.

    I suspect that this is a trust issue, since initially I had a SecurityException and had to modify the web.config to allow full trust. This is a third-party product and I don't have access to all the source code, so it's pretty hard for me to troubleshoot it.

    If anyone at Winhost can look at the site it would be appreciated - the URL is http://paanepco.w04.Winhost.com/main.aspx

    Thanks,
    Gabriel
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Whats the error you are getting? I pulled up the site and didn't see any error messages.
     
  3. I was able to fix it - it seems that the machine.config configuration on your host conflicted with the role and membership providers we're using.

    I added:

    <remove name="AspNetSqlMembershipProvider" />
    <remove name="MySQLMembershipProvider" />

    <remove name="AspNetSqlRoleProvider" />
    <remove name="AspNetWindowsTokenRoleProvider" />
    <remove name="MySQLRoleProvider" />

    To the correct sections in the web.config file and it worked fine afterwards.
     

Share This Page