[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

HELP! Web Services Permissions/Security Settings problem

Usman Shami

7/14/2003 1:16:00 PM

Hie,

I have developed some codes both in C# and VB using CDO
and ADO,which work perfectly fine in a windows
application, but they donot seem to work in a web services
application.
I am using the .NET platform with win 2k server and
exchange 2k server, with service pack 2.

The small code part is as follows(which works okay in a
windows application but not in a ASP NET web service web
method. Is it that my machine security/settings policies
need to be changed??? );

ADODB.Connection EmailCon=new ADODB.Connection();
EmailCon.Provider ="ExOLEDB.Datasource";
ADODB.Record EmailRec=new ADODB.RecordClass();
ADODB.Recordset EmailRs=new ADODB.RecordsetClass ();
string strInboxQuery,strURLInbox, strURLMailbox,
strUserName,strPassword;
ADODB.Fields Flds;
ADODB.Field Fld;
strUserName="admin";
strPassword="adminpass";
strURLMailbox="file://./backofficestorage/mytestdomain.com/
MBX/" + strUserName;
/*THROWS EXCEPTION HERE IN ASP .NET WEBSERVICES APPLICATION
/*EXCEPTION IS "Authentication Failed" while the same code
works for a forms(windows application)*/

EmailCon.Open(strURLMailbox,strUserName,strPassword,0);

EmailRec.Open( strURLMailbox,EmailCon ,
ADODB.ConnectModeEnum.adModeReadWrite,
ADODB.RecordCreateOptionsEnum.adFailIfNotExists,
ADODB.RecordOpenOptionsEnum.adOpenSource, strUserName,
strPassword);

strURLInbox = EmailRec.Fields
["urn:schemas:httpmail:inbox"]. Value. ToString () ;






4 Answers

Slackjaw

7/25/2011 2:13:00 AM

0

On Jul 24, 4:10 pm, ColdWarDinosaur <wynnehen...@yahoo.co.uk> wrote:
> Salty Stan wrote:
> > On Jul 24, 7:21 am, ColdWarDinosaur <wynnehen...@yahoo.co.uk> wrote:
> >> treadleson wrote:
> >>> On Jul 23, 2:58 pm, First Post <Progressives...@Invalid.org> wrote:
-
>
> > My opinion is let's give this voucher system a chance - if a private
> > school can educate a child cheaper and better than a public school,
> > then it sounds like a plausible alternative.
>
> You know how fast the voucher system would be abused? You'd have
> rightwing and leftwing extremist schools, gay schools, polygamy
> schools,

"polygamy schools"?

> "Christian" schools all taking the money and returning zero
> in exchange except for kids who need counseling later.
>

And you would know this - how? Can you name any private school now
that fits any of those classifications?
>
>
> > Would it hurt to give them a chance to prove themselves? Right now, I
> > don't see any better alternative.
>
> I do. Standard nationwide scoring and testing of pupils and standard
> testing of the teachers with educational requirements.

I think they've tried that before - remember "no child left behind"?

No luck - our educational system is still failing.

>
> Still no need to run America off a cliff on educational grounds.
>
> --
> ~~
> HW

Slackjaw

7/25/2011 2:30:00 AM

0

On Jul 24, 4:10 pm, ColdWarDinosaur <wynnehen...@yahoo.co.uk> wrote:
> Salty Stan wrote:
> > On Jul 24, 7:21 am, ColdWarDinosaur <wynnehen...@yahoo.co.uk> wrote:
> >> treadleson wrote:
> >>> On Jul 23, 2:58 pm, First Post <Progressives...@Invalid.org> wrote:
> >>> ---
> >>>> Here the city has poored millions into the public school system and
> >>>> all we have to show for it are a bunch of really fancy schools with
> >>>> some having $10,000 a piece light fixtures and quarter million dollar
> >>>> entrances that still have among the lowest test scores in the state.
> >>>> But then it's not really surprising that someone of your persuassion
> >>>> believes that throwing cash at anything is an instant cure all.
> >>> A brilliant post. This concisely tells a story we all know. It tells
> >>> of the racket that government has become while it pretends to be
> >>> noble.
> >> While I would agree that the education system is a major problem, do
> >> you think that is sufficient justification for taking America off a
> >> cliff? The education system can be fixed by passing legislation that
> >> curbs the out of control teachers union and provides for nationwide
> >> standard scoring systems on all subjects with mandatory teacher
> >> performance monitoring as well.
>
> > Sounds reasonable, but the politicians have been promising to "fix"
> > the education system for over thirty years now, with nothing to show
> > for it.
>
> > My opinion is let's give this voucher system a chance - if a private
> > school can educate a child cheaper and better than a public school,
> > then it sounds like a plausible alternative.
>
> You know how fast the voucher system would be abused? You'd have
> rightwing and leftwing extremist schools, gay schools, polygamy
> schools, "Christian" schools all taking the money and returning zero
> in exchange except for kids who need counseling later.
>
>
>
> > Would it hurt to give them a chance to prove themselves? Right now, I
> > don't see any better alternative.
>
> I do. Standard nationwide scoring and testing of pupils and standard
> testing of the teachers with educational requirements.
>
> Still no need to run America off a cliff on educational grounds.
>
> --
> ~~
> HW

In 1993, Sweden introduced a system of school choice and vouchers,
inspired by the ideas of American economists Milton and Rose Friedman.
Even though the system was just as controversial then as any U.S.
voucher proposal, the right to chose your school and bring the funding
with you is today considered a natural right for families and is
widely accepted by all political parties.

Even Sweden’s Social Democratic Party supports the system and recently
closed an internal debate on for-profit schools by deciding that there
is no virtue in running schools at a loss: schools should be judged on
their academic performance, not financial.

....
As a former Swedish State Secretary of Schools, involved in developing
the reform in the 1990s, I often get comments from American friends:
“You’re supposed to be the socialists, not us,” they say and ask, “How
is it that Sweden, with its egalitarian tradition, has one of the most
radical systems for market-driven choice in the world?”

Maybe that is the answer. With our egalitarian tradition, we can’t
accept that the right to choose the best school for your child should
be reserved just for those who have the means to pay for it.

Read more: http://dailycaller.com/2011/01/23/swedens-school-voucher-system-is-a-model-for-america/#ixz...


Read more: http://dailycaller.com/2011/01/23/swedens-school-voucher-system-is-a-model-for-america/#ixz...

ColdWarDinosaur

7/25/2011 10:58:00 AM

0

Ray Fischer wrote:
> ColdWarDinosaur <wynnehenry!@yahoo.co.uk> wrote:
>> Ray Fischer wrote:
>>> ColdWarDinosaur <wynnehenry!@yahoo.co.uk> wrote:
>>>> Salty Stan wrote:
>>>>> Would it hurt to give them a chance to prove themselves? Right now, I
>>>>> don't see any better alternative.
>>>> I do. Standard nationwide scoring and testing of pupils and standard
>>>> testing of the teachers with educational requirements.
>>> How do you test teachers?
>> What? By their student pass and failure rate and how well or badly
>> those students pass or fail.
>
> You're going to fire a lot of teachers in the poor school districts.
> One every year because you ignore the fact that poverty and parents
> are big determiners of student performance.

The system is screwed. In Norway, poor kids get sent to the best
schools as part of their social uplift programs.

>
> And you're going to have to plan on doubling or tripling the pay of
> many teachers. Right now most people trained in science and math and
> engineering can get much better pay in industry.

Plenty of people with Masters degree who are unemployed right now and
plenty more with Bachelors. Get those with 10th grade out of the
education system except as students themselves.
>
>>> How do you test students?
>> By their ability to comprehend by passing standardized written
>> examinations using their own words, subject matter knowledge,
>> mathematical calculations, deductions and analytical ability.
>
> Who decides the standards? Who decides what's important?

A Board of Education. Run by Phds and educators not politicians.
It's not complicated.



--
~~
HW

ColdWarDinosaur

7/25/2011 11:00:00 AM

0

Salty Stan wrote:
> On Jul 24, 4:10 pm, ColdWarDinosaur <wynnehen...@yahoo.co.uk> wrote:
>> Salty Stan wrote:
>>> On Jul 24, 7:21 am, ColdWarDinosaur <wynnehen...@yahoo.co.uk> wrote:
>>>> treadleson wrote:
>>>>> On Jul 23, 2:58 pm, First Post <Progressives...@Invalid.org> wrote:
> -
>>> My opinion is let's give this voucher system a chance - if a private
>>> school can educate a child cheaper and better than a public school,
>>> then it sounds like a plausible alternative.
>> You know how fast the voucher system would be abused? You'd have
>> rightwing and leftwing extremist schools, gay schools, polygamy
>> schools,
>
> "polygamy schools"?

Sure - fundamentalist schools that are run based on their religion and
accredited to take vouchers.
>
>> "Christian" schools all taking the money and returning zero
>> in exchange except for kids who need counseling later.
>>
>
> And you would know this - how? Can you name any private school now
> that fits any of those classifications?

If they don't exist now, they will the moment a voucher system is enabled.
>>
>>> Would it hurt to give them a chance to prove themselves? Right now, I
>>> don't see any better alternative.
>> I do. Standard nationwide scoring and testing of pupils and standard
>> testing of the teachers with educational requirements.
>
> I think they've tried that before - remember "no child left behind"?

It was rubbish too.

>
> No luck - our educational system is still failing.

Agree.
>
>> Still no need to run America off a cliff on educational grounds.


--
~~
HW