Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...ASP.Net 4.0 and web.Config QuestionASP.Net 4.0 and web.Config Question
Previous
 
Next
New Post
8/24/2011 8:28 PM
 
Hello,

I developed a 5.6.3 site on my local machine using Web Matrix set to .Net 4 (Integrated). To facilitate the move to the server I used the Evotiva Backup and Restore module. I ran into an error during the restore but was able to complete it. Once the restore was complete the site did not run. I quickly realized the the web server was set to ASP.NET 2.0 and I changed it to 4.0. Once I changed it the site did run, but I have a couple little problems that I think might be related.

Modules using SMTP throw and error that say it could not authenticate. Also on the announcements module. when I try to upload and link a PDF file the file manager does not display the sub folders and if I upload to the root when the link is clicked I get "resource not found".

Comparing the my local web.config file with the one on the server I see a couple differences.  On my local machine I have:

<runtime>
   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
     <probing privatePath="bin;bin\HttpModules;bin\Providers;bin\Modules;bin\Support;" />
     <dependentAssembly>
       <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
       <!--Upgraded by .NET 4.0 Upgrade version 5.6.3 - Date: 8/1/2011 9:23:23 AM-->
       <!--<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" xmlns="urn:schemas-microsoft-com:asm.v1" />-->
       <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
     </dependentAssembly>
     <dependentAssembly>
       <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
       <!--Upgraded by .NET 4.0 Upgrade version 5.6.3 - Date: 8/1/2011 9:23:23 AM-->
       <!--<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" xmlns="urn:schemas-microsoft-com:asm.v1" />-->
       <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
     </dependentAssembly>
     <dependentAssembly>
       <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />
       <!--Upgraded by DotNetNuke.Telerik.Web version 5.6.3 - Date: 8/1/2011 9:25:51 AM-->
       <!--<bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2011.01.0519.35" xmlns="urn:schemas-microsoft-com:asm.v1" />-->
       <bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2011.1.519.35" />
     </dependentAssembly>
   </assemblyBinding>
 </runtime>

While on the server I have:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="bin;bin\HttpModules;bin\Providers;bin\Modules;bin\Support;" />
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />
        <!--Upgraded by DotNetNuke.Telerik.Web version 6.0.0 - Date: 7/21/2011 2:29:57 PM-->
        <!--<bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2011.1.519.35" xmlns="urn:schemas-microsoft-com:asm.v1" />-->
        <bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2011.1.519.35" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

I'm assuming I need to change newVersion="3.5.0.0 to newVersion="4.0.0.0. Just looking for confirmation.

Also, on the server I have an entry that is not in my local web.config:

<codeSubDirectories>
        <add directoryName="Links" />
      </codeSubDirectories>
 
I'm wondering if that could be causing the link problem with the announcements module and if it is safe to remove it.

Thanks for your help.

Rich
 
New Post
8/25/2011 12:39 AM
 
SMTP authentication errors are more likely to be related to the host smtp settings not being correct.

Check that you can send a test email from  the host -> site settings module.

I would not suggest removing any entries from the <codeSubDirectories> section these are needed by any module that uses the /App_Code/ folder for c# based wsp modules.

There should be no real issue with changing the couple of version numbers - though technically its not needed by dnn if I recall.
Westa
 
New Post
8/29/2011 9:48 AM
 
Hi Rich,

I would compare the web.config with another's site web.config running in the same conditions (same .net version and same dnn version).

Regarding, SMTP authentication, it could be simply that the configured SMTP server does not relay for the cloned site (because it's not on the same network or many other reasons).
You can change it to 'localhost' and use the local sever's SMTP (if any). If there isn't any, you can use http://papercut.codeplex.com/, or a 'true' SMTP server.

HTH,
Horacio.-
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...ASP.Net 4.0 and web.Config QuestionASP.Net 4.0 and web.Config Question


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out