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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Running other applications/webservices in subdirectoriesRunning other applications/webservices in subdirectories
Previous
 
Next
New Post
2/2/2010 10:45 PM
 

Hi,

I have been told that DNN can run in the web root directory happily alongside webservices running in other directories. Whilst DNN is running OK, the other webservices are not.

My searches so far have lead me to discover this is most likely caused by the fact that web.config settings automatically cascade down into subdirectories and where another web.config exists in the subdirectory, the DNN web.config is inherited by that web.config. Hence, my webservices are trying to run/establish links etc that are specified in the root web.config file. My webservices are all crashing of course.

I have also discovered that the above cascading effect can be disabled in a web config file by surrounding the system.web and system.webserver sections with the following:

<location path="." inheritInChildApplications="false">
  ..
</location>

This actually works and my webservices run OK but it obviously interferes with DNN as the web.config settings in the root directory are not cascading down into DNN's subdirectories either!

Further investigation reveals that I can specify the path that I want 'ignored' in the location directive. In other words, instead of specifying all subdirectories with the full stop ("."), I can specify specific subdirectories.

Herein lies my problem.

I have tried path="Webservices/Uploader" and a great many variants of that without any success whatsoever. DNN still fails to compile as in the following error message:

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'IDataReader' is not defined.

Source Error:

 
Line 64:         Public MustOverride Function AddLink(ByVal ModuleId As Integer, ByVal UserId As Integer, ByVal CreatedDate As DateTime, ByVal Title As String, ByVal Url As String, ByVal ViewOrder As Integer, ByVal Description As String, ByVal RefreshInterval As Integer, ByVal GrantRoles As String) As Integer
Line 65:         Public MustOverride Sub DeleteLink(ByVal ItemID As Integer, ByVal ModuleId As Integer)
Line 66:         Public MustOverride Function GetLink(ByVal ItemID As Integer, ByVal ModuleId As Integer) As IDataReader Line 67:         Public MustOverride Function GetLinks(ByVal ModuleId As Integer) As IDataReader
Line 68:         Public MustOverride Sub UpdateLink(ByVal ItemId As Integer, ByVal UserId As Integer, ByVal CreatedDate As DateTime, ByVal Title As String, ByVal Url As String, ByVal ViewOrder As Integer, ByVal Description As String, ByVal RefreshInterval As Integer, ByVal GrantRoles As String)

Source File: E:\web\aquarius\App_Code\Links\DataProvider.vb    Line: 66







Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016


I am presuming that the settings in the root folder web.config (ie DNN's) are not cascading down to the E:\web\aquarius\App_Code\Links directory.

 

Can someone help me to figure this out please.

 

Thank you.

 

 

 

 

 

 
New Post
2/3/2010 4:09 AM
 

did you configure the subfolder with your other app/web service to be an application in IIS web site setup?

DNN web services may be used w/o an own application, see iweb.adefwebserver.com for demonstration.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Running other applications/webservices in subdirectoriesRunning other applications/webservices in subdirectories


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