Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2006

Tip: Looking for answers? Try searching our database.

Programmatically Set TimeToleranceInSeconds

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Drew Lettington - 17 Oct 2006 00:03 GMT
I'm looking for a way to set TimeToleranceInSeconds programmatically in C#,
rather than have its value read from the client app.conf file.  Since my
assembly is an Office add-in, users may not have access to the Office
installation directory, nor will they have the expertice to modify
excel.exe.config.

So, what I want to do is provide them a UI to specify a value and then
programmatically set it.  Is this possible?

- Drew
Pablo Cibraro [MVP] - 17 Oct 2006 15:51 GMT
Hi Drew,

I was looking the WSE code with Reflector, and unfortunately, it always read
the Time tolerance value from the configuration file. (The property is also
read-only so you can not change it).
Perhaps, you can write that configuration setting by code using the
configuration API (only the first time), so the users do not need to touch
anything in that file.

Regards.
Pablo Cibraro.

> I'm looking for a way to set TimeToleranceInSeconds programmatically in
> C#,
[quoted text clipped - 7 lines]
>
> - Drew
Drew Lettington - 17 Oct 2006 16:29 GMT
Thanks for the reply.  I have had success in the past setting read-only
properties via reflection.  Can you tell me the name of the WSE property so I
can try setting it?

- Drew

> Hi Drew,
>
[quoted text clipped - 19 lines]
> >
> > - Drew
Pablo Cibraro [MVP] - 18 Oct 2006 15:31 GMT
Yes, sure.
It is
Microsoft.Web.Services3.Configuration.SecurityConfiguration.TimeToleranceInSeconds

Regards,
Pablo Cibraro.

> Thanks for the reply.  I have had success in the past setting read-only
> properties via reflection.  Can you tell me the name of the WSE property
[quoted text clipped - 30 lines]
>> >
>> > - Drew
Drew Lettington - 18 Oct 2006 16:02 GMT
Thanks.  I guess the property isn't available in WSE 2.0.

- Drew

> Yes, sure.
> It is
[quoted text clipped - 37 lines]
> >> >
> >> > - Drew
vijwm@hotmail.com - 28 Nov 2006 12:11 GMT
Hi Drew,

We are experiencing the same problem. Have you got any solution on how
to change the TimeToleranceInSeconds property programmatically?

/Janne

> Thanks for the reply.  I have had success in the past setting read-only
> properties via reflection.  Can you tell me the name of the WSE property so I
[quoted text clipped - 25 lines]
> > >
> > > - Drew
Drew Lettington - 28 Nov 2006 14:38 GMT
Unfortunately, no.  Our users aren't too happy since changing the tollerance
means they have to modify a configuration file on each client machine as well
as the server.

- Drew

> Hi Drew,
>
[quoted text clipped - 32 lines]
> > > >
> > > > - Drew

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.