Author |
Topic |
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-21 : 13:02:07
|
hellowe have worked on a .net app locally and uploaded the source codes and installation files to the server.however it doesnt run and is giving errorsWe found out that we have to connect and compile on the serverhow do we do so ?Afrika |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2005-12-21 : 13:26:50
|
Compile on the server? Probably not.What's the error message it's giving you?If I were to guess, I'd say you deployed an ASP.net project to a remote web server, but the folder that you deployed it to is not a Virtual Directory or the .Net Framework is not installed.<edit>Duhh, this is the ASP.net forum!The directory that you deployed to is not setup as a virtual directory most probably.Michael<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda> |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-21 : 13:57:10
|
quote: Originally posted by MichaelP Compile on the server? Probably not.What's the error message it's giving you?<edit>Duhh, this is the ASP.net forum!The directory that you deployed to is not setup as a virtual directory most probably.Michael
yes the framework is installed, it runs all other .net files that dont reference the bin direcotry.If i take out the reference to those files they run fine.when i check the properites of the remote bin files (dll) its says its non executableBasically, if the bin folder is not an application folder it does not run, it has to be an applicaiton folder and not a web folderAfrika |
 |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-12-21 : 14:54:08
|
have you compiled it in debug or release mode?Go with the flow & have fun! Else fight the flow |
 |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2005-12-21 : 15:14:47
|
On your virtual directory in IIS, right click and goto properties.At the bottom of the screen, you have a dropdown for Execute permissions. For my .Net projects, I have Scripts and Executables selected.Also, maybe the .Net DLL's you are referecing are missing some dependancies or something? What's the error message you are getting?Michael<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda> |
 |
|
jhermiz
3564 Posts |
Posted - 2005-12-21 : 15:46:59
|
Did you register the dll's that are required on the remote server? If you are using any 3rd party tools (dlls) or anything that you created (your own class that outputs a dll) you will need to register those dll's using regsvr32. Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url] |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-21 : 15:57:06
|
quote: Originally posted by jhermiz Did you register the dll's that are required on the remote server? If you are using any 3rd party tools (dlls) or anything that you created (your own class that outputs a dll) you will need to register those dll's using regsvr32. Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]
No we didnt register the dlls on the server.its a VIRTUAL DEDICATED host, and we only have access via ftp and a control panel, we have been going back and forth with our hosting providerwe also dont have access to MMC or IISquiet confusing afrika |
 |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2005-12-21 : 15:58:47
|
Sounds like you need a new host that specializes in .net.Also, did you reference any COM objects? That may be part of the problem as well.Michael<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda> |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-21 : 16:03:45
|
Also worthy of note.1. if we compile and run locally it works2. if we upload the compiled version to the remote server it fails, while trying to reference a dll file in the bin directory3. if we remove the reference to the file in the bin directory it runs ok4. we did some troubleshooting and noticed that, locally if we dont have the folder as created as an application in IIS it fails locally as well.we have been going back and forth on this, especially owing to the fact that we only have access via ftp and cpanelAny advice ?Ehi |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-21 : 16:05:40
|
no COM objects or 3rd party toolsAfrika |
 |
|
jhermiz
3564 Posts |
Posted - 2005-12-21 : 16:53:15
|
Its because you need to register that dll as I pointed out...Without registering a component (a dll) how would you ever expect to get this to work ? It's definately not magic!Jon Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url] |
 |
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2005-12-21 : 20:15:47
|
With .NET, you don't need to register DLL's. They just must be included in the bin folder of the web app. |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-22 : 05:50:33
|
Am going to try another hosting provider.Its just that we have been using this one for 3years running without errors in other applicatins, only this sitethanks for all contributions, would certainly give you feedback(s)Afrika |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-22 : 06:22:48
|
Its upGot our hosting providers to sort it out.Gracia mon ami |
 |
|
jhermiz
3564 Posts |
Posted - 2005-12-22 : 09:14:45
|
What was the issue if you dont mind sharing ? Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url] |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-22 : 13:22:43
|
Yes Jon,but am not too sure, am yet to meet with the .net team. They stayed up the night, but initially, we were having errors becuase 1. The settings in the webconfig files were set to the local server and not changed to reference the remote server.2. the reference file in the pages, couldnt run files in the bin diretory.While i was with them, the above two errors were what they were expiriencing.when we were troubleshooting locally, we just changed the folder type to an application in IIS and it worked. However, when they get here, i could give a full pictureBut hey ! Thanks everyone for assistanceEhiwe expirienced different error messages, but the most common was the one belowParser Error Message: Access is denied: 'WebApplication1'. |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-23 : 07:53:03
|
Hello Again Jon,was actually an oversight on thier path.Its a Virtual Dedicated server they were running, so you setup everything you need, and they overlooked setting up the execute permissions on the application folder. Which was the bin directoryITs been solved nowAfrika |
 |
|
|