Book a Demo

Author Topic: IIS / SharePoint - Attach to process  (Read 5359 times)

foldedwave

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
IIS / SharePoint - Attach to process
« on: December 19, 2012, 01:30:23 am »
Hi All,

I'm having trouble attaching to the iis worker process with enterprise architect 10 (I haven't tried with older versions).

I have followed the steps on the web site and instructions as much as is possible but the ui has changed significantly since then.

I have deployed a web service onto iis (i'm actually writing a sharepoint service but I don't think that makes any difference as it is still IIS hosted). I have imported the code into an empty ea model and used ea to put a breakpoint into the code. I then set up an execution analyser script (which I linked to the top level 'Class Model' package) and set debug->platform to "Microsoft .NET" and "Attach to process".

When I right click on the script and select debug, I get the error "Failed to load Common Language Runtime" and the debug window shows "Failed to get CLR version for process xxxx".

I have read that you can create a name.exe.config file but this seems wrong for the w3wp process as it is started once for each iis worker - I only want to effect the process which is running my web application. In the screen shots of the older ui it looks as though you can specify the .NET version when setting up the script but I cannot see that option on version 10.

Any ideas?

Thanks,

Dave

Robert Sheridan

  • EA User
  • **
  • Posts: 105
  • Karma: +0/-0
    • View Profile
Re: IIS / SharePoint - Attach to process
« Reply #1 on: December 19, 2012, 01:34:13 am »
There are some past threads on integrating with Sharepoint.  If I remember correctly the essence of them was that it wont work!

foldedwave

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: IIS / SharePoint - Attach to process
« Reply #2 on: December 19, 2012, 01:46:57 am »
Ok, that's not really the issue though. The real issue is getting ea to attach to a w3wp process. Any ideas for what I need to do to get that side of things working?

If you have links to the topics can you also post them as I get nothing from the forum seach (except this topic!).

Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: IIS / SharePoint - Attach to process
« Reply #3 on: December 19, 2012, 05:49:04 pm »
Just a wild thought, have you tried running EA as administrator?
I know I couldn't debug w3wp with Visual Studio or SharpDevelop when I ran these as a regular user.

Geert

foldedwave

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: IIS / SharePoint - Attach to process
« Reply #4 on: December 19, 2012, 09:43:05 pm »
Geert, thanks for the suggestion but unfortunately that doesn't seem to have helped. I have also tried running ea with the w3wp user credentials but that did not work either.

Out of interest, which os and iis versions were you using when you managed to connect? What error did you get when you ran as a non-admin user?
« Last Edit: December 19, 2012, 09:44:45 pm by foldedwave »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: IIS / SharePoint - Attach to process
« Reply #5 on: December 19, 2012, 10:32:44 pm »
Windows 7, but I don't know which IIS version.

I've never tried to connect with EA, but when trying to attach in VS it says that I don't have the required credentials or something like that.

Geert

foldedwave

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: IIS / SharePoint - Attach to process
« Reply #6 on: December 19, 2012, 11:25:55 pm »
Sorry, if I had read your post properly I would have realised you were talking about visual studio not ea.

Has anyone successfully attached ea to a iis 7.5 w3wp process?