473,807 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Precompile problem...

Jay
2.0 asp.net app (precomiled in 2005, not updateable, dll's in bin and
then merged to one dll)...

web app calls a 1.1 (compiled in 2003) webservice initialization
webmethod (works). Second call to a different webmethod (does NOT work.
The second webmethod uses session state (to re-connect individuals
session back together) and crashes...

Hypotheses include: can't use precompiled app in 2005 to call 1.1/2003
websevice that uses state. Jumping across thread pools and state not
possible?

Having trouble attaching to debug into the webservice webmethod.
Stumped. Any ideas/knowledge on what's going on?

Jun 23 '06 #1
4 1786
if the web service uses cookies to identify session, then you have copy the
session cookie returned from the first request and send to the second.

-- bruce (sqlwork.com)
"Jay" <Ja*********@gm ail.com> wrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
2.0 asp.net app (precomiled in 2005, not updateable, dll's in bin and
then merged to one dll)...

web app calls a 1.1 (compiled in 2003) webservice initialization
webmethod (works). Second call to a different webmethod (does NOT work.
The second webmethod uses session state (to re-connect individuals
session back together) and crashes...

Hypotheses include: can't use precompiled app in 2005 to call 1.1/2003
websevice that uses state. Jumping across thread pools and state not
possible?

Having trouble attaching to debug into the webservice webmethod.
Stumped. Any ideas/knowledge on what's going on?

Jun 23 '06 #2
Jay
I think I do that...

I found something VERY very interesting...I went to the web.config of
the main application that calls the webservice/webmethod and changed
the pointer from 'machine name' to 'localhost' and both calls to the
webmethod WORKED. This is really wierd. Manually invoking the 2
webservice webmethods worked so it's definitely not the webservice.

I remember in VS 2003 there used to be an option to make the
webreference dynamic. And if you POSTed your project and left it
static, the call to the webmethod would always crash (because it was
pointing to some machine the server couldn't get to - always detectable
in the IIS logs). But that is gone in VS 2005.

This has something to do with the complie process I'm thinking. Ideas?
I'm going on a Google hunt...be back soon hopefully...

*aspnet precompile problem*

bruce barker (sqlwork.com) wrote:
if the web service uses cookies to identify session, then you have copy the
session cookie returned from the first request and send to the second.

-- bruce (sqlwork.com)
"Jay" <Ja*********@gm ail.com> wrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
2.0 asp.net app (precomiled in 2005, not updateable, dll's in bin and
then merged to one dll)...

web app calls a 1.1 (compiled in 2003) webservice initialization
webmethod (works). Second call to a different webmethod (does NOT work.
The second webmethod uses session state (to re-connect individuals
session back together) and crashes...

Hypotheses include: can't use precompiled app in 2005 to call 1.1/2003
websevice that uses state. Jumping across thread pools and state not
possible?

Having trouble attaching to debug into the webservice webmethod.
Stumped. Any ideas/knowledge on what's going on?


Jun 26 '06 #3
Jay
Still working on this issue. I think it is related to the fact that the
option for web references in VS 2003 to make them dynamic (to read from
the web.config appsettings key) is now gone in VS 2005. When the
webreference points to localhost, it works. If I point it to another
machinename, it does not.

Jay wrote:
I think I do that...

I found something VERY very interesting...I went to the web.config of
the main application that calls the webservice/webmethod and changed
the pointer from 'machine name' to 'localhost' and both calls to the
webmethod WORKED. This is really wierd. Manually invoking the 2
webservice webmethods worked so it's definitely not the webservice.

I remember in VS 2003 there used to be an option to make the
webreference dynamic. And if you POSTed your project and left it
static, the call to the webmethod would always crash (because it was
pointing to some machine the server couldn't get to - always detectable
in the IIS logs). But that is gone in VS 2005.

This has something to do with the complie process I'm thinking. Ideas?
I'm going on a Google hunt...be back soon hopefully...

*aspnet precompile problem*

bruce barker (sqlwork.com) wrote:
if the web service uses cookies to identify session, then you have copy the
session cookie returned from the first request and send to the second.

-- bruce (sqlwork.com)
"Jay" <Ja*********@gm ail.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
2.0 asp.net app (precomiled in 2005, not updateable, dll's in bin and
then merged to one dll)...
>
web app calls a 1.1 (compiled in 2003) webservice initialization
webmethod (works). Second call to a different webmethod (does NOT work.
The second webmethod uses session state (to re-connect individuals
session back together) and crashes...
>
Hypotheses include: can't use precompiled app in 2005 to call 1.1/2003
websevice that uses state. Jumping across thread pools and state not
possible?
>
Having trouble attaching to debug into the webservice webmethod.
Stumped. Any ideas/knowledge on what's going on?
>
Jul 7 '06 #4
Jay
The following block of code was causing the problem...

Cookie sessionCookie;
CookieCollectio n cookieCollectio n=new CookieCollectio n();
sessionCookie=( Cookie)Session["sessionCoo kie"];
cookieCollectio n=CodingService .CookieContaine r.GetCookies(ne w
Uri("http://localhost"));
if(sessionCooki e==null)
{
cookieCollectio n=CodingService .CookieContaine r.GetCookies(ne w
Uri("http://webstrat02"));
Session["sessionCoo kie"]=cookieCollecti on["ASP.NET_Sessio nId"];
}
else
{
CodingService.C ookieContainer. Add(sessionCook ie);
}

I was trying to retrieve a cookie that was getting placed on my own
webserver, rather than the other webserver and the session was never
getting re-identified by the cookie because it never existed there...

Is there a reserved parameter for the 'GetCookies' method? Or do I have
to substring/indexof and hack something for that value?

Thanks...
Jay wrote:
Still working on this issue. I think it is related to the fact that the
option for web references in VS 2003 to make them dynamic (to read from
the web.config appsettings key) is now gone in VS 2005. When the
webreference points to localhost, it works. If I point it to another
machinename, it does not.

Jay wrote:
I think I do that...

I found something VERY very interesting...I went to the web.config of
the main application that calls the webservice/webmethod and changed
the pointer from 'machine name' to 'localhost' and both calls to the
webmethod WORKED. This is really wierd. Manually invoking the 2
webservice webmethods worked so it's definitely not the webservice.

I remember in VS 2003 there used to be an option to make the
webreference dynamic. And if you POSTed your project and left it
static, the call to the webmethod would always crash (because it was
pointing to some machine the server couldn't get to - always detectable
in the IIS logs). But that is gone in VS 2005.

This has something to do with the complie process I'm thinking. Ideas?
I'm going on a Google hunt...be back soon hopefully...

*aspnet precompile problem*

bruce barker (sqlwork.com) wrote:
if the web service uses cookies to identify session, then you have copy the
session cookie returned from the first request and send to the second.
>
-- bruce (sqlwork.com)
>
>
"Jay" <Ja*********@gm ail.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
2.0 asp.net app (precomiled in 2005, not updateable, dll's in bin and
then merged to one dll)...

web app calls a 1.1 (compiled in 2003) webservice initialization
webmethod (works). Second call to a different webmethod (does NOT work.
The second webmethod uses session state (to re-connect individuals
session back together) and crashes...

Hypotheses include: can't use precompiled app in 2005 to call 1.1/2003
websevice that uses state. Jumping across thread pools and state not
possible?

Having trouble attaching to debug into the webservice webmethod.
Stumped. Any ideas/knowledge on what's going on?
Jul 7 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1526
by: Bernard Dhooghe | last post by:
DB2 UDB V8.1 Fixpak 4 AIX 5.1 CLASSPATH: /usr/opt/db2_08_01/java/db2jcc.jar:/usr/opt/db2_08_01/java/db2jcc_license_cu.jar:/usr/opt/db2_08_01/java/sqlj.zip:/usr/java131/jre/lib/rt.jar: Program: tmp0.sqlj import java.sql.*; import sqlj.runtime.*; import sqlj.runtime.ref.*;
1
1718
by: Steve Franks | last post by:
Hi - I'm using VS.NET 2005 and have read about this precompile.axd that supposedly can be hit with a browser to force a complete recompile on the production server. However I do not have this .axd file. Where can I get it and how is it installed? Also what is to prevent an outside users from hitting this a bunch of times on purpose? Steve
8
1535
by: Mike Owen | last post by:
Hi, I am trying to pre-compile a project prior using ASP.Net 2.0, VS 2005, to putting it onto a live server. The reason for doing this is that other people have access to the server, and I thereofre want to keep the code secure. If I use the 'Build/Publish Web Site' option, it asks me to tell it the 'Target location' which in this case is 'C:\Temp\PrecompiledWeb\Project1'
2
1802
by: Shimon Sim | last post by:
I tried to use Precompile.axd to compile my site but got HTTP404 (The resource cannot be found) instead. I am running ASP.NET Version:2.0.50727.42 .. Any suggestions? Thank you, Shimon.
2
1028
by: Jon Davis | last post by:
We maintain a large number of heavy traffic web sites hosted on limited hardware resources. The traffic is such that pre-compilation is necessary since each initial load of a page is at least two or three seconds per hit, and multiplied across all sites the servers go down for a couple hours when everyone hits it at once if there are subtle changes or additions. Add to the frustrations, we are now integrating with a Perl-based CMS system...
1
1751
by: Tessa | last post by:
Hi, Is there a way to use aspnet_compiler to precompile an existing asp.net 2.0 web application that is on another server? I need to initiate the precompile programmatically from another .net windows program running on a different machine. thanks for any info
7
3135
by: bruce barker | last post by:
a previous long thread brought this up. I can find no way to precompile a web application from visual studio. by precompile I mean all the aspx code is converted to assemblies by visual studio, not at runtime by asp.net. if you view the compiled aspx page it should only contain the line: This is a marker file generated by the precompilation tool, and should not be deleted!
3
2016
by: Scott M. | last post by:
Scenario: ASP .NET 2.0 Web "Site" All but one page is written using inline VB .NET code. One page is written using VB .NET code-behind. MSBuild options are set at the default (allow pages to be updateable) When I "publish" the site and take a look at the precompiled folder that is generated by this process, I see a /bin folder has been created with one file in it "App_Web_pccpykfu.dll".
1
171
by: Gabriel Pineda | last post by:
hi everybody, i have an issue for you: i have an operative site wich i'm trying to precompile to protect the code that will be installed on client. the issue is: if i run the precompile (aspnet_compiler) it throw me some errors: ex: Name 'CN' is not declared. this is because the variable es declared in another page, that includes the one which throw the error. how can i bypass these "errors" ? how can i precompile the site? is it...
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10112
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.