asp errors
- Started
- Last post
- 18 Responses
- CX
I just changed my asp files to a different server and no files have changed, the database connection is working but now I have the following errors:
When submitting a new record:
Response object error 'ASP 0156 : 80004005'
Header Error
/submit_act.asp, line 82
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.And when modifying a record:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
/admin/update_act.asp, line 61Please help! I think its the server settings are different.
- CX0
- tfs__mag0
is banman the app you're having problems with?
the first error is usually from trying to do a redirect after you've already written something to the page... any redirects should come before any response.write or html.
- CX0
No, the banman site is just an example of trying to find info on the error on the web.
Also, no there is no redirect being executed.
Here is an email from a friend:
here is a more detaild explanation from microsoft.
http://support.microsoft.com/def…
the first error MAY be a settings issue as well. check out your code and compare to the first part, if every thing is good there, then ask the SAs to check on the settings issue described in the second part.
- tfs__mag0
could you email the code of the page generating the http headers error... i'm sure i could help you figure it out if i could see the code.
- tfs__mag0
email it to
- tfs__mag0
oh.. the updateable query error is most likely a permissions issue like it said in the MSDN article you posted. You just need a server admin to change the directory to have "write" priveledges for the internet user.
- CX0
The header issue get stuck on this line where its starting to send an email:
Set MyCDONTSMail2 = CreateObject("CDONTS.NewMail")
*this line*
HTML = ""
- CX0
Also like I said on the other server all these pages worked perfect.
- tfs__mag0
well.. if it worked fine on the old server, the only thing i can think of is that cdonts isn't enabled on this server... sometimes admins wont' install the cdonts smtp service... i use jmail, but if it's a hosted machine you'll need to find out what mail components they support.
- CX0
Dig this:
Its on a dev server connected to the .mil and they currently don't allow any mail apps, CDONTS, SMTP or anything for security reasons. Were going to talk about it tomorrow. Any secure alternatives??Also, he said that he had already set the internet user write priveledges to yes.
- CX0
I think they probably have write permissions for the main folder but not the folder the database is in. They are really a pain to ask for help on things like this. I have no access to the server.
- tfs__mag0
you're probably right... did you try putting the dbase in the main directory and redirecting your connection string to there?
- CX0
No, thats the other shitty thing I don't even have access to edit the files yet on that machine. I have to bug this lady to get up and let me on her computer.
The other thing may be that since it was copied from a burnt CD that that may have made the database file read only. Ill try that first when I get a chance.
What do you think?
- tfs__mag0
dude.. cds always make shit read only... try that first. any time we get stuff from a cd i have to go through and deslect read-only from the properties on every file.
i'd say thats your culprit right there.
- CX0
yeah I was also wondering if giving the main folder write properties would automatically give it the all its subfolders.
Thanks, a lot for your help dude.
- CX0
Awesome skate site BTW ...Add to Favorites..
- tfs__mag0
thx... we're actually getting ready to do a huge redesign, it's gonna be off the chain.
- CX0
The part where I am setting cookies has coused the header error so I just commented it out for now.