Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,157 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,020 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Visual Web Developer 2008

 
Reply to this topicStart new topic

Visual Web Developer 2008, Framework 2.0 vs. 3.5

Fullchaos
post 25 Jun, 2008 - 06:47 AM
Post #1


New D.I.C Head

*
Joined: 30 May, 2008
Posts: 30


My Contributions


A few questions

1. Is it possible to have VWD create the web.config file in asp.net 2.0 as opposed to 3.5.

2. Is is possible (well, more likely than not, probable), that the fact that I'm trying to run an application created in 2008 on a server running 2.0 (it doesn't have the ability to be upgraded to 3.5) is causing me problems?
(I've had lots of problems, and I still can't get it live on the test box, but of course it runs beautifully through VWD 2008. Everything from unsupported child nodes, to not being able to find the specified file/assembly, to malformed xml, to error codes that won't tell me what they are...most of them are involved with the webconfig file though.)

If the answer to 1 is no, or the answer to 2 is yes, what is the best solution to the problem?

Currently, I'm downloading VWD 2005 in the hopes that it will help (seeing as it develops in .net 2.0 from what I know.)

Any other suggestions/solutions?

Thanks in advance.
User is offlineProfile CardPM

Go to the top of the page


Fullchaos
post 25 Jun, 2008 - 10:02 AM
Post #2


New D.I.C Head

*
Joined: 30 May, 2008
Posts: 30


My Contributions


Update:

Well, to more or less answer my own question, Visual Web Developer 05 has a considerably cleaner web file that works well with the server. It eliminates a lot of the problems in the html generation, however, it has shown me that the asp isn't being passed to the server for whatever reason

CODE

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Photo Database</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table>
    <tr>
    <td>
        
    <img src ="RockBrad.bmp" alt = "" align="right"/>
    </td>
    <td>
    
    <h2> Photo Routing Database</h2>
     <asp:Button Id="buttonModel" onclick="buttonclick1" runat ="server"  Text="Enter Model Number" />
    <br /><asp:Label ID="tell" Font-Size ="Medium" Font-Bold = "true" runat="server" />  
    
    
    </td>
    </tr>
    </table>
    
  
    <asp:GridView ID="GridviewPh" runat="server" AutoGenerateColumns ="false" >
    
    <HeaderStyle BackColor = "#cc0000" />
    
    <RowStyle HorizontalAlign="Center" />  
    
    <AlternatingRowStyle BackColor ="#ffff99" />
    
    <Columns>
    
    <asp:BoundField DataField ="Operation" HeaderText ="Operation" />
    <asp:BoundField DataField ="Location" HeaderText ="Location" />
    <asp:BoundField DataField ="Description" HeaderText ="Description" />
    <asp:BoundField DataField ="Area Title" HeaderText ="Area Title" />
    <asp:BoundField DataField ="Documentation" HeaderText ="VA" />
    <asp:BoundField NullDisplayText ="_____________" HeaderText ="Step Completed [Inital]" />
    
    </Columns>
    
    </asp:GridView>
    </div>
    </form>
</body>
</html>



vb file
CODE
Imports DataSet1TableAdapters
Partial Class _Default
    Inherits System.Web.UI.Page
    Dim whereval As String

    Protected Sub buttonclick1(ByVal sender As Object, ByVal e As System.EventArgs)
        whereval = InputBox("Please enter your model number.", "Photo Routing")

        tell.Text() = ("Routing for model number " & whereval)

        Dim PhOut As New PhotoDBTableAdapter
        GridviewPh.DataSource = PhOut.GetDataByPhModel(whereval)
        GridviewPh.DataBind()


    End Sub
End Class


Could the web config be a problem?

Anyone have any idea why the asp might not be passing to the server, or causing the server to time out on it's request? (Administrator of my server has told me the error log shows asp stopping unexpectedly)
User is offlineProfile CardPM

Go to the top of the page

rgfirefly24
post 25 Jun, 2008 - 10:43 AM
Post #3


D.I.C Regular

Group Icon
Joined: 7 Apr, 2008
Posts: 311



Thanked 5 times

Dream Kudos: 150
My Contributions


several questions are you running IIS v6.0? with .NET set to 2.0? Is ASP.Net even enabled on that server? If your using any 2008 version of VWD or VS i do believe (not 100%) but it creates a .NET 3.5 framework project not a .NET 2.0. You will stricly have to create the project in 2005 versions of the above.


User is offlineProfile CardPM

Go to the top of the page

Fullchaos
post 25 Jun, 2008 - 10:47 AM
Post #4


New D.I.C Head

*
Joined: 30 May, 2008
Posts: 30


My Contributions


IIS v6.0 is running on the server, and it is set to .NET 2.0. The server is actually currently getting some updates for it as we've since found that windows has a few suggestions.

The code you're looking at is a recreation of the project made in VWD 2005 on a .NET 2.0 framework. (tongue.gif I thought the 3.5 thing would be a problem)

Currently I can generate the image, the text, and the button. Clicking the button causes the server to time out.
User is offlineProfile CardPM

Go to the top of the page

Fullchaos
post 26 Jun, 2008 - 06:57 AM
Post #5


New D.I.C Head

*
Joined: 30 May, 2008
Posts: 30


My Contributions


Hey all, thanks for the assistance!

Here's the problem:
Essentially in asp.net, Inputbox is a serious problem. Basically, this line of code:
CODE
whereval = InputBox("Please enter your model number.", "Photo Routing")


Was causing massive problems for the client/server interaction (primarily, there wasn't any).

So the solution was to do the following:

Replace the offending code with

CODE
Protected Sub receive(ByVal sender As Object, ByVal e As System.EventArgs)
        whereval = infeed.Text


And change the set up for user's input:
CODE
<asp:TextBox ID="infeed" runat="server"  />
    <asp:Button OnClick ="receive" Text = "Enter Model Number" runat ="server" />
    


This successfully allows the user to input, and without a pop-up box smile.gif.
User is offlineProfile CardPM

Go to the top of the page

ross_petersen
post 27 Jun, 2008 - 06:42 PM
Post #6


D.I.C Head

**
Joined: 6 Aug, 2005
Posts: 58



Thanked 1 times
My Contributions


I haven't tried this out, but with VWD 2008, apparently it is possible to target the solution for a particular version of the framework (i.e. 2.0, 3.0 or 3.5).

If you right-click on the solution and choose property pages a dialog box pops up. Select Build on the menu on the LHS and you will see on the main part of the window the ability to choose a target framework. The default is 3.5 but 2.0 & 3.0 are available as well.

Perhaps that might help.

Kind regards

Ross
User is offlineProfile CardPM

Go to the top of the page

Fullchaos
post 28 Jun, 2008 - 12:28 AM
Post #7


New D.I.C Head

*
Joined: 30 May, 2008
Posts: 30


My Contributions


Thanks Ross, I'll take a look at it when I get more time, but I've been very busy with several things recently. Had to just switch to 2005 (which is admittedly, decidedly slower than 2008, and less user friendly).
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/5/08 05:37PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month