Welcome Guest Search | Active Topics | Log In | Register

Failing with my web.config Options · View
KaareP
#1 Posted : Thursday, September 04, 2008 1:35:50 AM

Rank: YAF Forumling


Joined: 9/4/2008
Posts: 1
Location: Denmark
Hi

I have tried to install YAF 1.9.1.8 on my win2003 server. but the system fail when it get to the 3. setup screen.

It cast this error...

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: Reference to undeclared entity 'b'. Line 2, position 33.

Source Error:


Line 1: <?xml version="1.0"?>
Line 2: <configuration>
Line 3: <configSections>
Line 4: <section name="yafnet" type="yaf.SectionHandler,yaf"/>

Any Idea about whats wrong?

I just copied default.config to web.config?

telz
#2 Posted : Friday, October 17, 2008 3:27:21 PM

Rank: YAF Forumling


Joined: 10/17/2008
Posts: 5
Location: Ukraine
I have the same problem. I created new virtual directory and renamed default.config file to web.config. And I have an error:
Code:

Connection failed. Modify Web.config and try again.
The error message was:
Reference to undeclared entity 'yafnet'. Line 2, position 37. (D:\websites\XXXXX\YAF\YAF-v1.9.1.8-FINAL-BIN\web.config line 2)

Help, please, how to solve the problem. Thank you!
logan
#3 Posted : Friday, October 17, 2008 3:41:00 PM
Rank: Advanced Member



Joined: 3/16/2008
Posts: 72
Location: Las Vegas, NV USA
Did you setup your database connection string in the Yafnet.config?
telz
#4 Posted : Saturday, October 18, 2008 5:47:59 AM

Rank: YAF Forumling


Joined: 10/17/2008
Posts: 5
Location: Ukraine
Yes, of course. When I set up connstr propertly a saw this problem. I tested it using VS 2008 and its developing server. The forum compiled and started form VS2008 without any problems. I got problem when tried set it on the Windows Server 2003 with MS SQL 2005 and IIS.
telz
#5 Posted : Monday, October 20, 2008 8:35:48 AM

Rank: YAF Forumling


Joined: 10/17/2008
Posts: 5
Location: Ukraine
The problem is still alive. YAFNET forum was installed to the root of virtual directory on IIS. I renamed default.config to web.config. Result - error. I added <root>{name of virtual directory}</root> element to the yafnet.config. But the problem was not solved.
What can I do? Thank you!

Server Error in '/yaf' 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: Reference to undeclared entity 'yafnet'. Line 2, position 37.

Source Error:


Line 1: <?xml version="1.0"?>
Line 2: <configuration>
Line 3: <configSections>
Line 4: <section name="yafnet" type="yaf.SectionHandler,yaf"/>
telz
#6 Posted : Tuesday, October 21, 2008 9:05:13 AM

Rank: YAF Forumling


Joined: 10/17/2008
Posts: 5
Location: Ukraine
Please help me to solve the problem... Thank you!
Jaben
#7 Posted : Tuesday, October 21, 2008 10:07:29 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 3,050
Location: Honolulu, HI
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <configSections>
        <section name="yafnet" type="yaf.SectionHandler,yaf" />
    <section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
    </configSections>

    <yafnet configSource="yafnet.config" />
"When you are grateful, fear disappears and abundance appears”."

telz
#8 Posted : Wednesday, October 22, 2008 9:21:14 AM

Rank: YAF Forumling


Joined: 10/17/2008
Posts: 5
Location: Ukraine
Thank you! But I still cannot solve the problem. There is the same error. This is my web.config (yaf is in root of the virtual directory):
Code:

<?xml version="1.0" encoding="UTF-8"?>
<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>

I cannot understand where is the problem...
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.076 seconds.

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