Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful. I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you ruclips.net/user/kudvenkatplaylists?view=1&sort=dd If you need DVDs or to download all the videos for offline viewing please visit www.pragimtech.com/kudvenkat_dvd.aspx Slides and Text Version of the videos can be found on my blog csharp-video-tutorials.blogspot.com Tips to effectively use my youtube channel. ruclips.net/video/y780MwhY70s/видео.html If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. ruclips.net/user/kudvenkat If you like these videos, please click on the THUMBS UP button below the video. May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them. Good Luck Venkat
I did all the steps as mentioned in the viedeo and blog but my service generating exception An exception of type 'System.InvalidOperationException' occurred in WebApiContrib.Formatting.Jsonp.dll but was not handled in user code
kudvenkat. You have speedened up the process of acquiring knowledge on APIs. You are also explaining it in a simple way even for complex concepts. This series is my first with you and I must say I love the videos. Good job sir!
Only because you are so awesome with the videos that i feel the need to support you as much as possible, I don't skip any advertisement for your videos and like every video possible...
Been watching a lot of your videos. Are you an alien? (joking). The quality is simply out of this world. It's magnificent. Thanks very much for your effort.
You are doing good job. Just one request. When you say something Important then either change the tone or increase/decrease volume. Mind picks the things when there is change in either in tone or volumn.
In Fiddler, we have to manually supply the callback function name otherwise we get that 500 error. In the JavaScript code in both html pages, we're not supplying the callback function name to the Uri and code works. In fact, if we manually supply the callback function name in the ajax call then we don't see any employee appear on the page. I'm assuming this is because jQuery automatically adds a callback function name when we specify dataType as 'jsonp'?
Hi Venkat, All tutorials are very good. After including Jsonp package I am still getting error the below error, XMLHttpRequest cannot load localhost:63946/api/employee/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:53500' is therefore not allowed access. The response had HTTP status code 500. How to overcome this?
Since we started working with jQuery in this series none of the jQuery API calls are working for me. Bummer. I don't know how he does it. The jQuery ajax does not work and JsonMediaTypeFormatter(config.Formatters.JsonFormatter) is the 1st overload and is a protected class that can't be reached from EmployeeService > WebApiConfig.cs
I am Getting below error when final run: An exception of type 'System.InvalidOperationException' occurred in WebApiContrib.Formatting.Jsonp.dll but was not handled in user code Additional information: A callback parameter was not provided in the request URI.
With my limited knowledge I have a question that may sound silly, if the same url works fine from inside the HTML s even without any callback function how it gives the 500 internal error only during fidler? Is that error still allows the other domain HTML to get the data ? Can anyone please let me know?
I can get only output by calling localhost:51126/api/Employees in a cross domain using jQuery ajax, but if I am working a big project and API hosted on www.api.com , presentation layer hosted on www.presentation.com, then should I replace localhost:51126/api/Employees manually to www.api.com/api/Employees when I call from jQuery or Javascript ? please explain what is the best practise ?
Hi sir... I tried this & it worked as shown i.e. on same server but diff domain but when I'm trying to access api of another server then it gives me error of CORS(IN Firefox this is shown as does error & in chrome it shows as similar to your error) Need guidance...
Cross domain call does not work well. An error about "a callback parameter was not provided in the request URI" appeared. Please help. (but some domain request working well)
I get "The type or namespace name 'JsonpMediaTypeFormatter' could not be found (are you missing a using directive or an assembly reference?)". What is mean?
I am getting no data returned by either HtmlPage1.html or Employees.html. I get no error either. If I replace the "dataType: 'jsonp'" with "dataType: 'json'" in Employees.html I once again get data. Still nothing from HtmlPage1.html.
f the HtmlPage1.html is not giving back de information required, make sure that the jquery version in ClientApplication> Scripts>jquery-X.X.X.js corresponds to the one used in the html page, that wasn´t mentionned in the video, and may get ypu in trouble.
hi there my EmployeeService.html is working fine though its shows output bit late but HtmlPage1.html is not working with this error Failed to load localhost:51323/api/employees: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:49708' is therefore not allowed access. The response had HTTP status code 500. kindly reply fast thanks
i only get output when i use localhost:51106/Employees.html?callback=ABC and localhost:49704/HtmlPage1.html?callback=ABC.....Sir can u tell me why so ?
Thanks for the video, I am getting a peculiar error of Http Status code 500. The detailed error is given below, I am missing something, Can you please help me. Thanks in advance. "XMLHttpRequest cannot load localhost:53646/api/employees. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:53443' is therefore not allowed access. The response had HTTP status code 500." In IE it's showing SEC7120 and HTTP500 error.
Hi Sir, First of all, thank you very much for these videos. Second, JSONP did not work with me, chrome is giving >> Access to XMLHttpRequest at 'localhost:58619/api/Employees' from origin 'localhost:7889' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Please advise.
When adding JsonP dll reference in my Project, i got a error message. [HttpException (0x80004005): 'System.Net.Http.Formatting, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. AnyBody help me~~
I'm just trying this Solution. Solution 1: It seems that some dependencies are broken. Have you tried to reinstall NuGet package? From the package manager, run Update-Package Microsoft.AspNet.WebApi -reinstall. From: forums.asp.net/t/2042710.aspx?Error+loading+System+Net+Http+Formatting
JsonMediaTypeFormatter class has a parameterized constructor but it's Access Modifier is Protected not the Public, so i can't use the JsonMediaTypeFormatter(config.Formatters.JsonFormatter); in WebApiConfig.Cs class. Can Someone help me here.
If the HtmlPage1.html is not giving back de information required, make sure that the jquery version in ClientApplication> Scripts>jquery-X.X.X.js corresponds to the one used in the html page, that wasn´t mentionned in the video, and may get ypu in trouble.
First of all i cou6 like to say special thanks for this video. Sir after adding jsonp reference filw from nuget i am getting error.. Couldn't load file or assembly System.Net.Http.Formatting Version=5.0.0.0. Publictoket 31bf3856ad346e35. Exception from HRESULT 0x80131040. Please sir help me
Thanks for sharing. I both like your technical skills as your so zen way of transferring knowledge. Wish you all the good!
Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
ruclips.net/user/kudvenkatplaylists?view=1&sort=dd
If you need DVDs or to download all the videos for offline viewing please visit
www.pragimtech.com/kudvenkat_dvd.aspx
Slides and Text Version of the videos can be found on my blog
csharp-video-tutorials.blogspot.com
Tips to effectively use my youtube channel.
ruclips.net/video/y780MwhY70s/видео.html
If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
ruclips.net/user/kudvenkat
If you like these videos, please click on the THUMBS UP button below the video.
May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
Good Luck
Venkat
I did all the steps as mentioned in the viedeo and blog but my service generating exception
An exception of type 'System.InvalidOperationException' occurred in WebApiContrib.Formatting.Jsonp.dll but was not handled in user code
kudvenkat. You have speedened up the process of acquiring knowledge on APIs.
You are also explaining it in a simple way even for complex concepts.
This series is my first with you and I must say I love the videos.
Good job sir!
OMG, this is the best explanation I have heard for the Cross-domain.
Only because you are so awesome with the videos that i feel the need to support you as much as possible, I don't skip any advertisement for your videos and like every video possible...
same here
Thank you so much for the Wonderful videos. Probably How many more to videos come for this Topic(Web API).You are a wonderful Teacher.
Been watching a lot of your videos. Are you an alien? (joking). The quality is simply out of this world. It's magnificent. Thanks very much for your effort.
Wow, this video made me feel like i just ate the forbidden fruit of knowledge, everything becomes clear in seconds :-)
You are doing good job. Just one request. When you say something Important then either change the tone or increase/decrease volume. Mind picks the things when there is change in either in tone or volumn.
That's pretty amazing! Thanks!
Thank you for uploading in 720px
Thanks for re-upload. God bless !!
Great video. Thanks for your help!
Thanks for re-upload better quality
Great !!! Explanation
In Fiddler, we have to manually supply the callback function name otherwise we get that 500 error.
In the JavaScript code in both html pages, we're not supplying the callback function name to the Uri and code works.
In fact, if we manually supply the callback function name in the ajax call then we don't see any employee appear on the page.
I'm assuming this is because jQuery automatically adds a callback function name when we specify dataType as 'jsonp'?
Hi Venkat,
All tutorials are very good.
After including Jsonp package I am still getting error the below error,
XMLHttpRequest cannot load localhost:63946/api/employee/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:53500' is therefore not allowed access. The response had HTTP status code 500.
How to overcome this?
change data:"jsonp" to dataType:"jsonp"
is jsonp needed to write at the place of datatype even projects and api exists in same solution .
Super. Keep up the good work!
Since we started working with jQuery in this series none of the jQuery API calls are working for me. Bummer.
I don't know how he does it. The jQuery ajax does not work and JsonMediaTypeFormatter(config.Formatters.JsonFormatter) is the 1st overload and is a protected class that can't be reached from EmployeeService > WebApiConfig.cs
I am Getting below error when final run:
An exception of type 'System.InvalidOperationException' occurred in WebApiContrib.Formatting.Jsonp.dll but was not handled in user code
Additional information: A callback parameter was not provided in the request URI.
With my limited knowledge I have a question that may sound silly, if the same url works fine from inside the HTML s even without any callback function how it gives the 500 internal error only during fidler? Is that error still allows the other domain HTML to get the data ? Can anyone please let me know?
Please Upload Crud Methods like get_All, get_by_Id, insert,update,delete, using sqlservar in web Api , postman, without using entity framework
I can get only output by calling localhost:51126/api/Employees in a cross domain using jQuery ajax, but if I am working a big project and API hosted on www.api.com , presentation layer hosted on www.presentation.com, then should I replace localhost:51126/api/Employees manually to www.api.com/api/Employees when I call from jQuery or Javascript ? please explain what is the best practise ?
Hi sir... I tried this & it worked as shown i.e. on same server but diff domain but when I'm trying to access api of another server then it gives me error of CORS(IN Firefox this is shown as does error & in chrome it shows as similar to your error)
Need guidance...
Cross domain call does not work well. An error about "a callback parameter was not provided in the request URI" appeared.
Please help. (but some domain request working well)
I am also getting same error.
Try to rebuild
Same here ...I tried all but did not help
Just verified that Edge & IE lets you do cross browser requests by default while Chrome errors out. Any ideas why?
i got error the jsonp execute in browser...the error was Failed to load resource: net::ERR_CONNECTION_REFUSED.
what can i do sir please help me
I recieve same issue but while consuming wcf service via ajax in asp.net c# ....need help
Hi even after implementing jsonp in new web application project, still getting that cross domain error. Can someone suggest what I am doing wrong.
I get "The type or namespace name 'JsonpMediaTypeFormatter' could not be found (are you missing a using directive or an assembly reference?)". What is mean?
add using WebApiContrib.Formatting.Jsonp;
How do you keep the output window open and can do changes to the code in vs I mean how???
I am getting no data returned by either HtmlPage1.html or Employees.html. I get no error either. If I replace the "dataType: 'jsonp'" with "dataType: 'json'" in Employees.html I once again get data. Still nothing from HtmlPage1.html.
f the HtmlPage1.html is not giving back de information required, make sure that the jquery version in ClientApplication> Scripts>jquery-X.X.X.js corresponds to the one used in the html page, that wasn´t mentionned in the video, and may get ypu in trouble.
1) Why we are not putting "call back" in query string of html ajax request?
2) How jQuery is converting a callback response to normal object?
Many thanks
hi there my EmployeeService.html is working fine though its shows output bit late but HtmlPage1.html is not working with this error
Failed to load localhost:51323/api/employees: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:49708' is therefore not allowed access. The response had HTTP status code 500.
kindly reply fast
thanks
i only get output when i use localhost:51106/Employees.html?callback=ABC and localhost:49704/HtmlPage1.html?callback=ABC.....Sir can u tell me why so ?
thank you,expecting mvc5 & mvc6 videos
Thank u sir
awesome..!!
ThANK yOU sIR !!!!!!
Thanks for the video, I am getting a peculiar error of Http Status code 500. The detailed error is given below, I am missing something, Can you please help me. Thanks in advance.
"XMLHttpRequest cannot load localhost:53646/api/employees. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:53443' is therefore not allowed access. The response had HTTP status code 500." In IE it's showing SEC7120 and HTTP500 error.
Hi Sir,
First of all, thank you very much for these videos.
Second, JSONP did not work with me, chrome is giving >> Access to XMLHttpRequest at 'localhost:58619/api/Employees' from origin 'localhost:7889' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Please advise.
How does the Cors work in Asp.net MVC4 using jsonp or enabling Cors? Love your tutorials
When adding JsonP dll reference in my Project, i got a error message.
[HttpException (0x80004005): 'System.Net.Http.Formatting, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
AnyBody help me~~
I'm just trying this Solution.
Solution 1: It seems that some dependencies are broken. Have you tried to reinstall NuGet package?
From the package manager, run Update-Package Microsoft.AspNet.WebApi -reinstall.
From: forums.asp.net/t/2042710.aspx?Error+loading+System+Net+Http+Formatting
Thank you Sİr
JsonMediaTypeFormatter class has a parameterized constructor but it's Access Modifier is Protected not the Public, so i can't use the JsonMediaTypeFormatter(config.Formatters.JsonFormatter); in WebApiConfig.Cs class. Can Someone help me here.
Try writing "JsonpMediaTypeFormatter" instead of "JsonMediaTypeFormatter", you must install jsonp from Nuget packages.
Ok, Thank you.
but am not getting the data in the same domain what's reason behind ??? can anybody tells the reason??
Can You please add tutorials on Web Api Authentication with Tokens like Bearer Token etc...
I did exactly the same both html pages were not displaying the data
These videos are very helpful. Thank you ever so much for them. If you have a page for donation, please let me know.
Good thought Zain. I just did the same. Here is the link for donating.
www.pragimtech.com/donate_to_kudvenkat.aspx
If the HtmlPage1.html is not giving back de information required, make sure that the jquery version in ClientApplication> Scripts>jquery-X.X.X.js corresponds to the one used in the html page, that wasn´t mentionned in the video, and may get ypu in trouble.
can you make a video on upload package on S3 bucket by using web Api,and how to integrate the file upload external service
Sir if i wants to hide the URL how can i do this?
JsonpMediaTypeFormatter is prone to security breach as it sends a function which wraps the response
Thank you so much great videos.
How can i call my asp.net web api from my android app in visual studio??
Please help
First of all i cou6 like to say special thanks for this video.
Sir after adding jsonp reference filw from nuget i am getting error..
Couldn't load file or assembly System.Net.Http.Formatting Version=5.0.0.0.
Publictoket 31bf3856ad346e35.
Exception from HRESULT 0x80131040.
Please sir help me
how can you create Jsonp formatter for google api services.
please provide video on design pattern , no any video are good in youtube whatever i seen
Hi sir,
In Web api we have multiple get methods how to call specific get method.
Using ActionName or Route tag above specific Get method.
I am getting same error ....cros orgin
How to do a post then ?