Dev to Production

This is a discussion on "Dev to Production" within the Classic ASP section. This forum, and the thread "Dev to Production are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 17th, 2005, 06:41
New Member
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Dev to Production

I have been foisted with the unenviable task of finding out why a form that sends an email and writes to a database works in a dev environment but not in testing or production (3 different servers)

I should note the dev 'server' is my local machine, the other two are owned by some great force in another team.

In test and prod the form sends the email properly and moves on to the 'successful mail' page but doesn't write to the database, the person assigned this job previously said the database rollsback for whatever reason - is there a simple way I can find out what is causing this?? Error trapping is not my forte obviously and I would appreciate any suggestions!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 17th, 2005, 09:05
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
First of all, if you are sending mail in a dev environment be be sure to make checks you can in fact route email through the CDONTS service (I presume that is what you are using) AND that the dev machine has a route to send the email.

Setting up CDONTS at the best of times is awkward to say the least, but it's a complete nightmare to get mails to leave the box when in a dev environment withouta true internet domain.

Regards the database.... obviously make sure you are being connected to it. Last think to check only if it is an access database (and I presume it is.... and where the problem lies) is that you have write permissions set on the database folder.

you need to give the iusr_machinename account write permissions. You can do this by right clicking the folder in explorer and selecting properties. Next click on the security tab and add in the permission.

Hope this helps.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 18th, 2005, 06:31
New Member
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ok I am completely stumped.

The mail works ok, in dev I just use badmail to make sure its 'trying' to go where I want it to.

The databases are my problem. I checked and the database is connecting but to which one and where I am not sure - I will try to explain.

There is an include that contains all the connection strings (hardcoded) - I have this set at TestServer, in the asp for the form it calls a connection string from the following code:
strConnectionString = "Provider=SQLOLEDB;Data Source=" & GetSharedGroupValue("FeedbackDBServer") & ";Initial Catalog=" & GetSharedGroupValue("FeedbackDBCatalogue") & ";User Id="& GetSharedGroupValue("FeedbackDBUser") & ";password=" & GetSharedGroupValue("FeedbackDBPassword")



Interestingly enough the above code produces a connection to a different server (OldServer)! With a copy of the same database. The insert statement does not insert the data to either old or test when called. It will insert manually (me typing sql into enterprise mngr) on the old server but not test. Test tells me the user does not exist on another database on the same server that appears to have no connection whatsoever with the one I am working on - mostly because it is completely empty.

Have I confused anyone? I know I haven't a clue. Any help would be appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 19th, 2005, 07:48
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
look at the code for the function GetSharedGroupValue()

It must have the database details in there which you need to change. (IP Address)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 19th, 2005, 08:40
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Oooo.... jolly!

What a palarva!
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
dev, production

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resources for Learning Video Production Sgaspar11 Flash & Multimedia Forum 0 May 24th, 2007 15:17
Snr HTML/XML Coder/Production Developer Web JobBot Job Opportunities 0 Oct 18th, 2006 14:03


All times are GMT. The time now is 14:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42