Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dave 48 posts 68 karma points
    Jul 18, 2011 @ 12:49
    Dave
    0

    New user

    Hi eran

    Just found this and it looks like just what I want - however - when I try to build the source code (unchanged) in VS2010 I get the following errors:
    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    Error 1 The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) C:\inetpub\wwwroot\RVContactForm\RVContactFormMailer.asmx.cs 8 18 RVContactForm
    Error 2 The type or namespace name 'ScriptServiceAttribute' could not be found (are you missing a using directive or an assembly reference?) C:\inetpub\wwwroot\RVContactForm\RVContactFormMailer.asmx.cs 35 6 RVContactForm
    Error 3 The type or namespace name 'ScriptService' could not be found (are you missing a using directive or an assembly reference?) C:\inetpub\wwwroot\RVContactForm\RVContactFormMailer.asmx.cs 35 6 RVContactForm
    Error 4 The type or namespace name 'ScriptMethodAttribute' could not be found (are you missing a using directive or an assembly reference?) C:\inetpub\wwwroot\RVContactForm\RVContactFormMailer.asmx.cs 41 10 RVContactForm
    Error 5 The type or namespace name 'ScriptMethod' could not be found (are you missing a using directive or an assembly reference?) C:\inetpub\wwwroot\RVContactForm\RVContactFormMailer.asmx.cs 41 10 RVContactForm
    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    Is this a known problem or have I done something wrong

    Cheers

    Dave

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 18, 2011 @ 14:07
    Sebastiaan Janssen
    0

    Have you got .net 4.0 installed? It should be able to reference the correct dll then. If not, go into your references and make sure System.Web.Extensions doesn't have an exclamation mark. If it does, you may want to remove it and re-add it.

    I don't have this problem when I open up the solution.

  • Dave 48 posts 68 karma points
    Jul 18, 2011 @ 16:41
    Dave
    0

    OK thanks Sebastiaan

    Problem solved

    8-)

    Dave

  • Dave 48 posts 68 karma points
    Jul 21, 2011 @ 15:28
    Dave
    0

    Next problem.....

    The Contact page shows up fine.
    I have changed the config file for From and To, apparently (according to our tech guy) the web.config doesnt need any changes as the server that its on does not need authentication. Its set to <network host="127.0.0.1" userName="username" password="password" />.

    When I click the Send button - with or without any fields entered - nothing happens - I get no errors but also no emails!

    Anyone have a clue???

    Cheers

    Dave

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 21, 2011 @ 15:46
    Sebastiaan Janssen
    0

    Is your "From" address configured correctly? Some mail servers reject e-mails where the "from" address is not in the same domain. 

    The SendMail function is wrapped in a try - catch, it logs errors to the umbracoLog table. Have a look in that table.

  • Dave 48 posts 68 karma points
    Jul 21, 2011 @ 16:07
    Dave
    0

    Thanks for that.

    My from and To are set correctly.

    I've got the log open in MSSQL Management Studio and when I hit the Submit button I get a number of:

    id userId NodeId Datestamp logHeader logComment
    11158 0 -1 2011-07-21 15:06:35.327 Error Error adding stylesheet to tinymce (id: 1049). System.ArgumentException: No node exists with id '1049'     at umbraco.cms.businesslogic.CMSNode.setupNode()     at umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id)     at umbraco.cms.businesslogic.web.StyleSheet..ctor(Int32 id)     at umbraco.editorControls.tinyMCE3.TinyMCE..ctor(IData Data, String Configuration)

    Does that throw any light on my problem?

    Cheers

    Dave

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 21, 2011 @ 16:16
    Sebastiaan Janssen
    0

    None at all, the log message should begin with "Error creating or sending contact mail".

    Maybe remove the try-catch and see if you get a nice "yellow screen of death"? If you don't then obviously the problem is not rooted in sending the mail, although I can't see what else could go wrong. What exactly do you see when you submit the form (with and without values)? There should be plenty of error messages when you leave it empty, likewise there should be a confirmation message when you enter valid values. 

  • Dave 48 posts 68 karma points
    Jul 21, 2011 @ 16:24
    Dave
    0

    When I hit the Submit button - really - nothing happens - its just like hitting a button with no code behind it - no errors - no screen changes at all!
    I have simply installed the package and put the macro on a page
    At the moment I dont even have the VS code - I was hoping I could get away without having to change it.

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 21, 2011 @ 16:45
    Sebastiaan Janssen
    0

    Ah, hang on, this is not my package, I was under the assumption that it was. So I don't have much of a clue.. ;-)

    First guess: your javascript is off or you need to put a <form runat="server"> tag around your macro.

  • Dave 48 posts 68 karma points
    Jul 21, 2011 @ 17:10
    Dave
    0

    The package is RV Contact Form by Eran Meir.

    Javascript is not off in any browsers I use, its used all the time in other websites!

    There is a form tag in the RVContactForm.xslt (<form id="ContactForm" runat="server">)

     

  • Dave 48 posts 68 karma points
    Jul 21, 2011 @ 17:55
    Dave
    0

    Update - just installed the Runway contact macro on the same page on the same server and it works a treat!

    Not sure where to go with  the RV contact form .......

  • Eran 292 posts 436 karma points
    Jul 21, 2011 @ 19:01
    Eran
    0

    HI,

    sorry for the delayed answer - from some reason i dont get the notifications.

    Sebastiaan: thanks for the help and for let me know about this via twitter.

    Dave: did you read all the documentation? its very important to read them and to see if all the settings are correct. there is also list of files that installed by the package. make sure that you have everything in the right place as it should be. 

    special note is that you have to make sure that you have working SMTP configuration in your web.config anf that you configured also the config file that is included with the package. (\config\RVContactForm.xml).

    seconed - the XSLT macro contains references to jQuery plugins:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.8/jquery.validate.min.js" />

    make sure that your master page or other wrapper elemet dont already containing these files.

    thanks,

    Eran.

  • Dave 48 posts 68 karma points
    Jul 22, 2011 @ 10:08
    Dave
    0

    Hi Eran

    Yes, I did read the docs and I'm sure that I made all the correct changes to the config files.
    Incidentally I have an RVContactForm.config not  RVContactForm.xml
    JQuery is loaded by the master page so I commented out the loads for it in your code, none of which made any difference.
    However, these teething troubles prompted me to load the Runway basic contact page and I am now building my own using that as a base (which worked immediately!). I installed it in the same place as RV and that proved that the SMTP was set up correctly when it worked.

    That being said, I'd still be interested in finding out why your install didnt work in the background, I just dont have the time to keep fighting with it - sorry!

    Best regards

    Dave

  • Eran 292 posts 436 karma points
    Jul 22, 2011 @ 23:26
    Eran
    0

    HI,

     sorry that you didnt get it to work. i heared lot of positive reactions and lot of people that the package worked for them. i'm sure that we can make it work also on your site - its just a matter of configuration and finding the problem with your specific machine. but anyway if you dont have the time and you found other solution, its great to. maybe in the future try to install it on different machine and see how it works.

    good luck!

    Eran.

Please Sign in or register to post replies

Write your reply to:

Draft