papalazarou
New Member
- Messages
- 1
- Reaction score
- 0
- Points
- 0
Hi,
I've read the 'getting .net to work with mysql' tutorial, and have downloaded the msql dlls, and i can get it to build in VS if i add the two dlls as VS references. (which i read wasn't necessary ?? ).
But then when i upload it to my site, along with the dll's in the /bin folder, and i've changed the config file to what it says here http://forums.x10hosting.com/tutorials/104039-how-get-asp-net-work-mysql-x10hosting.html (with the references), then i try to view my Extensions.aspx page, i get this:
I've read the 'getting .net to work with mysql' tutorial, and have downloaded the msql dlls, and i can get it to build in VS if i add the two dlls as VS references. (which i read wasn't necessary ?? ).
But then when i upload it to my site, along with the dll's in the /bin folder, and i've changed the config file to what it says here http://forums.x10hosting.com/tutorials/104039-how-get-asp-net-work-mysql-x10hosting.html (with the references), then i try to view my Extensions.aspx page, i get this:
If i take out any mention of mysql stuff in the code then it works fine. Any ideas?System.TypeLoadException: Could not load type 'MyWebsite.Extensions' from assembly 'MyWebsite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at (wrapper managed-to-native) System.MonoType:GetField (string,System.Reflection.BindingFlags) at System.Web.Compilation.TemplateControlCompiler.CheckBaseFieldOrProperty (System.String id, System.Type type, System.CodeDom.MemberAttributes& ma) [0x00000] at System.Web.Compilation.TemplateControlCompiler.CreateField (System.Web.UI.ControlBuilder builder, Boolean check) [0x00000] at System.Web.Compilation.TemplateControlCompiler.CreateControlTree (System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean childrenAsProperties) [0x00000] at System.Web.Compilation.TemplateControlCompiler.CreateControlTree (System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean childrenAsProperties) [0x00000] at System.Web.Compilation.TemplateControlCompiler.CreateControlTree (System.Web.UI.ControlBuilder builder, Boolean inTemplate, Boolean childrenAsProperties) [0x00000] at System.Web.Compilation.TemplateControlCompiler.CreateMethods () [0x00000] at System.Web.Compilation.PageCompiler.CreateMethods () [0x00000] at System.Web.Compilation.BaseCompiler.ConstructType () [0x00000] at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode () [0x00000] at System.Web.Compilation.BuildManager+BuildItem.GenerateCode () [0x00000]