Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Thursday, March 29, 2012

performance problem after porting .net 1.1 to 2.0

porting .net project to .net 2.0 cause lot of performance issues .

Server become down because of cpu usage, memory usage.

thanks

You are going to have to supply more details for anyone to be able to offer suggestions. Typically we see sites run much faster moving to 2.0.


hai

we have application which contains

1. client application

2. web application

These application use samewebservice which contains methods that returns datasets.
Dataset contains 7-8 tables (tables are merged in dataset using merge method)
Crystal reports arealso used.

In Web application ,expoted to pdf format

In Client application Crystal reports10 is used.

Aso session and view state is used .

porting .net project to .net 2.0 cause lot of performance issues .

Server become down because of cpu usage, memory usage.

thanks

Saturday, March 24, 2012

permissions creating web application

The following error seems to plague a lot of people. Who has encountered this and what solutions did you find.

"Unable to create web project <name>. The UNC share <UNC> does not exist or you do not have access.

One suggestion I have seen a few times is create the app on the local machine and then publish to the server. I want to create the app on my develoment server, not on my local machine and then publish to a production box.

I noticed a post from one of this forums "ASP.net team" users stating something along the lines of "creating a web application is a snap just go to New Project --> .net web application". I laughed big time at that. I am in my fourth day of attempting this "snap" process.It works fine, but you have to make sure you have the correct privelages.. From the error it seems you don't have write permissions maybe?
yeah it is a permissions issue. The question is permissions for who? You have my local machine with VS.net installed. I log into a domain so I am assuming that the VS application is running with that account information.

I then try to create an application on a server outside a firewall and not part of the domain. That IIS server is running the show as far as the virtual directory and web application is concerned so I assume the account is IUSR_machine.

That to me seems to be a potential source of this problem.
Check if you have permissions on the directory you are trying to write to. I believe this is just directory permissions you are dealing with here.

Wednesday, March 21, 2012

Permissions Problem?

Hello All,
I can't seem to get my project to run in debug mode. When I run the web
application it says, "Error while trying to run project: Unable to start
debugging on the web server."
Any ideas?
LandersHi:
To resolve this problem, you must restart IIS. To do this, type iisreset at
a command prompt. - MS Knowledge Base.
Hope this helps.
Thanks,
Hrishi
"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
>
Hope this helps!
http://support.microsoft.com/defaul...kb;en-us;306172
Hrishi
"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
>
Thanks for your reply.
I have already tried the iis restart, and have already reinstalled ASP and
checked that the server components were installed also. Still no joy.
Any other ideas?
Landers
"Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
> Hope this helps!
> http://support.microsoft.com/defaul...kb;en-us;306172
> Hrishi
> "Landley" wrote:
>
This issue seems to be when I am running the IDE on the local machine (the
web server), as I have just connected and debugged remotely.
Any ideas why this is?
Landers.
"Landley" <news@.creations-software.co.uk> wrote in message
news:Oy%23u1OJzEHA.2692@.TK2MSFTNGP10.phx.gbl...
> Thanks for your reply.
> I have already tried the iis restart, and have already reinstalled ASP and
> checked that the server components were installed also. Still no joy.
> Any other ideas?
> Landers
> "Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
> news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
web
start
>
Hello All,
I am having the same problem as Landers, any solutions ?
Angie
From http://www.developmentnow.com/g/8_2...elopmentnow.com
Hi, Angie.
Have you tried the solutions offered at :
http://support.microsoft.com/defaul...kb;en-us;306172
?
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Angie" <miewtee.ng@.citigroup.com> wrote in message
news:7939e9e7-b3f1-4fe5-ace2-ef403aa5c5e2@.msnews.microsoft.com...
> Hello All,
> I am having the same problem as Landers, any solutions ?
> Angie
> From http://www.developmentnow.com/g/8_2...ons-Problem.htm[/c
olor]

Permissions Problem?

Hello All,

I can't seem to get my project to run in debug mode. When I run the web
application it says, "Error while trying to run project: Unable to start
debugging on the web server."

Any ideas?

LandersHi:

To resolve this problem, you must restart IIS. To do this, type iisreset at
a command prompt. - MS Knowledge Base.

Hope this helps.

Thanks,
Hrishi

"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
Hope this helps!
http://support.microsoft.com/defaul...kb;en-us;306172

Hrishi

"Landley" wrote:

> Hello All,
> I can't seem to get my project to run in debug mode. When I run the web
> application it says, "Error while trying to run project: Unable to start
> debugging on the web server."
> Any ideas?
> Landers
>
Thanks for your reply.

I have already tried the iis restart, and have already reinstalled ASP and
checked that the server components were installed also. Still no joy.

Any other ideas?

Landers
"Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
> Hope this helps!
> http://support.microsoft.com/defaul...kb;en-us;306172
> Hrishi
> "Landley" wrote:
> > Hello All,
> > I can't seem to get my project to run in debug mode. When I run the web
> > application it says, "Error while trying to run project: Unable to start
> > debugging on the web server."
> > Any ideas?
> > Landers
This issue seems to be when I am running the IDE on the local machine (the
web server), as I have just connected and debugged remotely.

Any ideas why this is?

Landers.

"Landley" <news@.creations-software.co.uk> wrote in message
news:Oy%23u1OJzEHA.2692@.TK2MSFTNGP10.phx.gbl...
> Thanks for your reply.
> I have already tried the iis restart, and have already reinstalled ASP and
> checked that the server components were installed also. Still no joy.
> Any other ideas?
> Landers
> "Hrishi R" <HrishiR@.discussions.microsoft.com> wrote in message
> news:E7BD5245-629D-4790-B8FA-325B951DA60D@.microsoft.com...
> > Hope this helps!
> > http://support.microsoft.com/defaul...kb;en-us;306172
> > Hrishi
> > "Landley" wrote:
> > > Hello All,
> > > > I can't seem to get my project to run in debug mode. When I run the
web
> > > application it says, "Error while trying to run project: Unable to
start
> > > debugging on the web server."
> > > > Any ideas?
> > > > Landers
> > >
Hello All,

I am having the same problem as Landers, any solutions ?

Angi

From http://www.developmentnow.com/g/8_2...ions-Problem.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
Hi, Angie.

Have you tried the solutions offered at :
http://support.microsoft.com/defaul...kb;en-us;306172

?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================

"Angie" <miewtee.ng@.citigroup.com> wrote in message
news:7939e9e7-b3f1-4fe5-ace2-ef403aa5c5e2@.msnews.microsoft.com...
> Hello All,
> I am having the same problem as Landers, any solutions ?
> Angie
> From http://www.developmentnow.com/g/8_2...ons-Problem.htm

Friday, March 16, 2012

Persistent Forms Authentication - and Session Variables

Hi All!
I'm doing an ASP.NET project which uses Persistent Forms Authentication
(i.e. once user logged in, they don't have to log in again). However Session
variables are erased after Session has timed out. So I need to re-populate
user specific session variables (such as user email, DOB, Full Name...etc)
when Session has ended.
But strangely, when I tried to do something like...
Dim strArrayUserInfo(10) as String
strArrayUserInfo(0) = drDataReader("FName").ToString
strArrayUserInfo(1) = drDataReader("LName").ToString
strArrayUserInfo(2) = drDataReader("Email").ToString
Session("UserInfoArray") = strArrayUserInfo
I get System.StackOverflowException. If I comment out that line, application
runs correctly but fail at the point where Session("UserInfoArray") is
accessed (i.e. Null Exception). So I de-comment the above code and I was
thrown System.StackOverflowException again.
What could be the problem? I was merely assigning a variable to Session
variable collection. Why ASP.NET throws System.StackOverflowException'
Thank you all in advance!!!!
Max"Max" <zero@.maxdot.com.com> wrote in message
news:ukaISv57EHA.2016@.TK2MSFTNGP15.phx.gbl...
> Hi All!
> I'm doing an ASP.NET project which uses Persistent Forms Authentication
> (i.e. once user logged in, they don't have to log in again). However
> Session variables are erased after Session has timed out. So I need to
> re-populate user specific session variables (such as user email, DOB, Full
> Name...etc) when Session has ended.
> But strangely, when I tried to do something like...
> Dim strArrayUserInfo(10) as String
> strArrayUserInfo(0) = drDataReader("FName").ToString
> strArrayUserInfo(1) = drDataReader("LName").ToString
> strArrayUserInfo(2) = drDataReader("Email").ToString
> Session("UserInfoArray") = strArrayUserInfo
> I get System.StackOverflowException. If I comment out that line,
> application runs correctly but fail at the point where
> Session("UserInfoArray") is accessed (i.e. Null Exception). So I
> de-comment the above code and I was thrown System.StackOverflowException
> again.
> What could be the problem? I was merely assigning a variable to Session
> variable collection. Why ASP.NET throws System.StackOverflowException'
I bet you have something else called "Session". Change the line to refer to
HttpContext.Current.Session and see if that's any better.
John Saunders
Hi John,
Thanks for the quick response! Unfortunately, I get the same error :(
Any ideas?
Max
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:ew5r0757EHA.2016@.TK2MSFTNGP15.phx.gbl...
> "Max" <zero@.maxdot.com.com> wrote in message
> news:ukaISv57EHA.2016@.TK2MSFTNGP15.phx.gbl...
> I bet you have something else called "Session". Change the line to refer
> to HttpContext.Current.Session and see if that's any better.
> John Saunders
>
"Max" <zero@.maxdot.com.com> wrote in message
news:edEOMA67EHA.2552@.TK2MSFTNGP09.phx.gbl...
> Hi John,
> Thanks for the quick response! Unfortunately, I get the same error :(
Several ideas, none brilliant.
1) Simplify, simplify, simplify
1a) Instead of filling from the datareader, try setting the array elements
to constants. It's simpler.
1b) Try using Session("a"). It's simpler.
2) Are you setting all 10 elements of the array?
3) Turn Options Strict On.
John Saunders

> "John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
> news:ew5r0757EHA.2016@.TK2MSFTNGP15.phx.gbl...
>
Hi John,
I tried reducing the Array length to 3 and still it didn't work. This is a
mystery and a nightmare.
Max
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:uFWbK777EHA.2568@.TK2MSFTNGP10.phx.gbl...
> "Max" <zero@.maxdot.com.com> wrote in message
> news:edEOMA67EHA.2552@.TK2MSFTNGP09.phx.gbl...
> Several ideas, none brilliant.
> 1) Simplify, simplify, simplify
> 1a) Instead of filling from the datareader, try setting the array elements
> to constants. It's simpler.
> 1b) Try using Session("a"). It's simpler.
> 2) Are you setting all 10 elements of the array?
> 3) Turn Options Strict On.
> John Saunders
>
>
>
"Max" <zero@.maxdot.com.com> wrote in message
news:erNBq2U8EHA.2124@.TK2MSFTNGP14.phx.gbl...
> Hi John,
> I tried reducing the Array length to 3 and still it didn't work. This is a
> mystery and a nightmare.
Did you try using an array filled with constants? Did you try using
Session("a")? Have you turned Options Strict On?
John Saunders

> "John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
> news:uFWbK777EHA.2568@.TK2MSFTNGP10.phx.gbl...
>

Persistent Forms Authentication - and Session Variables

Hi All!

I'm doing an ASP.NET project which uses Persistent Forms Authentication
(i.e. once user logged in, they don't have to log in again). However Session
variables are erased after Session has timed out. So I need to re-populate
user specific session variables (such as user email, DOB, Full Name...etc)
when Session has ended.

But strangely, when I tried to do something like...

Dim strArrayUserInfo(10) as String

strArrayUserInfo(0) = drDataReader("FName").ToString
strArrayUserInfo(1) = drDataReader("LName").ToString
strArrayUserInfo(2) = drDataReader("Email").ToString

Session("UserInfoArray") = strArrayUserInfo

I get System.StackOverflowException. If I comment out that line, application
runs correctly but fail at the point where Session("UserInfoArray") is
accessed (i.e. Null Exception). So I de-comment the above code and I was
thrown System.StackOverflowException again.

What could be the problem? I was merely assigning a variable to Session
variable collection. Why ASP.NET throws System.StackOverflowException??

Thank you all in advance!!!!

Max"Max" <zero@.maxdot.com.com> wrote in message
news:ukaISv57EHA.2016@.TK2MSFTNGP15.phx.gbl...
> Hi All!
> I'm doing an ASP.NET project which uses Persistent Forms Authentication
> (i.e. once user logged in, they don't have to log in again). However
> Session variables are erased after Session has timed out. So I need to
> re-populate user specific session variables (such as user email, DOB, Full
> Name...etc) when Session has ended.
> But strangely, when I tried to do something like...
> Dim strArrayUserInfo(10) as String
> strArrayUserInfo(0) = drDataReader("FName").ToString
> strArrayUserInfo(1) = drDataReader("LName").ToString
> strArrayUserInfo(2) = drDataReader("Email").ToString
> Session("UserInfoArray") = strArrayUserInfo
> I get System.StackOverflowException. If I comment out that line,
> application runs correctly but fail at the point where
> Session("UserInfoArray") is accessed (i.e. Null Exception). So I
> de-comment the above code and I was thrown System.StackOverflowException
> again.
> What could be the problem? I was merely assigning a variable to Session
> variable collection. Why ASP.NET throws System.StackOverflowException??

I bet you have something else called "Session". Change the line to refer to
HttpContext.Current.Session and see if that's any better.

John Saunders
Hi John,

Thanks for the quick response! Unfortunately, I get the same error :(

Any ideas?

Max

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:ew5r0757EHA.2016@.TK2MSFTNGP15.phx.gbl...
> "Max" <zero@.maxdot.com.com> wrote in message
> news:ukaISv57EHA.2016@.TK2MSFTNGP15.phx.gbl...
>> Hi All!
>>
>> I'm doing an ASP.NET project which uses Persistent Forms Authentication
>> (i.e. once user logged in, they don't have to log in again). However
>> Session variables are erased after Session has timed out. So I need to
>> re-populate user specific session variables (such as user email, DOB,
>> Full Name...etc) when Session has ended.
>>
>> But strangely, when I tried to do something like...
>>
>> Dim strArrayUserInfo(10) as String
>>
>> strArrayUserInfo(0) = drDataReader("FName").ToString
>> strArrayUserInfo(1) = drDataReader("LName").ToString
>> strArrayUserInfo(2) = drDataReader("Email").ToString
>>
>> Session("UserInfoArray") = strArrayUserInfo
>>
>> I get System.StackOverflowException. If I comment out that line,
>> application runs correctly but fail at the point where
>> Session("UserInfoArray") is accessed (i.e. Null Exception). So I
>> de-comment the above code and I was thrown System.StackOverflowException
>> again.
>>
>> What could be the problem? I was merely assigning a variable to Session
>> variable collection. Why ASP.NET throws System.StackOverflowException??
> I bet you have something else called "Session". Change the line to refer
> to HttpContext.Current.Session and see if that's any better.
> John Saunders
"Max" <zero@.maxdot.com.com> wrote in message
news:edEOMA67EHA.2552@.TK2MSFTNGP09.phx.gbl...
> Hi John,
> Thanks for the quick response! Unfortunately, I get the same error :(

Several ideas, none brilliant.

1) Simplify, simplify, simplify
1a) Instead of filling from the datareader, try setting the array elements
to constants. It's simpler.
1b) Try using Session("a"). It's simpler.
2) Are you setting all 10 elements of the array?
3) Turn Options Strict On.

John Saunders

> "John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
> news:ew5r0757EHA.2016@.TK2MSFTNGP15.phx.gbl...
>> "Max" <zero@.maxdot.com.com> wrote in message
>> news:ukaISv57EHA.2016@.TK2MSFTNGP15.phx.gbl...
>>> Hi All!
>>>
>>> I'm doing an ASP.NET project which uses Persistent Forms Authentication
>>> (i.e. once user logged in, they don't have to log in again). However
>>> Session variables are erased after Session has timed out. So I need to
>>> re-populate user specific session variables (such as user email, DOB,
>>> Full Name...etc) when Session has ended.
>>>
>>> But strangely, when I tried to do something like...
>>>
>>> Dim strArrayUserInfo(10) as String
>>>
>>> strArrayUserInfo(0) = drDataReader("FName").ToString
>>> strArrayUserInfo(1) = drDataReader("LName").ToString
>>> strArrayUserInfo(2) = drDataReader("Email").ToString
>>>
>>> Session("UserInfoArray") = strArrayUserInfo
>>>
>>> I get System.StackOverflowException. If I comment out that line,
>>> application runs correctly but fail at the point where
>>> Session("UserInfoArray") is accessed (i.e. Null Exception). So I
>>> de-comment the above code and I was thrown System.StackOverflowException
>>> again.
>>>
>>> What could be the problem? I was merely assigning a variable to
>>> Session variable collection. Why ASP.NET throws
>>> System.StackOverflowException??
>>
>> I bet you have something else called "Session". Change the line to refer
>> to HttpContext.Current.Session and see if that's any better.
>>
>> John Saunders
>>
>>
Hi John,

I tried reducing the Array length to 3 and still it didn't work. This is a
mystery and a nightmare.

Max

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:uFWbK777EHA.2568@.TK2MSFTNGP10.phx.gbl...
> "Max" <zero@.maxdot.com.com> wrote in message
> news:edEOMA67EHA.2552@.TK2MSFTNGP09.phx.gbl...
>> Hi John,
>>
>> Thanks for the quick response! Unfortunately, I get the same error :(
> Several ideas, none brilliant.
> 1) Simplify, simplify, simplify
> 1a) Instead of filling from the datareader, try setting the array elements
> to constants. It's simpler.
> 1b) Try using Session("a"). It's simpler.
> 2) Are you setting all 10 elements of the array?
> 3) Turn Options Strict On.
> John Saunders
>
>> "John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
>> news:ew5r0757EHA.2016@.TK2MSFTNGP15.phx.gbl...
>>> "Max" <zero@.maxdot.com.com> wrote in message
>>> news:ukaISv57EHA.2016@.TK2MSFTNGP15.phx.gbl...
>>>> Hi All!
>>>>
>>>> I'm doing an ASP.NET project which uses Persistent Forms Authentication
>>>> (i.e. once user logged in, they don't have to log in again). However
>>>> Session variables are erased after Session has timed out. So I need to
>>>> re-populate user specific session variables (such as user email, DOB,
>>>> Full Name...etc) when Session has ended.
>>>>
>>>> But strangely, when I tried to do something like...
>>>>
>>>> Dim strArrayUserInfo(10) as String
>>>>
>>>> strArrayUserInfo(0) = drDataReader("FName").ToString
>>>> strArrayUserInfo(1) = drDataReader("LName").ToString
>>>> strArrayUserInfo(2) = drDataReader("Email").ToString
>>>>
>>>> Session("UserInfoArray") = strArrayUserInfo
>>>>
>>>> I get System.StackOverflowException. If I comment out that line,
>>>> application runs correctly but fail at the point where
>>>> Session("UserInfoArray") is accessed (i.e. Null Exception). So I
>>>> de-comment the above code and I was thrown
>>>> System.StackOverflowException again.
>>>>
>>>> What could be the problem? I was merely assigning a variable to
>>>> Session variable collection. Why ASP.NET throws
>>>> System.StackOverflowException??
>>>
>>> I bet you have something else called "Session". Change the line to refer
>>> to HttpContext.Current.Session and see if that's any better.
>>>
>>> John Saunders
>>>
>>>
>>
>>
"Max" <zero@.maxdot.com.com> wrote in message
news:erNBq2U8EHA.2124@.TK2MSFTNGP14.phx.gbl...
> Hi John,
> I tried reducing the Array length to 3 and still it didn't work. This is a
> mystery and a nightmare.

Did you try using an array filled with constants? Did you try using
Session("a")? Have you turned Options Strict On?

John Saunders

> "John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
> news:uFWbK777EHA.2568@.TK2MSFTNGP10.phx.gbl...
>> "Max" <zero@.maxdot.com.com> wrote in message
>> news:edEOMA67EHA.2552@.TK2MSFTNGP09.phx.gbl...
>>> Hi John,
>>>
>>> Thanks for the quick response! Unfortunately, I get the same error :(
>>
>> Several ideas, none brilliant.
>>
>> 1) Simplify, simplify, simplify
>> 1a) Instead of filling from the datareader, try setting the array
>> elements to constants. It's simpler.
>> 1b) Try using Session("a"). It's simpler.
>> 2) Are you setting all 10 elements of the array?
>> 3) Turn Options Strict On.
>>
>> John Saunders
>>
>>
>>
>>> "John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
>>> news:ew5r0757EHA.2016@.TK2MSFTNGP15.phx.gbl...
>>>> "Max" <zero@.maxdot.com.com> wrote in message
>>>> news:ukaISv57EHA.2016@.TK2MSFTNGP15.phx.gbl...
>>>>> Hi All!
>>>>>
>>>>> I'm doing an ASP.NET project which uses Persistent Forms
>>>>> Authentication (i.e. once user logged in, they don't have to log in
>>>>> again). However Session variables are erased after Session has timed
>>>>> out. So I need to re-populate user specific session variables (such as
>>>>> user email, DOB, Full Name...etc) when Session has ended.
>>>>>
>>>>> But strangely, when I tried to do something like...
>>>>>
>>>>> Dim strArrayUserInfo(10) as String
>>>>>
>>>>> strArrayUserInfo(0) = drDataReader("FName").ToString
>>>>> strArrayUserInfo(1) = drDataReader("LName").ToString
>>>>> strArrayUserInfo(2) = drDataReader("Email").ToString
>>>>>
>>>>> Session("UserInfoArray") = strArrayUserInfo
>>>>>
>>>>> I get System.StackOverflowException. If I comment out that line,
>>>>> application runs correctly but fail at the point where
>>>>> Session("UserInfoArray") is accessed (i.e. Null Exception). So I
>>>>> de-comment the above code and I was thrown
>>>>> System.StackOverflowException again.
>>>>>
>>>>> What could be the problem? I was merely assigning a variable to
>>>>> Session variable collection. Why ASP.NET throws
>>>>> System.StackOverflowException??
>>>>
>>>> I bet you have something else called "Session". Change the line to
>>>> refer to HttpContext.Current.Session and see if that's any better.
>>>>
>>>> John Saunders
>>>>
>>>>
>>>
>>>
>>
>>