ASP.NET and Godaddy, part 3

Sweet! Got everything working.

As I mentioned in the last post, I dropped back to square one and rebuilt the app one piece at a time to see where the problem was.

I got the login and register pages working first, then went to the data entry page.

Once I built my Linq objects, but before I referenced them, I uploaded everything one more time. I did a diff on the old and new web.config files to see what had changed. There were only two changes: 1) added new connection string and 2) added assembly info for Linq.

A quick check that everything worked well, then I added the code-behind to use the Linq objects to write the data to the database. 

Once everything was deployed, I hit the page and... 500 Internal Server Error.

This time I thought about the new App_Code directory where the Linq objects live. Since I did a website instead of a webapp, everything has to compile on the fly when it runs the first time... hmm. Think maybe that directory needs write permissions?

Added write permissions and, hey presto! Now the Linq data entry page works!

It was literally five more minutes to get the data view page working using a Grid View that uses a Linq object as its source.

One thing I did differently this time was change the name of the Linq datasource to something other than the default.

Now I move on to making things pretty. I'll also write up a more detailed set of instructions and post them. 

 

Posted on 4/22/2008 10:48:00 AM by jeffa

Permalink | Comments (20) | Post RSSRSS comment feed |

Categories: .Net

Tags: , , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

GoDaddy and ASP.NET apps

OK, so I'm finally working on some asp.net projects.

For several years now I've been working primarily on backend systems that do important work with NO visible interface... When we talk about our apps and people ask which part I did, I have to grimace and say, "The parts you can't see..." Without my part nothing would work, but people are only impressed by what they can SEE.

Any way, I'm working my way through the ASP.NET user management controls and made a simple app for tracking your health stats. I used Linq for the database access, and it seems pretty cool. I'll write in another post about what I think so far about Linq.

Got everything working well locally and uploaded it to GoDaddy.com. No go. I got the database populated with the roles, etc. But so far all I get is a big ole 500 Internal Server  Error. Since I'm working in a hosted environment, I can't a huge amount of info about what's happening.

I'm going to blog my efforts here and when I'm finished I'll write up a detailed set of directions.

For now I'm going back to step one and create a page with nothing but a login.

Film at 11.

Posted on 4/17/2008 10:04:00 PM by jeffa

Permalink | Comments (85) | Post RSSRSS comment feed |

Categories: .Net

Tags: , , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5