pwashburn@aol.com
2015-02-14T16:12:01Z
I'm trying to install YAF into an existing .Net website.
Following the instructions at:
https://github.com/YAFNE...ting-ASP.NET-Application 

I think I have followed the instructions.
I believe I have put the followed where to put the various YAF components. My directory structure looks basicially like this:
MyWebsite
......\Forum
................default.aspx
................default.aspx.cs
...............\Properties
................\Styles
................\Forum
.............................\controls
.............................\editors
.............................\images
.............................\install

Does this seem correct?

I'm concerned as when I attempt to start the forum software, the install package isn't found. Here's what I start the forum with:
http://192.168.10.107/forum/default.asxp 
(The IP is the IP assigned to the parent website which is working fine)

I get:

Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /forum/install/default.aspx

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1025

Which leads me to believe I don't quite have the directory structure laid out correctly.

Any suggestions?
Sponsor
Zero2Cool
2015-02-14T16:41:10Z
It looks like you have one too many /forum directories. I run my site with ASP.NET like the Sample Application and I have my root directory and in that a subdirectory called /forum and have all of my YAF files copied into there.
pwashburn@aol.com
2015-02-14T17:54:24Z
That's what I was thinking as well.
But where do the default.aspx, default.aspx.cs, site.master, site.master.cs that are in the sample webapp distribution go then? The root directory of my parent directory? I already have default.aspx for the parent website. I did have to move the site.master to the parent root directory already to get as far as I did. I'm guessing I'd just copy what is there to my parent root directory and then fix any file name collisions that would happen. I'm thinking the rest are probably okay
Zero2Cool
2015-02-15T04:56:09Z
Originally Posted by: pwashburn@aol.com 

That's what I was thinking as well.
But where do the default.aspx, default.aspx.cs, site.master, site.master.cs that are in the sample webapp distribution go then? The root directory of my parent directory? I already have default.aspx for the parent website. I did have to move the site.master to the parent root directory already to get as far as I did. I'm guessing I'd just copy what is there to my parent root directory and then fix any file name collisions that would happen. I'm thinking the rest are probably okay



Site.Master would be in the root.

You are installing YAF fresh into an already built WebForm website, correct?
pwashburn@aol.com
2015-02-16T18:00:35Z
Okay, I've gotten further along.

Now at the "Initialize Database" part of the install process and getting the following error:

FILE:
mssql/tables.sql

ERROR:
Failed to update database "D:\FTPDIRECTORY\FORUMJOINTWEBSITE\APP_DATA\DATABASE.MDF" because the database is read-only.

STATEMENT:
CREATE PROCEDURE [dbo].[yaf_drop_defaultconstraint_oncolumn](@tablename varchar(255), @columnname varchar(255)) as
BEGIN
DECLARE @DefName sysname
............

I've got Security Permissions on App_Data folder and the Database files in it set to Full Control for pretty much everyone in trying to get beyond this. Do I need to go into SQL Express Management Studio and change some permissions on the actual database?



tha_watcha
2015-02-17T09:14:23Z
Check the mdf itself if it has the read only flag set on. And you need give user ASPNET and NETWORK SERVICE Modify control over the App_Data directory.
UserPostedImage
pwashburn@aol.com
2015-02-17T17:41:58Z
Found the problem. The App_Data directory was Read-Only. Used IIS 6 to enable write permissions on the App_Data folder and got the install process to finish.

Thanks for the help.

Now to explore.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved