Link to home
Start Free TrialLog in
Avatar of maqskywalker
maqskywalker

asked on

how to upload a precompiled asp.net website to Godaddy shared hosting

Hi experts,

I have a Godaddy Windows deluxe shared hosting plan which has asp.net 3.5

I'm using Visual Studio 2008.

I have a Web Project with one page which is called HelloWorld.aspx
Which is just a page with a label with the text Hello World.

In Visual Studio I just click Start Without Debugging and it runs the page locally and it show it run just fine in my browser.

So at this point in my project directory I just have two files.

HelloWorld.aspx
HelloWorld.aspx.cs

So now, I'm using filezilla to ftp these 2 files to my shared hosting website. After I ftp these 2 files. I now go to my web browser and type in this url

http://www.mydomain.com/HelloWorld.aspx

When go to this url the aspx page runs fine and I see my Hello World text.

My Question is this:

I'm working on a HelloWorld.asmx web service example but I read that to get it to work on godaddy I must precompile the website with Visual Studio and then upload it to my shared hosted with the dll files inside the bin folder.  

Before I could even work on this web services example I figured I would actually learn how to get a  basic HelloWorld.aspx precompiled page working first on godaddy then once I got that working than I could work on my web service.


So in visual studio 2008 I precompiled my HelloWorld.aspx page.   So now in my website directory I now have HelloWorld.aspx, a file called PrecompiledApp.config, and the bin folder with a dll file.  I used filezilla to ftp this whole directory to my shared hosting and when i browse to:

http://www.mydomain.com/helloworldsite1/HelloWorld.aspx

I get the following error:

 User generated image
Does anyone know how to upload a basic helloworld.aspx precompiled page to Godaddy?

Am I missing something? Can anyone help?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of viralypatel
viralypatel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Manoj Patil
Manoj Patil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maqskywalker
maqskywalker

ASKER

I added the following

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

So now when I view helloworld.aspx  at my godaddy windows shared hosting location in my browser i just go to my url http://www.mydomain.com/helloworld.aspx

I get the following error:

 User generated image
The files that I have in my directory are as shown below:

 User generated image
Is this your top most folder structure ??
Have you checked the GoDaddy framework version and your complied website version ???
techchallenger1,

This is the info about my windows shared hosting at godaddy. It's asp.net 3.5.

 User generated image
I'm using Visual Studio 2008 Professional.

Do you know where in Visual Studio do I check to see what version it's going to compile to?
I finally figured it out thanks.