Book a Demo

Author Topic: ASP.NET and EA API  (Read 2849 times)

hshahid

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
ASP.NET and EA API
« on: September 28, 2010, 10:29:05 pm »
I am successfully able to connect with my EA project and able to get the digrams related information in ASP.NET but can you please guide me about following things, as I am just a beginner with EA-API.

1. If I start my EA project before execting my ASP.NET code, I get an exception and I am not able to connect to the .eap file. I am using following code in my session start event of ASP Appliction.

       EA.Repository m_Repository = null;
       String filePath = "c:\\first.eap";
       if (m_Repository == null)
       {
           m_Repository = new EA.RepositoryClass();
           m_Repository.OpenFile(filePath);

       }
       Application["m_Repository"] = m_Repository;


2. I want that I can run both EA and my ASP.NET application in parrallel to see that changes on runtime in both.

3. If there are any sample codes or any generic module which you can share for creating sample diagrams in ASP.NET using the EA API, please share.

Waiting for your reply...
thanks.

regards,
Hamid.