I am working on the existing umbraco website. Previous developer has made contact form and the data is submitting into database through code behind file. Now, I am not able to change it because it's been compiled into .dll. Even I am not able to use the same user control, it's keep throwing me error " error creating user control ". Is there any solution for this! Can I write the asp.net code somewhere on the umbraco to edit the previous one.
You can try to get a better error message if you goto Developer -> Macros, select your macro that is referencing the usercontrol, and click the Browse Properties button. This usually gives you the "real" error which might help you troubleshoot. Could be a missing DLL or something.
If it's a simple usercontrol you could also try a decompiler like dotPeek or ILSpy to see what the usercontrol is doing.
error CS1705: Assembly 'alco_california_reroll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' which has a higher version than referenced assembly 'MySql.Data, Version=5.1.2.2, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
You could try downloading it from the MySql website and just dropping it in the /bin/ folder, not sure if Umbraco might have some hardcoded dependencies to it though
Write code for user control
Hi,
I am working on the existing umbraco website. Previous developer has made contact form and the data is submitting into database through code behind file. Now, I am not able to change it because it's been compiled into .dll. Even I am not able to use the same user control, it's keep throwing me error " error creating user control ". Is there any solution for this! Can I write the asp.net code somewhere on the umbraco to edit the previous one.
I am stuck..need help on this..
Thank you,
Sundip
Hi,
You can try to get a better error message if you goto Developer -> Macros, select your macro that is referencing the usercontrol, and click the Browse Properties button. This usually gives you the "real" error which might help you troubleshoot. Could be a missing DLL or something.
If it's a simple usercontrol you could also try a decompiler like dotPeek or ILSpy to see what the usercontrol is doing.
-Tom
Sounds good, thanks.. Do you have any idea how to change the version of MySql.dll to 6.4.4.0 that's the error.
Thank you once again..
Sundip
Actual error:
error CS1705: Assembly 'alco_california_reroll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' which has a higher version than referenced assembly 'MySql.Data, Version=5.1.2.2, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
You could try downloading it from the MySql website and just dropping it in the /bin/ folder, not sure if Umbraco might have some hardcoded dependencies to it though
Hey Tom,
Thank you for the suggestion, it worked for me to drop new .dll to the current bin folder with few changes in web.config.
is working on a reply...