Last post Feb 12, 2008 09:48 PM by admob
Jan 23, 2008 10:43 PM|admob|LINK
Also the website is integrated into WorldPay, i can see that there is a IPN.aspx file although it only has reference to a dll and no content. Therefore does this mean that data with regards to the packages for
payment processing is within this dll? If so can anyone suggest how this may be edited as i can only view them with Visual Studio and not edit or see any data? As i did not create the site i also have no .vb files etc and only the compiled website as you would
find it on the ftp.
Jan 24, 2008 12:00 AM|darkknight187|LINK
Welcome to asp. and first off you should know that the original classifieds starter kit does not come with any payment processing.
Your client has added the reference to WorldPay. So I have no idea there.
As far as the packages or AdTypes it's referenced in two main places.
First in App_Code/Web/Outputformatting file, and also at the top of App_Code/BLL/Ads.vb (Ads.cs if you use Csharp)
As for the max pics, there are two places, first when the app runs it looks for a .xml file. If the app cannot find or access the .xml file it then uses the default.
I had to move the site-config.xml file but I think the original location was in the App_Data folder.
The default backup, is in App_Code/BLL/SiteSettings.vb
Good luck and if you have any more questions don't hesitate to ask.
Jan 24, 2008 01:44 PM|ashmetry|LINK
I've done similar things in my website www.love2trade.com , I however developed all the extras myself so I can give you some insight on the thought process that I went through but that does not guarantee that this
is how it was coded on your website.
Regarding the packages. I would start off by looking at the database... sometimes its helpful to go the SQL Server 2005 "Database Diagrams" and print a database schema layout. This will give you a global view for all your tables/fields and their relationships
(assuming FKs & PKs are set correctly).
I would assume that there "should" be a table that contains package information for each package, i hope its not hardcoded :).
There should be a cross reference table that maps each ad to an ad package. The way i have it designed in my website is that i have a designer class that is responsible for knowing the attributes of each ad (design, duration..etc). I would think that this
is probably how its done.
Regarding WorldPay, the dll is your API library, you will not be able to see code for it (You dont need to). But if you see no reference for prices / content in general then i would assume that these prices are pre-defined in your account with worldpay...and
when a user is checking out from the website, you simple tell worldpay to charge for package #1, #2, or #3 depending on what the user selects.
You'll probably get more info on WP's documentations on integrating with ASP.NET i bet it will explain how exactly the dll work.
Im sorry but without knowing the code thats the best i can do.
Hope that helps. Good Luck
** You guys are sure charging good money for these ads :)
Jan 24, 2008 11:06 PM|admob|LINK
Thankyou for your response,
The issue i have as mentioned is that i only have site as you would expect to take it of the ftp already compiled. Therefore i do not have the App_Code and thus the .vb files?
Jan 24, 2008 11:16 PM|admob|LINK
Lovely site! Many thanks for your response also.
I have checked again and there is not a table with the package information and it must of been coded. The only mention in the database is in
classifieds_Ads it has a column
AdOption that is set to 1,2 or 3 (corresponding to the 3 packages option for each ad).
Any idea were the information may be if not in the database?
With WorldPay i have looked in the account and no mention other than the callback file etc and a few settings. It does show it is integrated using Select Junior so that means that the information is being sent
using a form to create a ticket. Although this form is nowhere to be found!
Within the MyAds.aspx is the link that the user clicks redirecting to WorldPay, the only mention within this file is the following:
<asp:ImageButton ID="payNow" runat="server" AlternateText="Pay Now!"
OnClick="payNow_Click" ImageUrl="<%# PayNowImageURL %>"
CommandArgument='<%# Eval("Id") %>' />
The payNow_click is linking to something that must contain the information?
I understand that you do not know the code and is hard to understand and help, but any guidance is much appreciated.
Jan 25, 2008 12:55 AM|darkknight187|LINK
I think you are going to find problem after problem until you get all the files.
Tell your client you need him to put them into a zip file for you.
If you're interested in what the original classifieds starter kit works like, I would suggest downloading a copy.
I really think you are going to need to get the whole app, not just off of ftp.
Jan 25, 2008 02:08 AM|ashmetry|LINK
Im assuming when you say "take it of the ftp already compile", you mean that the whole website is pre-compiled.
This means you can do basicly nothing...
Its like somebody giving you an PROGRAM'S EXE and tells you to make modifications to the program.
It does seem like the prices are hardcoded if its not in the application config file (xml).
You will definetly need the source if you need to make any changes.
Jan 30, 2008 04:58 PM|admob|LINK
Many thanks for your replies,
I now have managed to get the full code out of him and have found the max pics, prices etc in Ads.cs.
As i mentioned i have moved the site from its old host and all appeared to be working great, although an issue has appeared with WorldPay it terms of the user pays, it takes the money etc, although its not activating the ad and posting back, although nothing
has been edited from the old host were it worked. Any ideas were to look and what could cause this? There is an issue with the e-mails are not working properly unless this could be why?
Does anyone know what server and port would need to be set to for GoDaddy hosting:
<network host="" port="25" defaultCredentials="true" userName="username" password="password"/>
Jan 30, 2008 08:33 PM|darkknight187|LINK
As far as the email, I use godaddy and your settings are close, try this.
That's the setting for basic smtp with godaddy, and I set up in the site settings where to send on reply, and the above works fine.
Jan 30, 2008 08:56 PM|ashmetry|LINK
It's possible that somewhere worldpay is still posting back to the old host.
I'm interested to know more regarding that postback functionality...I know with google, you can specify a url that they can post back to.
Jan 30, 2008 10:26 PM|admob|LINK
Thankyou for your responses,
Yes i have noticed it now has to be relay-hosting.secureserver.net but does it require a username and password still and if so would this be of a specific e-mail account?
With regards to posting back i am still learning it myself, the site has PayPal and WorldPay integrated and appears to collect the information from Ads.cs and then use a IPN file to send this to the relevant payment processor. This is then posted back to
the same file to either show an error or success and modify the classifieds_ads table to activate the ad.
The reason it is not working appears to be an issue with no access to the IPNlog.txt, i presume this is file permissions. Although GoDaddy only allow you to set permissions on directories not files, any suggestions how this may be done as ftp also does not
allow you to.
Jan 30, 2008 10:31 PM|admob|LINK
Ive got the e-mail working it is with a e-mail account specific username and password if anyone is interested.
Jan 31, 2008 01:21 PM|ashmetry|LINK
where does IPNlog.txt sit?
Do you have a shared plan with GoDaddy? because if you have a vded or ded it could be ntfs permissions.
Jan 31, 2008 03:21 PM|admob|LINK
In the root, its windows shared hosting?
Jan 31, 2008 03:31 PM|ashmetry|LINK
You need to move that file to a protected location ASAP. Visiting the file directly displays infomation about people that purchased via your website..this is a MAJOR security threat. Your users would be furious if they know about this..
I would make that highest priority...
Move the txt file to App_Data or something...
Jan 31, 2008 10:54 PM|admob|LINK
I have done many thanks i had not noticed this, i have as mentioned just taken control of the website and learning asp as i go, personally i have always used linux and php.
Any idea how to sort this permissions issue on that file?
Also this may sound really stupid, but if you edit for example the Ads.cs file, how do you compile this into the .aspx and the dll file (that creates i presume the bin folder etc) in Visual Studio as the 'Build' function does not appear to do anything?
Feb 01, 2008 12:03 AM|ashmetry|LINK
The best way to deal with the file issue is to move that file to the App_Data folder and re-point whatever code that writes to it to the new location.
Regarding the compiling; use Web Deployment Projects
http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx its a wrapper for aspnet_compiler.exe that uses MSBuild (this comes as part of the .NET framework & VStudio)
MSBuild is the .NET 2.0 and is like ANT for java (or NANT for .NET 1.1)
Feb 02, 2008 01:44 PM|admob|LINK
I have sorted the file issue. With the compiling i am using Visual Web Developer 2008 Express Edition, do you know if such a tool is available for this version/product.
Feb 02, 2008 01:55 PM|ashmetry|LINK
Feb 02, 2008 02:06 PM|admob|LINK
Note: Web Deployment Projects are not supported with Visual Studio 2008 Express Editions.
So with the express edition does that mean i cannot compile the website to work on my host? Sorry to sound really lost you know how it is till you have done it once!
Feb 02, 2008 02:13 PM|ashmetry|LINK
Oh forgot about that...Express editions does NOT allow plugins..therefor you cannot install anything on them.
You are stuck to do the compilation manually or buy a VS Proff ;)
TO do the compilation manually.. read more about MSBuild http://msdn2.microsoft.com/en-us/library/0k6kkbsd.aspx
and ASP.NET Compilation
Feb 02, 2008 02:22 PM|admob|LINK
So is that plug-in for non express editions basically the ASP.NET Compilation Tool (Aspnet_compiler.exe) or equivilant?
Chances are i wont be able to do it my self with my current knowledge even reading through them, there is a 90 day trial of Visual Studio 08 so may download that (3.5gb!) and get it running with the plug-in is probably my best bet?
Feb 12, 2008 09:48 PM|admob|LINK
Many thanks to all that helped.
I got the full Visual Studio 08 rather than the Express and this solved most of my problems!
I have now edited the WorldPay dll file to not write to the log to solve the file write permissions issue if anyone is interested. Also thankyou for the advice to the location of certain files for editing the max photos etc.
All the best,