Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal problem (Change tenant and Edits) #4889

Closed
menendeze opened this issue Sep 27, 2019 · 6 comments · Fixed by aspnetboilerplate/module-zero-template#169
Closed

Modal problem (Change tenant and Edits) #4889

menendeze opened this issue Sep 27, 2019 · 6 comments · Fixed by aspnetboilerplate/module-zero-template#169
Assignees
Labels
Milestone

Comments

@menendeze
Copy link

menendeze commented Sep 27, 2019

I downloaded all versions of your templates, but the one I'm interested is MVC5 Asp.net Framework.

  1. Unpack
  2. Change connection string
  3. Update-Database
  4. Run

It works, but get error everytime you click on change tenant or edit(user/tenant), can create.
Traced and the modal goes through jquery:

jQuery.parseJSON = function( data ) { return JSON.parse( data + "" ); };

At that point have the entire modalview and gets a parse error.

I provided source code and live site so you can try, there is a StackOverflow post too:

https://imgur.com/a/Ft2w9cS (Screenshot)
http://menendeze-001-site3.gtempurl.com (Live site)
https://stackoverflow.com/questions/58087212/fix-aspnetboilerplate-startup-template-tenant-or-edit-with-errors (StackOverFlow Post)
https://github.com/menendeze/AbpTrouble (Repository)

The error happens with all versions except the one that uses Angular (That just gives me error when creating a tenant).

Is there any version that works from scratch (I'm just interested on a clean template). I was trying to fix this but It's been like a week on this and until yesterday I found out that is at Javascript level, thats why no information on the Log.txt or Debug trace.

Thank you.

@oakuraape
Copy link

I too am experiencing this with a freshly downloaded template and would like to know if there is a resolution.

@maliming
Copy link
Member

I will check it out.

@oakuraape
Copy link

It looks like the underlying error is "Unexpected token < in JSON at position 0" if that helps

@maliming maliming self-assigned this Sep 27, 2019
@maliming
Copy link
Member

@ismcagdas ismcagdas added this to the v5.0 milestone Sep 27, 2019
@ismcagdas
Copy link
Member

@maliming did you find the cause of the problem ? abp.ajax uses same approach with $.ajax

@menendeze
Copy link
Author

Now it works, thank you, I'll update the StackOverFlow Thread.

@ismcagdas ismcagdas modified the milestones: v5.0, v4.10 Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants