YAFLogo

kal
  • kal
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Hello,

Downloaded source code and trying to run it in VS2010. web.config is set up - create yaf database in sql server and trying to hit the default.aspx.

Error I am getting is:

Server Error in '/yetanotherforum.net' 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: /yetanotherforum.net/login.aspx

So for some reason its trying to load login.aspx and ofcourse login.aspx don't exist. So don't know whats wrong? Can any body help?

Thanks

Sponsor
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
14 years ago
Try to fire up install/default.aspx first
If at first you don’t succeed, call it version 1.0
kal
  • kal
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Tried. Same error.

Server Error in '/yetanotherforum.net' 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: /yetanotherforum.net/login.aspx

I should mention - I just created db in SQL server but didn't run database scripts. I am going to run those and give it a try again. But thanks for quick reply. Appreciated!

kal
  • kal
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
So yes I ran all scripts.

URL its trying to hit:

http://localhost/yetanotherforum.net/login.aspx?ReturnUrl=%2fyetanotherforum.net%2fError.aspx%3faspxerrorpath%3d%2fyetanotherforum.net%2flogin.aspx&aspxerrorpath=/yetanotherforum.net/login.aspx

and ofcourse its failing with:

Server Error in '/yetanotherforum.net' 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: /yetanotherforum.net/login.aspx

herman_herman
14 years ago
Seems like you are installing yaf in a subfolder. If you have install the forum in the directory "/forum/yaf/" you will need to uncomment/add key with name "YAF.AppRoot" and value "/forum/yaf/" to app.config.
kal
  • kal
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
I extracted source code on C:\yaf.

Virtual dir pointing to C:\YAF\YetAnotherForum.NET, application name: yetanotherforum.net,

Execute Permissions: script only and App Pool: DefaultAppPool

Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
14 years ago
Usually this error shows up when YAF is being installed in a subfolder.

I'm almost sure that there's a problem with your IIS settings.

I'm not an IIS expert in anyway, but this is how I got YAF working on IIS 7:

1- Run inetmgr.

2- Right click on "Default Web Site" -> Add Application.

3- Point the Physical path to "YetAnotherForum.Net". For example, if you have unzipped YAF in c:\Sites, the correct physical path would be: "C:\Sites\YAF-v1.9.4-RC4-SRC\YetAnotherForum.Net". Name the Alias to whatever you prefer. App Pool->DefaultAppPool.

4- Browse http://localhost/

Hope this can help.


If at first you don’t succeed, call it version 1.0
kal
  • kal
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Thanks for your reply Kamyar.

Just for curiousity I enable directory browsing and I am able to browse and see

http://localhost/yetanotherforum.net/ReadMe.htm

So I am not sure if there is any problem with IIS. If you look carefully at the URL generated which I posted earlier -

http://localhost/yetanotherforum.net/login.aspx?ReturnUrl=%2fyetanotherforum.net%2fError.aspx%3faspxerrorpath%3d%2fyetanotherforum.net%2flogin.aspx&aspxerrorpath=/yetanotherforum.net/login.aspx

Correct me if I am wrong but it looks like - when I try to access http://localhost/yetanotherforum.net/default.aspx or http://localhost/yetanotherforum.net/install/default.aspx

I think some error is generated and app is written like if there is any error then error page would redirect request to login page. So I guess just need to debug more?

Thoughts anybody?

Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Kal, Could you debug the application in Visual Studio.NET environment without setting up YAF on IIS? Just open the solution in Visual Studio, turn off the custom error mode in web.config, Set the config password in app.config, fire up install/default.aspx and let us know what happened.
If at first you don’t succeed, call it version 1.0