Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Can't 'Generate'

$
0
0
Re: Can't 'Generate'
Web Service Proxy Generator
Re: Can't 'Generate'
Nov. 22, 2012
03:37 pm
3NF0XHEIKShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Russell

Yes, it's permissions that are your problem. The registration doesn't work because you're not an administrator - it's timing out and failing for that but that's not required to make the service work - that's only a convenience feature.

On Windows Vista, 7 and 8 you'd get a dialog that would prompt you to elevate permissions. On XP that doesn't exist, so it just fails unfortunately.

As I said I'm not sure why that would have worked before unless your security environment (or machine) has changed. If permissions to write are missing you're dead in the water.

Maybe in a future release I'll change the output folders to the Documents folder so then it will always work. The recent addition of the UAC elevation prompt should eliminate the issue for most people however.

+++ Rick ---


Thanks Rick.

I don't know how it worked before but it did.

I've installed it into My Documents as you suggested and it works from there.

It's slightly different in that I now get ...

"Hang on. Trying to register <thisProxy>.dll ...
This may take a few seconds..."

... and it takes between 15 and 20 seconds before the "Proxy Generation Complete" pop-up appears but, hey, if it works that's fine.

I haven't got time to test an actual web service today but I'm assuming it'll be ok now.

Thanks a lot for your help.

Regards,

Russell.

If your computer is locked down and you're not running as a full admin account you don't have read/write access in the 'generated' folder - so while the generator works it's unable to create the required output files in that folder.

So this is a requirement. As far as I know that should never have worked unless you did have permissions. You can assign full access rights to the Proxy Generator folder to your user account and htat should also do it, but you'll need admin permissions for that as well I think.

Another option - you can install the application into your My Documents folder (where you do have permissions to read/write) instead of the default folder in Program Files and that might make it work.

Welcome to Windows security :-(

+++ Rick ---


Hi Rick,

I can't get this to work. I've sent you a screen dump including the EXE/DLL/PRG files I have, the error message etc.

This is not very convenient but if I "Generate" stuff on the single PC I can get this to work on, can I then copy all the required files (which ones and where?) to another PC and have it work?

Regards,

Russell.


Russell,

In addition to the comments from the last message, you might also download the latest version. I just updated the files, and I think the auto-elevation to administer requirements previously weren't in the shipping version.

Probably safest bet to re-download.

And I double checked that everything against your service and it works fine (but then it worked fine for me before as well <shrug>). I'm able to generate the Weather service and retrieve content from it.

+++ Rick ---



Hi all,

For some reason, all of a sudden, I can't get "Generate" to work.

The "Resolve" part is picking up the WSDL ok but on "Generate" I am getting various (well, two so far) errors.

For example, when trying to "Generate" for "http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL" I get:

"OLE IDispatch exception code 0 from mscorlib: Could not find file 'c:\program files\west wind web service proxy generator for visual foxpro\generated\weatherproxy.cs' ..."

On the Web Store Service I get an error begininng with:

"Service Generation Failed"
"Compilation Error: c:\Program Files\West Wind Web Service Proxy Generator for Visual FoxPro\Generated\WebStoreServiceProxy.cs(25,1): error CS1529: A using clause must precede all other namespace elements except extern alias declarations"

The "Compilation Error" part is repeated for (26,1), (27,1) and (28,1) and the final error line is:

"c:\Program Files\West Wind Web Service Proxy Generator for Visual FoxPro\Generated\WebStoreServic"

I've tried this now on 3 PCs - it fails on two of them and works on another.

Can anyone help me with this please?

For future reference, is there any way to upload screen dumps of errors to this Message Board?

Thanks,

Russell.










Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles