Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Configuring SharpDevelop to launch UWS Interactive Server for debugging
BrandiniMP
#1 Posted : Thursday, June 13, 2013 6:37:41 AM(UTC)
Groups: Member
Joined: 6/13/2013(UTC)
Posts: 7
Location: London, England

Was thanked: 1 time(s) in 1 post(s)
Hi guys,

So, I've been trying to get this working with SharpDevelop.

Now if I attach to the Interactive Server process manually, it works just fine for debugging my ASP.NET 4 application, however when I try to replicate the Visual Studio debugging options, I am always greeted with:

http://i.snag.gy/OghEw.jpg

Now, I appreciate I've not filled out the Command Line arguments, but I have tried various combinations of arguments, and I've had no problems running this directly from the command line.

I just doesn't seem to work with the SharpDevelop "Run external program" feature.

Any ideas?


*EDIT*
And just to be clear, that message is definitely coming from UWS.InteractiveServer.Clr4AnyCPU.exe
Ultidev Team
#2 Posted : Thursday, June 13, 2013 11:31:04 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

UWS is complaining here that path to application's folder has not been specified. You would have to specify /path command line argument and a few others, as described here, in SharpDevelop's "Command Line Arguments" line.

Please let us know if this information has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
BrandiniMP
#3 Posted : Thursday, June 13, 2013 12:34:30 PM(UTC)
Groups: Member
Joined: 6/13/2013(UTC)
Posts: 7
Location: London, England

Was thanked: 1 time(s) in 1 post(s)
BrandiniMP;4471 wrote:
Now, I appreciate I've not filled out the Command Line arguments, but I have tried various combinations of arguments


I was referring to the screenshot, like I said, I've managed to run the application directly from the Run dialog, however the exact same arguments don't work from SharpDevelop.

I even used Process Explorer to confirm that I'd input the same command lines to SharpDevelop as I had the Run dialog.

The only difference between the 2 are that when running from SharpDevelop, the parent process is SharpDevelop.exe (obviously).

It seems to be something about running UWS.InteractiveServer.Clr4AnyCPU.exe (or any of them for that matter), whilst attaching the debugger to it from SharpDevelop.
BrandiniMP
#4 Posted : Thursday, June 13, 2013 1:31:23 PM(UTC)
Groups: Member
Joined: 6/13/2013(UTC)
Posts: 7
Location: London, England

Was thanked: 1 time(s) in 1 post(s)
To prove the point:

Run from SharpDevelop:
http://i.snag.gy/CDsbL.jpg

Run from Windows Run Dialog:
http://i.snag.gy/5YxUp.jpg


And I tried setting the command line arguments in SharpDevelop to:
"C:\Program Files\UltiDev\Web Server\UWS.InteractiveServer.Clr4AnyCPU.exe" "/path=C:\Users\Brandon\Documents\SharpDevelop Projects\Test1\Test1" /port=8001

Does the same thing.
1 user thanked BrandiniMP for this useful post.
Ultidev Team on 6/18/2013(UTC)
Ultidev Team
#5 Posted : Thursday, June 13, 2013 3:11:44 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hm... What would happen if you ran the full command line from command line prompt instead of SharpDevelop? Do you get the same error?

To see an example of a correct command line parameters, you may right-click on the folder with your web app and select "Run as XXX web app" - that will launch UWS Interactive Server, and then process viewer can be used to get command line parameters.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#6 Posted : Friday, June 14, 2013 3:06:41 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Like I said, running the same command line arguments from the Run Dialog (and CMD) work fine, with just the PATH parameter.
It is only from SharpDevelop that I have issues.

Even without the arguments in SharpDevelop, technically the server GUI should run without any config, like it does from CMD/RUN.
BrandiniMP
#7 Posted : Friday, June 14, 2013 3:08:40 AM(UTC)
Groups: Member
Joined: 6/13/2013(UTC)
Posts: 7
Location: London, England

Was thanked: 1 time(s) in 1 post(s)
Guest;4478 wrote:
Like I said, running the same command line arguments from the Run Dialog (and CMD) work fine, with just the PATH parameter.
It is only from SharpDevelop that I have issues.

