Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "avanekar02"

You can email me at <a href="mailto:[email protected]">[email protected]</a> so that we can share the skype id and take it up from there

Regards Anwar

Hello

My name is Anwar and i have done 2 projects using asp.net zero please tell me the nature of your project , and we can discuss the remunerations later.

Regards Anwar

Answer

Hello

Found that email cannot be send in debug mode so i went to CoreModule and commented the line

IocManager.Register<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient);

compiled and ran again,

it throws an internal server error says 500

<a class="postlink" href="http://localhost:6240/api/services/app/hostSettings/SendTestEmail">http://localhost:6240/api/services/app/ ... dTestEmail</a>

when i click on this link it shows


{"message":"An error has occurred.","exceptionMessage":"There is an action SendTestEmail defined for api controller app/hostSettings but with a different HTTP Verb. Request verb is GET. It should be Post","exceptionType":"Abp.AbpException","stackTrace":" at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.GetActionDescriptorByActionName(HttpControllerContext controllerContext, DynamicApiControllerInfo controllerInfo, String actionName) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Controllers\Dynamic\Selectors\AbpApiControllerActionSelector.cs:line 103\r\n at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Controllers\Dynamic\Selectors\AbpApiControllerActionSelector.cs:line 56\r\n at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.DynamicApiController1Proxy_6.ExecuteAsync_callback(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.Invocations.ApiController_ExecuteAsync_6.InvokeMethodOnTarget()\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Abp.WebApi.Controllers.Dynamic.Interceptors.AbpDynamicApiControllerInterceptor1.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Controllers\Dynamic\Interceptors\AbpDynamicApiControllerInterceptor.cs:line 57\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Castle.Proxies.DynamicApiController`1Proxy_6.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.

Answer

i did set these to gmail
host : smtp.gmail.com domain : gmail.com sender : <a href="mailto:[email protected]">[email protected]</a> to : <a href="mailto:[email protected]">[email protected]</a>

also provided the password

but when i click test email it says email sent successfully but i receive no email

thanks

Answer

i tried domain name with gmail.com also but it does not work, with proper gmail user and password given

Answer

yes, thank you but after setting these details the test email does not fire email i am recieving no email can you please tell me what i am doing wrong.

Regards Anwar

Answer

Hello could not find the email tab attached is a screen shot

thanks

Answer

i logged in as admin but could not see the email tab

ok i have created a view in the frontend called feedback and in the controller folder a feedback controller from the view feedback.cshtml i want to accept data and when i submit the form i want an action in the feedback controller to be called..

Thanks Anwar

this is the error i get

HTTP Error 400.0 - Empty or invalid anti forgery header token. shown below is cshtml and controller file

This is my form feedback.cshtml

@using Samit.CmsProTest.Web.Navigation

@{ ViewBag.CurrentPageName = PageNames.Frontend.FeedBack; }

<div class="row"> <div class="col-md-12 page-404"> <div class="number font-red"> @L("FeedBack") </div> <div class="details" style="width:40%"> <form class="feedback-form" action="@Url.Action("FeedBack")" method="post">

            &lt;div class=&quot;form-group&quot;&gt;
                &lt;label class=&quot;control-label visible-ie8 visible-ie9&quot;&gt;@L("Name")&lt;/label&gt;
                &lt;input class=&quot;form-control placeholder-no-fix&quot; type=&quot;text&quot; placeholder=&quot;@L(&quot;Name&quot;)&quot; name=&quot;Name&quot; required value=&quot;@Model.Name&quot; maxlength=&quot;@Samit.CmsProTest.Authorization.Users.User.MaxNameLength&quot; /&gt;
            &lt;/div&gt;
            &lt;div class=&quot;form-group&quot;&gt;
                &lt;label class=&quot;control-label visible-ie8 visible-ie9&quot;&gt;@L("EmailAddress")&lt;/label&gt;
                &lt;input class=&quot;form-control placeholder-no-fix&quot; type=&quot;email&quot; placeholder=&quot;@L(&quot;EmailAddress&quot;)&quot; name=&quot;EmailAddress&quot; required value=&quot;@Model.EmailAddress&quot; maxlength=&quot;@Samit.CmsProTest.Authorization.Users.User.MaxEmailAddressLength&quot; /&gt;
            &lt;/div&gt;
            &lt;div class=&quot;form-group &quot;&gt;
                &lt;label class=&quot;control-label visible-ie8 visible-ie9&quot;&gt;@L("FeedBack")&lt;/label&gt;
                &lt;textarea class=&quot;form-control&quot; rows=&quot;5&quot; placeholder=&quot;@L(&quot;FeedBack&quot;)&quot; name=&quot;Suggestions&quot; required value=&quot;@Model.Suggestions&quot;&gt;&lt;/textarea&gt;
            &lt;/div&gt;
            &lt;div class=&quot;form-actions&quot;&gt;
             
                &lt;a href=&quot;@Url.Action(&quot;Index&quot;, &quot;FeedBack&quot;)&quot;&gt;     &lt;/a&gt;
                &lt;button type=&quot;submit&quot; class=&quot;btn btn-success uppercase pull-right&quot;&gt;@L("Submit")&lt;/button&gt;
            &lt;/div&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;

</div>


FeedBackController

using Abp.Domain.Uow; using Samit.CmsProTest.School.Courses; using Samit.CmsProTest.School.Courses.Dto; using Samit.CmsProTest.Web.Models; using Samit.CmsProTest.Web.Models.FeedBack; using System.Web.Mvc;

namespace Samit.CmsProTest.Web.Controllers { public class FeedBackController : CmsProTestControllerBase { private readonly ICourseDtlAppService _courseDtlAppService;

    public FeedBackController(ICourseDtlAppService courseDtlAppService)
    {
        _courseDtlAppService = courseDtlAppService;
    }

    public ActionResult Index(FeedBackViewModel feedbackViewModel)
    {

        var model = new FeedBackViewModel();

        return View(model);
    }

    [HttpPost]
    [UnitOfWork]
    public ActionResult FeedBack(FeedBackViewModel feedBackModel)
    {
        var model = new FeedBackViewModel();

        return View(model);
    }


}

}

Showing 131 to 140 of 185 entries