HighTechTalks DotNet Forums  

Performance issue after conversion to 2.0

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Performance issue after conversion to 2.0 in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
KVin
 
Posts: n/a

Default Performance issue after conversion to 2.0 - 10-05-2007 , 10:56 AM






My app(winforms) runs from a network share and refers to quite a few config
files on the network.

I've two versions of the app., one running under 1.1 framework, and the
other under 2.0(2.0 version is the one converted from 1.1 through vs2005).
I've a codegroup/s created for the purpose(for each framework version) and
given 'full-trust' to the requisite url.

Under 1.1 instance, the app has good performance, while under 2.0 it's
pretty bad. I found that under 2.0, the 'security stack walk depth' was
averaging 27, while in 1.1 it was none. For testing purposes, I copied over
the config files on to my local machine and pointed the app to my local
config files and stack walk depth disappeared and performance was almost
equal to 1.1 instance.

What is really happening here? I have to have config files on the network.
What am I missing?



Reply With Quote
  #2  
Old   
Chris Mullins [MVP - C#]
 
Posts: n/a

Default Re: Performance issue after conversion to 2.0 - 10-05-2007 , 11:44 AM






"KVin" <KVin (AT) discussions (DOT) microsoft.com> wrote
Quote:
My app(winforms) runs from a network share and refers to quite a few
config
files on the network.

What is really happening here? I have to have config files on the network.
What am I missing?
It's becoming clear to me now! I don't remember you mentinoning in your
previous posts that your config files are on the network.

By default, having network config files is going to change the Evidence
prodided to .Net, and cause your code to run in a different Trust Zone.

Don Box has a good overview of this here:
http://msdn.microsoft.com/msdnmag/is...t/default.aspx

Essentially you're going to add your remote locations to the "Full Trust"
zone using the .Net Configuration Wizard.

To do that, follow the "To Adjust Zone Security" instructions here:
http://msdn2.microsoft.com/en-us/lib...hc(VS.80).aspx

(With all that said, I haven't touched this stuff in 2 or 3 years, and my
memory may be a bit hazy...)

--
Chris Mullins




Reply With Quote
  #3  
Old   
KVin
 
Posts: n/a

Default Re: Performance issue after conversion to 2.0 - 10-05-2007 , 01:46 PM



Thanks Chris.

I've already given the location(url) full trust. Still I am facing this
issue. This is
what I've done:

path - \\someServer\someFolder, under which I have 2 folders
- config : containing the config files
- apps : containing various versions of the app

Thro' the configwizard(1.1 as well as 2.0), I created a codegroup and gave
full trust to the url (Under Machine\CodeGroups\ AllCode):
file://someServer/someFolder/*

Did I miss something in here? How come 1.1 does not complain?



Reply With Quote
  #4  
Old   
Alvin Bruney [MVP]
 
Posts: n/a

Default Re: Performance issue after conversion to 2.0 - 10-05-2007 , 09:21 PM



Run the application local and see if you have a performance issue. then run
local with a shared config file see what's up. One of those should point you
in the right direction.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless Author Plug
OWC Black Book 2nd Edition
Exclusively on www.lulu.com/owc
$24.99


"Chris Mullins [MVP - C#]" <cmullins (AT) yahoo (DOT) com> wrote

Quote:
"KVin" <KVin (AT) discussions (DOT) microsoft.com> wrote
My app(winforms) runs from a network share and refers to quite a few
config
files on the network.

What is really happening here? I have to have config files on the
network.
What am I missing?

It's becoming clear to me now! I don't remember you mentinoning in your
previous posts that your config files are on the network.

By default, having network config files is going to change the Evidence
prodided to .Net, and cause your code to run in a different Trust Zone.

Don Box has a good overview of this here:
http://msdn.microsoft.com/msdnmag/is...t/default.aspx

Essentially you're going to add your remote locations to the "Full Trust"
zone using the .Net Configuration Wizard.

To do that, follow the "To Adjust Zone Security" instructions here:
http://msdn2.microsoft.com/en-us/lib...hc(VS.80).aspx

(With all that said, I haven't touched this stuff in 2 or 3 years, and my
memory may be a bit hazy...)

--
Chris Mullins




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.