Even without the arguments in SharpDevelop, technically the server GUI should run without any config, like it does from CMD/RUN.


My bad, I forgot to login >.<
Ultidev Team
#8 Posted : Friday, June 14, 2013 10:58:26 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

We have downloaded SharpDevelop and tried to reproduce the problem with a simple project. We were not able to start Debug/F5 due to "64-bit debugging is not supported" error in 64-bit mode and "/platform:anycpu32bitpreferred is not a valid setting for option /target:library or /target:module (CS4023)" error in 32-bit mode. However, running without attaching debugger worked fine - please see attached screenshot. Since we are not fluent with SharpDevelop, we'll appreciate guidance on how to work around problems we mentioned to start debugging so we could reproduce the problem at hand.

Best regards,
UltiDev Team.
Ultidev Team attached the following image(s):
Ultidev Team attached the following image(s): UWS Interactive Server with SharpDevelop.png
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
BrandiniMP
#9 Posted : Saturday, June 15, 2013 7:10:59 AM(UTC)
Groups: Member
Joined: 6/13/2013(UTC)
Posts: 7
Location: London, England

Was thanked: 1 time(s) in 1 post(s)
First thing to note is that I'm on 32bit Windows.
Secondly, I too am able to attach the debugger to the Interactive Server process with no issues.

That said, have you tried: Project->Project Options->Compiling->Target CPU = 32-bit Intel

You may also have to explicitly run the Interactive Server in 32bit mode.
Ultidev Team
#10 Posted : Sunday, June 16, 2013 1:28:06 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

We were able to reproduce the problem exactly with 32-bit UWS Interactive Server. As it turns out, SharpDevelop debugger launches our process in such a way, that our process was not able to determine its own file system path, which lead to an exception.

We have implemented a fix and emailed you a pre-release of build 20.

Please let us know if this has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
BrandiniMP
#11 Posted : Sunday, June 16, 2013 2:16:24 PM(UTC)
Groups: Member
Joined: 6/13/2013(UTC)
Posts: 7
Location: London, England

Was thanked: 1 time(s) in 1 post(s)
Just tested it, it's working fine now, good job.
Thanks for fixing that.
Ultidev Team
#12 Posted : Sunday, June 16, 2013 10:02:14 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Thank you for helping us get to the core of the issue.

UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
BrandiniMP
#13 Posted : Tuesday, June 18, 2013 8:24:12 AM(UTC)
Groups: Member
Joined: 6/13/2013(UTC)
Posts: 7
Location: London, England

Was thanked: 1 time(s) in 1 post(s)
Hi guys,

Just wanted to confirm that your fix also resolves the issue on Windows 7 x64 (when using SharpDevelop to compile in x86 mode).

Thanks again.
Ultidev Team
#14 Posted : Tuesday, June 18, 2013 8:41:44 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Great, thank you for sharing!

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
rmembrives
#15 Posted : Thursday, August 1, 2013 9:05:57 AM(UTC)
Groups: Member
Joined: 8/1/2013(UTC)
Posts: 2
Location: Seville

Hi Ultidev Team.

I have the same problem with the version 19. Could you send me a copy of the pre-release of build 20?

Thanks in advance.

Rafael Membrives
Ultidev Team
#16 Posted : Thursday, August 1, 2013 9:20:14 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi,

Link to UWS 20 Pre-release was emailed to your forum email address.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
rmembrives
#17 Posted : Thursday, August 1, 2013 11:38:13 AM(UTC)
Groups: Member
Joined: 8/1/2013(UTC)
Posts: 2
Location: Seville

Its works properly.

Thank you very much.
Ultidev Team
#18 Posted : Thursday, August 1, 2013 1:09:21 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
No problem, we are happy it helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#19 Posted : Tuesday, March 8, 2016 2:17:17 AM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Guest
#20 Posted : Wednesday, February 28, 2018 9:22:28 PM(UTC)
Groups:
Joined: 11/1/2005(UTC)
Posts: 278

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest (7)
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.