Welcome Guest Search | Active Topics | Log In | Register

Problem with web.config - Please help Options · View
OpenStick
#1 Posted : Thursday, November 06, 2008 12:01:02 AM

Rank: YAF Forumling


Joined: 11/5/2008
Posts: 3
Location: Greece
Hi,

I have wo applications working on my wbesite:
1. e-shop written in VB
2. YAF

So, I have two web.comfig, one is located in the root directory and is for the e-shop, and the second is located on the forum directory and is for the YAF forum.

When web.coconfig is placed on the rrot directory YAF is not working, if it isnot YAF is working.

I tried to combine both web.config, but unsucessfully. Could somebody help me to do it, I think tha it is manly because YAF is written in C# and e-shop is in VB. So, I can not combine

<compilation defaultLanguage="VB" debug="false" />

and

<compilation defaultLanguage="c#" debug="false"/>

But possible there are also aother issuses.

Here below I have attached web.config from both applications, could somebody help me and combine both we.config in a one file, or plase suggest how I can run both application on the same server.

Thank you in advance


e-shop web.config

<configuration>

<!-- DO NOT MODIFY THE SYSTEM.WEB KEYS IN THIS SECTION -->
<customErrors mode="Off"/>
<httpRuntime executionTimeout="90"/>
<compilation defaultLanguage="VB" debug="false" />
<pages buffer="true" enableViewState="true" enableSessionState="false" autoEventWireup="true" validateRequest="false" />

</system.web>

<appSettings>


<!-- MODIFY THE KEYS IN THIS (APPSETTINGS) SECTION AS NEEDED -->

<!-- Default Microsoft Access database Connection. Simply enter the virtual path to the database -->
<!-- add key="dbvirtualpath" value="../data/yourdata.mdb" /-->

<!--Microsoft SQL Server Database OLEDB Driver: -->
<add key="dbtype" value="MSSQL" />
<add key="dbconntype" value="OLEDB" />
<add key="dbconn" value="Provider=SQLOLEDB;Data Source=XXXXXX.net;Initial Catalog=XXXXXX;User Id=XXXXXX;Password=XXXXXX;" />


<!-- Encryption Password -->
<add key="cryptpass" value="pdshoppro" />

<!-- Enter the name of your PDAdmin folder -->
<add key="pdadminfolder" value="admin" />

<!--
TO USE OTHER DRIVERS OR CONNECTION STRINGS OR FOR MSSQL DATABASES....
see the "web.config_examples.txt" file. Simply modify & copy the keys
you need to the <appSettings> section of this file.
-->


</appSettings>

</configuration>






YAF web.config

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="yafnet" type="yaf.SectionHandler,yaf"/>
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>

<yafnet configSource="yafnet.config"/>
<rewriter configSource="urlrewriter.config"/>

<system.web>

<httpModules>
<add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
</httpModules>

<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<compilation defaultLanguage="c#" debug="false"/>
<pages enableEventValidation="false" validateRequest="false" smartNavigation="false"/>

<authentication mode="Forms">
<forms name=".YAFNET_Authentication" timeout="525600" />
</authentication>

<customErrors defaultRedirect="error.aspx" mode="RemoteOnly"/>
<!--trace enabled="true" pageOutput="true"/-->
<xhtmlConformance mode="Legacy"/>

</system.web>

</configuration>

OpenStick
#2 Posted : Thursday, November 06, 2008 12:14:08 AM

Rank: YAF Forumling


Joined: 11/5/2008
Posts: 3
Location: Greece
Hi,

Sorry I'm answering to myslef, but I like to add that I'm receiving the following message




Server Error in '/forum' Application.


Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unable to open configSource file 'urlrewriter.config'.

Source Error:


[No relevant source lines]


Source File: d:\hosting\openstick\web.config Line: 9



Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
dragaodepapel
#3 Posted : Saturday, November 08, 2008 8:43:24 PM
Rank: Member


Joined: 8/20/2008
Posts: 13
Location: Curitiba, PR, Brazil
Hi

I have this problem on my host too.

I have the Asp.NET application for a store in the root of the host, and the forum on a folder.

The Asp.NET reads all the web.configs starting in the root, then following the path to the application. So, it's read the web.config for your e-shop, then for the forum, and merges the information.

To prevent this error, you will need to have the asp.net websites each on one folder. It is that I make in my host, and it is working very well.

I put my e-shop on a folder (redirecting the domain to this folder), and the forum on another.

And sorry for the poor explanation, my english is a bit confunsing Cheesy Grin
OpenStick
#4 Posted : Saturday, November 08, 2008 8:53:03 PM

Rank: YAF Forumling


Joined: 11/5/2008
Posts: 3
Location: Greece
Hi,

Thank you very much for your reply and help. I will try it ASAP!!!

Kind Regards
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.113 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET