Base solution for your next web application

Activities of "kumaran"

After fresh install and running Update-Database, i do not see any user in my local db. I do see all the tables created but no data including user table.

Here is my connection string. Server=(localdb)\MSSQLLocalDB;Initial Catalog=xxDb;Integrated Security=True;

I have tried this with demo application and it worked. This is not working only after i downloaded the premium code. Need help.

I tried to create an "Event" entity and i got code generated with lots of errors in EventAppService.cs Eg:

Severity Code Description Project File Line Suppression State Error CS0161 'EventsAppService.GetEventForEdit(NullableIdDto<long>)': not all code paths return a value Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 69 Active Error CS0103 The name 'var' does not exist in the current context Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 71 Active Error IDE1007 The name 'input.Id' does not exist in the current context. Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 71 Active Error IDE1007 The name 'input' does not exist in the current context. Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 71 Active Error IDE1007 The name 'Id' does not exist in the current context. Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 71 Active Error CS0236 A field initializer cannot reference the non-static field, method, or property 'AbpServiceBase.ObjectMapper' Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 73 Active Error CS7036 There is no argument given that corresponds to the required formal parameter 'source' of 'IObjectMapper.Map<TDestination>(object)' Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 73 Active Error IDE1007 The name 'output' does not exist in the current context. Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 75 Active Error CS0103 The name 'Create' does not exist in the current context Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 81 Active Error CS0103 The name 'Update' does not exist in the current context Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 84 Active Error CS0103 The name 'var' does not exist in the current context Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 91 Active Error CS0103 The name 'ObjectMapper' does not exist in the current context Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 91 Active Error CS0103 The name '_eventRepository' does not exist in the current context Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 95 Active Error CS0103 The name 'var' does not exist in the current context Events.Application C:\Kumaran\AspnetZero\Events\aspnet-core\src\Events.Application\Event\EventsAppService.cs 101 Active

I get the following error in angular client when i try to save the data.

The error i see in console. The UI validation says required field error even though i have keyed in all values.

{code: 0, message: "Your request is not valid!", details: "The following errors were detected during validati…equired. ↵ - The Description field is required. ↵", validationErrors: Array(5)} core.js:1633 ERROR Error: An unexpected server error occurred. at new SwaggerException (service-proxies.ts:19014) at throwException (service-proxies.ts:19034) at MergeMapSubscriber.project (service-proxies.ts:5798) at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (mergeMap.js:60) at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (mergeMap.js:50) at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:54) at Observable._subscribe (service-proxies.ts:19040) at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:42) at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:28) at MergeMapOperator.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapOperator.call (mergeMap.js:28)

I created a new entity and now i can see the data in the form of data table grid. I wanted to convert that to "Dataview", what are the items i need to change. I tried to follow this example 'https://www.primefaces.org/primeng/#/dataview' but messed up my code. Can you please help.

Hi We are building a site to buy tickets for events. I need to accept payment through paypal gateway. We do have business account. I cannot find any documentation on how to implement paypal in a new page to complete an order. Please point me to the right direction.
Thanks

HI I am using asphostportal cloud hosting to deploy my application. I could not find any help in deploying to 3rd party hosting for .net core and angular in your web site. All i found is only Azure deployment.

After i deployed my core project to a virtual directory, i go the following error mentioned below. I am sure i am missing some steps regarding port. Also how do i deploy my database to this 3rd party hosting server. I do have sql server in the hosting.

Need help. Thanks

Error details:

HTTP Error 502.5 - Process Failure

Common causes of this issue: The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port

Troubleshooting steps: Check the system event log for error messages Enable logging the application process’ stdout messages Attach a debugger to the application process and inspect

For more information visit: <a class="postlink" href="http://go.microsoft.com/fwlink/?LinkID=808681">http://go.microsoft.com/fwlink/?LinkID=808681</a>

HI I deployed the server and angular to 2 different sub-domain

When i access the angular site, i get the following error.

Failed to load http://sandboxserver.xxxxxx.com/AbpUserConfiguration/GetAll: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://sandboxclient.xxxxxxxx.com' is therefore not allowed access.

Here are my config details: <ins>On server side: - appsettings.json (same for production.json and sandbox.json)</ins>

{
  "ConnectionStrings": {
    "Default": "Data Source=xxxxxxx"
  },
  "App": {
    "ServerRootAddress": "http://sandboxServer.xxxxxx.com",
    "ClientRootAddress": "http://sandboxClient.xxxxxx.com",
    "CorsOrigins": "http://sandboxClient.xxxxx.com, http://*"
  }
}

On client side appconfig.json (same for appconfig.production.json)

{
  "remoteServiceBaseUrl": "http://sandboxServer.xxxxxxxx.com",
  "appBaseUrl": "http://sandboxClient.xxxxxxxxx.com",
  "localeMappings": [
    {
      "from": "pt-BR",
      "to": "pt"
    },
    {
      "from": "zh-CN",
      "to": "zh"
    },
	{
		"from": "he-IL",
		"to": "he"
	}
  ]
}

I have also tried with the custom header on the server side web.config with the following and still doesn't work.

<add name="Access-Control-Allow-Headers" value="*" />

What am i missing?

Hi After deploying angular, once i login, to the dashboard, i see the following error.

scripts.4769eab2c29e62566639.js:1 WebSocket connection to 'ws://sandboxserver.somedomain.com/signalr?enc_auth_token=wNYmO41%2F48SHNstaLVXxHCCre29BZQl1NhC6NM3R3rzpXtPQxVzH6jEzA%2FQhXFN5tu6Fk7pO53uppm1mVXMZgxbyRVz26dnepi%2FFyB6axBY%2B6gq1GL%2BuRQgoiFUCjRN2p8w6LevViwKlHyWZZJZO1DGVSjAi1m2U%2Bog9pkHw9%2FQR4Nl%2FDPnoP9JYDMpZ1zxx09u6s0GZ9%2FQ5Sjk%2BL0UfcSCbl38X8he5w9UIn%2FHvxh7ysM1CiPLsoOwtbiieSRVmrmt0JjnipAn4%2FK283F8GrGwzwgehWsqefmUnM0ckMwP9ZAdwQxWDhxv0IqNw4tDhwUYs%2F1SYdYozdNzgByhgNOBPzQDObNLlWc4vV5VMOiZ%2B4sgIs%2B%2FcBC813%2BM3dHDtOCXR8nhbk37Kq5Z1zwKPyzmhnQfT8YxO9zPn48...EYiw1JInKewaInQql3IIibk%2B5ByfkYw6tx6NJafOyli0%2FNlHiGdPntZ0LUxTMuQO3S7DBmQi%2BBNHNmdoHEwXdobwG2mRerTvKce%2BCqZ4TCrLD3Lsg4EIBX%2BIy9df829lsYkLP2y%2Bp0gxT5hdqUufJocaor5z47bxoGxTuF6SO72loy33r65WDVO0yMYjUv%2BCgweIDhUYtDbsr8puTWYtZS3cyggHND5%2FrVn%2BNQE6cb7ml3RhUFvAQ%2FN8UUVlNHqVzRoFF8Ikf%2FFCt4DcT1nLXepNw1RpbQZPlA7PCq7rrjkNBodCE2YymCsHZ7UMHEwLt0cgOv%2BVYGZ8IOw89AHHenA4AT6ARN1mAOEYll0QdL%2F157CGC6mJ%2BRVMOq2WaV6AZHVDJNXR51c0w2moDwQP0iMSCAwAil6B2Tinimf2nSiGkg3%2BDdR1R%2BpvJLVPcO8OE%3D&id=qBcA7RkYA429sKecjdxIpA' failed: Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing (anonymous) @ scripts.4769eab2c29e62566639.js:1 .. ..

scripts.4769eab2c29e62566639.js:1 Error: Failed to start the connection: Error: Unable to initialize any of the available transports.

What is missing. I did not touch any singalR code. I never had issue in my local.

I am having a stackoverlow issue during the object mapper with DTO object I want to make sure my dto class is correct.

Here is the query.

public async Task<CreateOrEditOrderDto> GetOrderForEditByPaymentyId(string paymentId)
{
	var order = await _orderRepository
		.GetAll()
		.Include(o => o.OrderDetails)
		.Include(r => r.Rewards)
		.Include(p => p.OrderPromotions)
		.SingleAsync(x => x.PaymentId == paymentId);

	return ObjectMapper.Map<CreateOrEditOrderDto>(order);     <==========================Here is the stack overflow error--because order detail has order relationship which keeps loading recursive.  How can i avoid it.  See my class definition below.
}
	
[Table("Orders")]
public class Order : FullAuditedEntity 
{
	[ForeignKey("ShowId")]
	public virtual Events.Show.Show Show { get; set; }
	public virtual int ShowId { get; set; }
	..
	..
	
	public virtual OrderStatus OrderStatus { get; set; }

	public virtual ICollection<OrderDetail> OrderDetails { get; set; }
	public virtual ICollection<Reward.Reward> Rewards { get; set; }
	public virtual ICollection<OrderPromotion> OrderPromotions { get; set; }
}
	

public class OrderDetail : Entity<int>
{
	[ForeignKey("OrderId")]
	public virtual Events.Order.Order Order { get; set; }
	public virtual int OrderId { get; set; }
	[Required]
	public virtual int ShowTicketId { get; set; }

	public virtual string TicketName { get; set; }
	public virtual int TicketCount { get; set; }
	public virtual double TotalTicketAmount { get; set; }
}


public class OrderDetailDto : EntityDto
{
	public CreateOrEditOrderDto Order { get; set; }
	public int OrderId { get; set; }

	public int ShowTicketId { get; set; }

	public string TicketName { get; set; }
	public int TicketCount { get; set; }
	public double TotalTicketAmount { get; set; }
}

public class CreateOrEditOrderDto : FullAuditedEntityDto<int?>
{
	public CreateOrEditShowDto Show { get; set; }
	[Required]
	public int ShowId { get; set; }
   ..
   ..
   public ICollection<OrderDetailDto> OrderDetails { get; set; }

	public ICollection<RewardDto> Rewards { get; set; }

	public ICollection<OrderPromotionDto> OrderPromotions { get; set; }

}
   

I am using Angular and .net core. I am trying to add a new controller Get method in proj.Web.Core project.

In this method i need to access my logged in current user id so it is a secured method.

When the UI calls this url i get the following Request URL: http://localhost:22742/Profile/GetMyTicketImage?orderId=8011 Request Method: GET Status Code: 302 Found

and then redirects to

Request URL: http://localhost:22742/Account/Login?ReturnUrl=%2FProfile%2FGetMyTicketImage%3ForderId%3D8011 Request Method: GET Status Code: 404 Not Found

What i am missing when i am adding a new controller method?

If it is an anonymous method, it its of no use as i dont get my current user id. I have seen another controller method when you post the profile picture in profile controller which access the current user id and that one works but not mine.

Can anyone help?

Showing 1 to 10 of 12 entries