none
Iron Python RRS feed

  • Question

  • Hi everyone,

    I have created two projects one for asp.net web api 2 and another for Python. Now i have to call python file from my asp.net controller. As they are in two different projects i need to add reference. I am not able to do so. Can anyone guide me as to how to add reference to python project from Asp.net project in visual studio 2015. Thanks in advance.

    Aaqib Farooq Sofi.

    Monday, November 13, 2017 10:11 AM

All replies

  • Hi,

    Thank you for posting here.

    >> Now i have to call python file from my asp.net controller.

    According to your description, you want to call python file from asp.net project. It would be better to use IronPython.

    Best Regards,

    Wendy

    Note: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. 
    Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. 

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, November 15, 2017 7:27 AM
    Moderator
  • Hi Wendy,

    Thanks for taking the time to reply. Still my problem isn't resolved. Can you help me regarding the issue that i have discussed. If there is any possibility that you can help with the issue it would be highly appreciated. I am aware of the risk still can you let me know if anyone can provide help or support for my problem.

    Thanks

    Aaqib

    Thursday, November 16, 2017 4:27 AM
  • Hi Aaqib Farooq,

    Thank you for feedback.

    For your question, maybe the following link which shows how to call Pathon using c# would be helpful.

    https://stackoverflow.com/questions/11779143/how-do-i-run-a-python-script-from-c

    https://stackoverflow.com/questions/35462175/call-python-function-from-c-sharp-net

    If you want to call in asp.net, you could post a new thread in asp.net forum.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 21, 2017 10:18 AM
    Moderator