YAFLogo

mtw
  • mtw
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
When I first found YEF I thought (but now I am convinced) it's an amazing product, and the price of free is great. Once I downloaded it and uploaded it to my GoDaddy hosting, well then all the problems started. I followed all of the instructions in the install docs but to noavail, I was still unable to get it working. So after a couple of weeks of changes this and that (I will explain all of the this's and that's) and reading the forum competly (or so it felt like) I was able to get it to work (with the help of a few posts, which I will cite).

Seeing as how the great people a YEF share their knowledge all the time I wanted to take the time to give back to them and their community a little bit, so I am posting the complete instructions on who to get this working with your GoDaddy hosting account.

1) First things first, make sure you download YAF-v1.9.3-FINAL-BIN-NET20

2) You need to create your database. Currently YEF only supports MSSQL (with MySQL support on the way I believe). From your hosting control panel select databases then SQL Server. Once their enter your database name, select DSN and enter a password. You must remember this password, username and database name as you will need it in the db file. Once you click OK it will take about 5-10 minutes for the system to create the database.

3) Go to your File Manager (Content --> File Manager) and create the Folder for your forum (often just called Forum). Make sure you remember the directory structre where you created it (i.e. root\mtw\forum).

4) We need to make this folder (where the forum is being held) Virtual Application folder. Go to Content --> IIS Settings. Once there Select Content Root and click the create button. In the Directory Name box enter the path to your forum (i.e. mtw\forum), select Set Application Root and Anonymous Access and click OK. Once you click OK it will again take 5-10 minutes for it to create this Virtual Directory (don't worry you can still move on to the next steps while it's creating)

5) In the YAF-v1.9.3-FINAL-BIN-NET20\webconfigs folder (when you extracted the YAF-v1.9.3-FINAL-BIN-NET20.zip files to) copy the recommended-web.config file to the root of the folder and rename it to web.config.

6) Upload all of the files from the YAF-v1.9.3-FINAL-BIN-NET20 to your forum folder (i.e. mtw\forum)

7) Next we need the Host Name for the database. This is the server name that GoDaddy has assigned to house your database. Go to Databases --> SQL Server and you should see that your database says setup. If it still says "Pending Setup" then we need to wait until it's set up before we can continue. Once it's set up click the Pencil (Edit/View Details) Icon and it will load your database settings. You will then see the "Host Name", now write this down.

8) Now we need to start changing the app.config, db.config, mail.config and web.config (Thanks to RickP714 for the posting on this: http://forum.yetanotherforum.net/yaf_postst8918_GoDaddy-1-9-1-8-to-1-9-3-update-success.aspx )

Do the following:

MODIFY

app.config:

add a password manually to (Line 12)----------------------

add a root to (Copy Line 104 to Line 106 and change)------

Enable URL Rewritting (Line 34, change False to True)-----

db.config:

add your connection string

Note: Data Source = Host Name you copied from GoDaddy SQL Server Screen --> View/Edit Details

mail.config:

add your GoDaddy email accountinfo:

Line 4 ------------

Uncomment Line 7---

web.config:

(Thanks to logan for this: http://forum.yetanotherforum.net/yaf_postsm30955_Auto-login-not-working.aspx#post30955 )

Go to: http://www.developmentnow.com/articles/machinekey_generator.aspx  and click on Generate Random Keys, copy the ASP.NET 2.0 machineKey.

It should look something like this:

validationKey="D5AA0100C84F39ABDA779B2C112CDBA0D6E289F2DD38CD568841F190532B2D46AAA94663348409A71D5A0CE33D4969C1781FB8EA7631617E20CC3F512FF9B90D"

decryptionKey="667D2CC04EE0960A055C0CFC8939559DE1FF0AA6884031F977F774291FA4E905"

validation="SHA1" decryption="AES"

/>

Paste that info on Line 40 (in the system.web section)

On line 110 add the following: minRequiredPasswordLength="3" minRequiredNonAlphanumericCharacters="0" to the:

9) After you have done this, saved your files and uploaded them. Then open your forum/install folder and go through the process (i.e. www.mysite.com/mtw/forum/install)

10) It will ask you for your config password, this is the password we set in Step 8 in the app.config file (the manual password).

11) It will then ask you to create a admin user name and password (Password must be min 3 chars, as per Step 8 the last change in web.config file)

If you have any problems just let me know and I will see what I can do to help.

Thanks and good luck!

Sponsor

berkleyp
  • berkleyp
  • 53.6% (Neutral)
  • YAF Forumling
13 years ago
Ok, it looks like everything went perfect. No errors during installation following these steps. But I get errors when attempting to "Edit" users and also when I try to "Register" Below are the codes in the event log. Im not the most intellegent person but it looks like they are the same error.

Edit User:


System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase)
   at System.Reflection.Assembly.get_CodeBase()
   at System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded)
   at System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded)
   at System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly)
   at System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName)
   at System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.FileIOPermission
The Zone of the assembly that failed was:
MyComputer
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at System.Web.UI.WebControls.ValidatorCompatibilityHelper.RegisterClientScriptResource(Control control, Type type, String resourceName)
   at System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript()
   at System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Register:


System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase)
   at System.Reflection.Assembly.get_CodeBase()
   at System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly)
   at System.Web.Handlers.ScriptResourceHandler.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded)
   at System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded)
   at System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly)
   at System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName)
   at System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.FileIOPermission
The Zone of the assembly that failed was:
MyComputer
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at System.Web.UI.WebControls.ValidatorCompatibilityHelper.RegisterClientScriptResource(Control control, Type type, String resourceName)
   at System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript()
   at System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer
13 years ago
Seems like Your web application is not configured have the FileIOPermission on the server. Make sure you have set the "YAF.Root" value correctly. I'm not familiar with GoDaddy control panel and whether you can change the permissions in there. Contacting space provider and asking them what are the ways to enable FileIOPermission on my host would be what I'd do.
If at first you don’t succeed, call it version 1.0
berkleyp
  • berkleyp
  • 53.6% (Neutral)
  • YAF Forumling
13 years ago
Apparently the FileIOPermissions is only available to Virtual Servers with the GoDaddy hosting plans. That would be an extra 12$ a month. Is there anything else I can do for a work around?
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
v1.9.4 works with regular hosting on GoDaddy.
berkleyp
  • berkleyp
  • 53.6% (Neutral)
  • YAF Forumling
13 years ago
Yeah, i figured i would try that out after GoDaddy support said I would need to get a virtual server to get the FileIOPermission options. I am proudly running "YetAnotherForum.NET version 1.9.403 beta"
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
13 years ago
Wonderful. v1.9.4 final will be the new default for GoDaddy Hosting Connection when it's released.