WordPress database error: [INSERT, UPDATE command denied to user '51213-2'@'10.10.20.86' for table 'wp_options']INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1714541134.4263548851013183593750', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)
Sorry, I don\’t know VB 🙁
]]>Thanks…
]]>As pointed out in the last line of my post 😉
]]>Hello,
Thank you for your addition. It works fine and avoid parsing string but I think that creating the new AssemblyName do some other checks(see the remarks: http://msdn.microsoft.com/en-US/library/b6ccxba0(… which may cost more in performance ?
Regards,
]]>Thank, you this is nice too 🙂
]]>]]>Version assemblyVersion = (new AssemblyName(Assembly.GetExecutingAssembly().FullName)).Version;
]]>AssemblyName assemblyName = new AssemblyName(Assembly.GetExecutingAssembly().FullName);
string assemblyVersion = assemblyName.Version.ToString();
See GetVersionFromManifestFile() in
http://northernlights.codeplex.com/SourceControl/…
This option doesn't care in which assembly you store your function. It will always read your main source, the WMManifest file.
]]>