Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: file name from network port??? Pin
Dave Kreskowiak1-Dec-12 3:13
mveDave Kreskowiak1-Dec-12 3:13 
GeneralRe: file name from network port??? Pin
lanep5-Dec-12 11:19
lanep5-Dec-12 11:19 
QuestionSerialPort DataReceived event Pin
Blubbo30-Nov-12 11:04
Blubbo30-Nov-12 11:04 
AnswerRe: SerialPort DataReceived event Pin
OriginalGriff30-Nov-12 22:28
mveOriginalGriff30-Nov-12 22:28 
Questionvideo conferencing Pin
Oyebisi Jemil30-Nov-12 8:44
Oyebisi Jemil30-Nov-12 8:44 
AnswerRe: video conferencing Pin
Pete O'Hanlon30-Nov-12 9:03
mvePete O'Hanlon30-Nov-12 9:03 
AnswerRe: video conferencing Pin
OriginalGriff30-Nov-12 22:30
mveOriginalGriff30-Nov-12 22:30 
QuestionMaster-details Issue: Works with EW3 But Not with EW4 Pin
SaintNek30-Nov-12 5:08
SaintNek30-Nov-12 5:08 
I have created a project that works well in both Expression Web 3 and EW 4 using the preview feature.
However, when I published them to web sites. The versions published with EW3 works well Working site

However, the version published using EW4 has Internal Servet 500 error
Not Working site

The web.config files and the C# codes are provided below. I have spent days on the problem, and I am still unsure what is happening.
The following script was included in the <head> tag of my dynamic.dwt page
C#
<script>

using System;
using System.Data.OleDb;
using System.Configuration;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//Get connection string from web.config file

string strcon = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;

//create new sqlconnection and connection to database by using connection string from web.config file
SqlConnection con = new SqlConnection(strcon);

con.Open();
}
}

</script>


I used the following lines in the web.config file:
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|RegistrationDB1.mdb" providerName="System.Data.OleDb" />
<add name="Doughnut2002DBConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Doughnut2002DB.mdb" providerName="System.Data.OleDb" />
<add name="DetailsDoughnut2002DBConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Doughnut2002DB.mdb" providerName="System.Data.OleDb" />
</connectionStrings>

<system.web>
<pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
</system.web>

</configuration>

PLEASE HELP.
AnswerRe: Master-details Issue: Works with EW3 But Not with EW4 Pin
Eddy Vluggen1-Dec-12 5:52
professionalEddy Vluggen1-Dec-12 5:52 
AnswerRe: Master-details Issue: Works with EW3 But Not with EW4 Pin
SaintNek4-Dec-12 8:35
SaintNek4-Dec-12 8:35 
QuestionA MEF question Pin
John T.Emmatty30-Nov-12 4:50
John T.Emmatty30-Nov-12 4:50 
AnswerRe: A MEF question Pin
Simon_Whale30-Nov-12 4:59
Simon_Whale30-Nov-12 4:59 
QuestionRe: A MEF question Pin
Richard Deeming30-Nov-12 5:35
mveRichard Deeming30-Nov-12 5:35 
AnswerRe: A MEF question Pin
John T.Emmatty30-Nov-12 20:00
John T.Emmatty30-Nov-12 20:00 
QuestionC# WinForms - Printing Multiple Pages Pin
Matt U.30-Nov-12 4:29
Matt U.30-Nov-12 4:29 
AnswerRe: C# WinForms - Printing Multiple Pages Pin
BobJanova30-Nov-12 4:34
BobJanova30-Nov-12 4:34 
GeneralRe: C# WinForms - Printing Multiple Pages Pin
Matt U.30-Nov-12 4:48
Matt U.30-Nov-12 4:48 
QuestionFind the differences between two images for screen sharing apps Pin
Tridip Bhattacharjee30-Nov-12 3:13
professionalTridip Bhattacharjee30-Nov-12 3:13 
AnswerRe: Find the differences between two images for screen sharing apps Pin
Dave Kreskowiak30-Nov-12 4:07
mveDave Kreskowiak30-Nov-12 4:07 
AnswerRe: Find the differences between two images for screen sharing apps Pin
BobJanova30-Nov-12 4:32
BobJanova30-Nov-12 4:32 
GeneralRe: Find the differences between two images for screen sharing apps Pin
Richard Deeming30-Nov-12 4:42
mveRichard Deeming30-Nov-12 4:42 
QuestionAdding/Removing multiple IP addresses to NIC Pin
lorenzo.santoro29-Nov-12 21:07
lorenzo.santoro29-Nov-12 21:07 
AnswerRe: Adding/Removing multiple IP addresses to NIC Pin
Dave Kreskowiak30-Nov-12 4:05
mveDave Kreskowiak30-Nov-12 4:05 
GeneralRe: Adding/Removing multiple IP addresses to NIC Pin
lorenzo.santoro12-Dec-12 5:26
lorenzo.santoro12-Dec-12 5:26 
QuestionDetecting Webcam Pin
sarang_k29-Nov-12 19:51
sarang_k29-Nov-12 19:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.