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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot find the aspx.vb files!! 1

Status
Not open for further replies.

davejam

Technical User
Jan 6, 2004
313
GB
Hi all,


i am looking into a problem for a friend, the report their client portal runs gives the client access to their reports online...

problem is its now outdated and needs to bring in different fields from a different recordset... i said i'd see if i can help..

unfortunately i cannot find any of the aspx.vb files to modify... all of the aspx files have reference to these files but they are not to be found anywhere.

I do know that the portal works on a possibly encripted system after a user logs in as before the report.aspx it has a code for example (fyfcp24514op4lbhgbalih55)/report.aspx

i've never seen an example like this that i've worked on, can anyone help me to track down the aspx.vb files???

oh, its windows iis using .net 1

any hints tips or pointers would be greatly appreciated as his boss is kinda on the warpath...

is this normal...

thanks in advance

daveJam

*two wrongs don't make a right..... but three lefts do!!!!*
 
It sounds like a quite normal situation to me. The project has been developed and deployed to the server and the source files get compiled into a dll to make it more secure.

You will need to get hold of the original project to view the source.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
the production server shouldn't contain form.aspx.vb files these should have been compiled into the website.dll located in the bin directory.

the form.aspx.vb files would reside on the development box or located within a version control repository.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I was worried about that.... after i posted i had that very thought and been researching it on the web....

i think it was developed externally, or the bloke who did it isn't there anymore, so its pretty much unchangeable!!!

hmmm.... he's in a pickle then!!!

he'd have mentioned if they had it on a dev server.

oh well, guess i better hurry up with this new portal... think they've lost contact with the other developer... its years old!!!

thankyou for your help (and speedy response) :)

daveJam

*two wrongs don't make a right..... but three lefts do!!!!*
 
oh and just to clarify, stupid question i'm guessing but

can you not deconstruct the system from the dll??

as i say, doubt it cos thats the protection the suplier has for their project...

i only ask cos he's in really hot water!!

thank you

daveJam

*two wrongs don't make a right..... but three lefts do!!!!*
 
sorry to be completely bemused by this, with reflector can i get the aspx.vb files exported, or is it just a visual tool

cheers

daveJam

*two wrongs don't make a right..... but three lefts do!!!!*
 
Yes you can export them as well, although you may have to do a few manual cleanup tasks on it as the VB.NET/C# code will be generated based on the IL code that it produced.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
ok... one last worrying thing (god... i think i need walking through every step!!!)

when exporting i get

the following assembly name cannot be resolved automatically:

Microsoft.VisualBasic, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

please select an assembly file manually


if i skip it continues through... will this give me a headache??

and one of the worries i have is the report.asp.vb is the only file missing... although in the report.aspc it has inherits=webform4 which is there???

as you may tell haven't worked much in .net

if that works i gotta try and find out how its building the sql statements / fields / forms....

yay!!!

thanks so much for the help so far,

daveJam

*two wrongs don't make a right..... but three lefts do!!!!*
 
when exporting i get

the following assembly name cannot be resolved automatically:

Microsoft.VisualBasic, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

please select an assembly file manually
That shouldn't matter as you don't need to view the contents of the framework dll, it's just yours that you are concerned with.

and one of the worries i have is the report.asp.vb is the only file missing... although in the report.aspc it has inherits=webform4 which is there???
Maybe the original developer pointed the code behind file to one named webform rather than report. It's certainly possible to do, although I can't think why you would.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
so just to wrap up this issue,

if i was to make the simple change i need to (when i find out just what it is, work out the querie and add in the field) then compile and put back up on the web it should work fine??

obviously i'll try it on a different folder first and test rather than the live system, but in theory, this should work??

daveJam

even my shrink says its all your f#@/ing fault
 
thankyou, you've been a star... here's a star

daveJam

even my shrink says its all your f#@/ing fault
 
heya, hopefully i can get a final closure on this (been away for a couple of days)

when i decompile i can choos visual basic as a code type, unfortunately this gives me .vb files not aspx.vb

can i simply use these with my original files, maybe renaming them??

trying to find a decompiler that will extract straight into aspx.vb but am coming up with nothing!!!

thankyou

daveJam

even my shrink says its all your f#@/ing fault
 
thankyou again

daveJam

even my shrink says its all your f#@/ing fault
 
not sure if the programmer who did this used a specific way to do this, when i export from reflector to specified folder i get a list of resource files the a folder called serviceportal then in there get all the vb files

example
ServicePortal.ChangeLogonDetails.resources

do i need to keep the resource files and store them in the root folder for the application??

thankyou again

daveJam

even my shrink says its all your f#@/ing fault
 
i'll give it a whirl!!!

daveJam

even my shrink says its all your f#@/ing fault
 
ok , bben trying to play with it in vis studio 2005, unfortunately the first thing it asks me to do is update / convert...

should i open as a project or web page... i've apened as both but think i need to go the web site route as its supposed to be aspx.vb

i'm just confusing myself as i go.. so wish they had the original files, would have been a lot easier :(

ok, with most of the pages the first line is as follows,
Code:
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Report.aspx.vb" Inherits="ServicePortal.WebForm4"%>
or
Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CallDetails.aspx.vb" Inherits="ServicePortal.WebForm2" %>

when decompiling i did not get any files for 'Report' or 'calldetails' although i do get files named
ServicePortal.WebForm2.resources and
ServicePortal.WebForm4.resources which there seems to be some reference to in the Inherits.

I also get files of WebForm2.vb and webform4.vb in a servicePortal folder...

i know this has been decompiled in vb rather than asp.net any idea how i would go about this, or is this what i should have??

??

thankyou

daveJam

even my shrink says its all your f#@/ing fault
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top