-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Controller not hitting and request pending , no response from server #2523
Comments
Can you try to minimize the repro - find out which part breaks, follow tutorials (does HelloWorld work for you?) and check your machine setup (doe it fail on brand new VM or another machine?) |
Hi, the attached is the smallest application please download the attached file and run the application.... u will get a file uploader in home page. just click submit button.. the request will not hit controller. if you change model for the file then it will hit. |
The problem is not only in .net core asp. in .net core web api also not working in same case. |
Hi, |
Do you hitting request while in debugging mode or without debugging? From my personal experience, sometimes it can get stuck while debugging. Try to run your program without debugging and post comment here. @rsmmukesh |
Hi, |
Sorry wrongly close button clicked. |
i have checked in .net core and .net core api. controller not hitting and no response from server. browser keep loading. please download and check the attached application.. just 5 min needed |
I don't know what you mean by "i have checked in .net core and .net core api" |
Actually im created a .net core web api application for server side needs. when im working on it i got this issue. so i have checked the same scenario in .net core mvc application. i got the same issue there also. |
@rsmmukesh You are really wasting our time. First you need to learn fundamentals of ASP CORE and if you have problem based on your code, try to find solution on internet first. your from should look like this
` |
@ljupko123 , Actually you are wasting my time, already 3 days wasted . Have you find out why the controller not hitting and server not responding? your answer is another way of doing. This solution i have simplified to make you understand the problem These are my models
Controller View
See above code, did you find any mistake? even if any mistake the solution should generate error. now the controller is not hitting and browser keep loading. i need selected files to model. if this is not right place to specify this issue then tell me where i have to raise this issue. Please don't behave like trying to escape from problem. |
image is not binding properly into the model . class inside class(property) is the problem. |
product- variant[0] - image[0] |
Let's try to be civil to each other. I don't think we need accusations of wasted time, etc.. Just to set expectations: GitHub is not a support channel, we do not have SLAs for answering any issues, and some questions might be unanswered for a long time / forever. I am not ASP.NET expert and this question here is sadly a bit confusing to me - it does not describe clearly to me what is problem, what has been tried, how is it isolated and which area the problem may be in, etc. Having a minimal repro is great, however, we should not expect that it will be used right away by others. Opening and debugging repros is time consuming and having few probing questions first is often more efficient way to find solutions. Again ... just to set expectations. ]I'll leave the technical answer to ASP.NET experts if/when they have time. |
i really sorry to disturb you. i have posted the issue because i stuck in my application. i will say it in simple. Normal case if we use IFormFile in the controller we get the selected data, it is working fine for me . But i have situation like below, in this situation im not getting the selected file data in server side also no call coming to server side , browser keeps loading, no respose from server side. public class AModel { public class BModel { Anyone understand the problem now? |
Hi @rsmmukesh , I think at this point it would be best to post a new issue to https://github.com/aspnet/AspNetCore/issues with complete details on how to reproduce this issue. Please include a full application and steps to reproduce. Thank you! |
@karelz You are right let be civil, I did not want to be rude i just pointed as throwing time for nothing about framework issues. This kind of questions should be asked on stack overflow and not here. If it is a framework issue its ok to post here. @rsmmukesh for the next time when you post an issue make sure to provide valuable details like you just said in comment "My application is a mobile app(Cordova)." and it will lead us to clue that you don't need typically MVC model bindings. We are here to solve problems not to argue. So, Asp Core is smart enough to recognize name="model.data[0].myfile" as generic type of array or list in your post request to your controller but, your controller doesn't accept generic type as an input right? because your current controller is this :
This is just fundamentals of MVC. And remember this: There is not place on this planet or universe like this, universe of developers where every single developer try to help each other. Trust me I did not have any intentions to offend you in any case, i just wish to point you to go in right direction. I hope i did help here and now you can proceed with your development :) |
No, base is normal class, inside the class i have generic. im trying to save a single product. other things are working as expected. but the variant image browsing is the problem. |
@Eilon ... thanks.. i will open the issue there. |
I assumed that this is .NET Core problem. If it is .NET Framework problem, then it does NOT belong here, nor to aspnet/AspNetCore repo - @rsmmukesh is that the case? |
I don't know where is the issue. You people can only identify the issue easily because you have the source code. from my side controller is not hitting. Controller not hitting and no response from server, Browser keep loading . To reproduce the issue, just download the attached application, then run the application. then you will get home page, it contains a text box and file uploader. Just click submit button. controller will not hit. Then problem is when i use file , controller is hitting if i remove the below code from the BModel class im sure you need only 1 minute to reproduce the issue, download ->run->click submit button (so i hope im not wasting your time). |
@rsmmukesh I think you misunderstood my question above - I was asking if you are running on .NET Framework or on .NET Core. Can you please answer that? BTW: Given that I know nothing about ASP.NET, running the app in 1 minute is not going to tell me anything. If it is bug in your code, I won't be able to tell. |
On .net core only |
do anyone check this issue? |
No - see above: #2523 (comment) |
Hi, |
Hi Mukesh, Even am facing the same issue since 10 days . Could you please let me know whether you got any solution or have you raised any other ticket ... Please let me know very urgent... Or Are you sure this 2.2 defect... please confirm |
It works when i have tried with .net core 3.0 preview 5 something . i think in the .net core 3 release it will work. try new version |
in .net core 2.2 it wont work. i tried a lot. |
I had similar issue, this fixed the issue: |
Controller not hitting and request pending , no response from server
Please check the below application.
Run the application you will get home page, i have placed a file uploader and submit button in form. and i have index post method in home controller. submit the form without selecting the file. then controller not hitting and request pending for long time. No result coming back from server .
now i cant continue my project. please give me solution for this.
WebApplication3.zip
The text was updated successfully, but these errors were encountered: