Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crazy asp.net 4 pages work fine on IDE computer but not when uploaded to hosted site.

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I have created WEB page which works just fine on the IDE computer I am designing it on. I was having trouble and put in a "Throw Exception" to figure out how to make an alert window show.
I took the "Throw Exception" out uploaded it to the hosted site and when I click my button it still fires the "Throw Exception". However on the IDE machine it saves data to SQL just like it supposed to. no exception popup.

I searched the entire solution for the phrase popping "this is your exception" but it does not exist.
where in the world could this be or how is it still doing that?
I know I have the correct page since I made a change to it like added some words to the page. upload it and the new words show on the page. but when I hit the button I still get the "Throw Exception" and nothing is saved to SQL server?

I have VB.NET page which works fine so I know the Stored Procedure code is correct. and when I run it on the IDE development box is saves just fine too.
do I have to delete the whole project and reload it on the hosted site?
I get this a lot it works on the IDE box but uploaded things just don't work, no error, nothing just nothing. extremely frustrating. spend hours banging my head on this.

is the way to do .NET, host your own site on your own server with a static IP?


DougP
 
It could be a caching issue. Clear your browser cache.
If that doesn't work, restart IIS and recycle the app pool on the hosted site.

Also check to make sure you moved out any SQL changes as well.
 
restart IIS and recycle the app pool on the hosted site.

How do I do this? It's not my site. it's in "Timbuktu" somewhere?

moved out any SQL changes as well.
I don't understand?

if I run it from the IDE and it works then its not caching it. I open another tab and pull up the WEB site? using both IE and Firefox to test it as well, both don't work.
In WEB dev. 2010 Express if I hit the green run button it works. Right click on project hit clean , then build, then save all button .then I pop up WSFTPro, upload it, it does not work. I verify I have the correct file since the date/time is 2 seconds ago. the site is hosted at


DougP
 
It it is your site you should have admin rights to go to IIS for your site.
If you have any database changes, SPs etc, make sure they were copied out as well.

Running it from Visual Studio or express is NOT the same as running it from the uploaded site, I still contend it is a caching issue.
 
OK I got IIS7 remote management and connected to it, now what? I see a lot of icons?

so I think it has to do with caching. It seems the "code" does not change. the front part ASP changes cause I type in "I made this change" and I can see that but the button which is running VB code in code behind does the same thing it did before that changed?
I am uploading both pages the .aspx and the .aspx.vb. I can see using he FTP program that they have the most recent date.

Is there a setting gin IIS7 to not cache anything ever?


DougP
 
First verify that the vb file is actually the version you expect to be there. You can't rely on the date time stamp. Go to the the remote server and view the file to be sure it is the correct on.

in IIS, recycle the app pool and restart the website.
 
Quote]
Go to the the remote server and view the file to be sure it is the correct on.
[/quote]
How I am using WS-FTP Pro to upload? I have also double clicked the recently uploaded file so it loaded back into the IDE and it dose have the correct code?
Is the anther way using IIS7 manager?

DougP
 
I was chatting the hosting company. they figured out it has something to do with the code behind the pages. I would sometimes get an error saying "if this is running in a cluster... "
I was told to run the page locally and see what errors come up. but an XML error can't figure out first character... on the very first line. has something to do with WCF and IIS ?
I have every version of .NET on this machine and I don't want to wreck it by trying this or that I found on the WEB.
I have a new job so I might be buying myself a new computer, I can install asp.net on it and see.

DougP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top