-
July 18th, 2014, 06:03 AM
#1
C# SideBySide error on 64bit Windows 2008 Server
Hi All,
I just compiled my second 64bit C# console application, that runs fine on my 64bit VM Windows 7 Enterprise local machine. When I compile the code in release mode, and move to Windows Server 2008 R2 Standard SP1, I get an SideBySide error in the Event Viewer, that prevents my application from running. The application is a small app that just runs a sql query, and sends an email, and also makes a webservice call to add data to a database. The error says Invalid XML syntax on line 8 in my config file. This particular line, just reference a text file that has a SQL statement. Below is the config file, and SXSTrace.
The issue is with this line: <add key="PackageInQueue_SQL" value="E:\Monitoring Checks\PackageRunMonitor\PackageInQueue_Sql.txt" />
CONFIG FILE
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="DB_CONN_STR" value="Data Source=SERVERNAME;Initial Catalog=DATABASENAME;Integrated Security=True;Pooling=False;Connection Timeout=0" />
<add key="CONN_STR" value="Data Source=SERVERNAME;Initial Catalog=DATABASENAME;User Id=userid;Password=password" />
<add key="ErrorCentralURL" value="http://SERVERNAME/Central/Central.asmx" />
<add key="Reporting_WS" value="http://SERVERNAME/Service.asmx" />
<add key="PackageInQueue_SQL" value="E:\Monitoring Checks\PackageRunMonitor\PackageInQueue_Sql.txt" />
<add key="PackageInQueue_SendAlert" value="value="E:\Monitoring Checks\PackageRunMonitor\LastEmailSentTimeStamp.txt" />
<add key ="EmailSendTime" value ="59"/>
<add key="SmtpServer" value="smtp.dummy.com" />
<add key="SmtpPort" value="25" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ServiceSoap" />
</basicHttpBinding>
<customBinding>
<binding name="ServiceSoap12">
<textMessageEncoding messageVersion="Soap12" />
<httpTransport />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://SERVERNAME/service.asmx" binding="basicHttpBinding"
bindingConfiguration="ServiceSoap" contract="Service.ServiceSoap"
name="ServiceSoap" />
<endpoint address="http://SERVERNAME/service.asmx" binding="customBinding"
bindingConfiguration="ServiceSoap12" contract="Service.ServiceSoap"
name="ServiceSoap12" />
</client>
</system.serviceModel>
</configuration>
The following is the SxSTrace when I run the application.
=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = AMD64
CultureFallBacks = en-US;en
ManifestPath = E:\Monitoring Checks\PackageRunMonitor\PackageRunMonitor.exe
AssemblyDirectory = E:\Monitoring Checks\PackageRunMonitor\
Application Config File = E:\Monitoring Checks\PackageRunMonitor\PackageRunMonitor.exe.Config
-----------------
INFO: Parsing Application Config File E:\Monitoring Checks\PackageRunMonitor\PackageRunMonitor.exe.Config.
ERROR: Line 8: XML Syntax error.
ERROR: Activation Context generation failed.
End Activation Context Generation.
Thanks!
-
July 18th, 2014, 12:20 PM
#2
Re: C# SideBySide error on 64bit Windows 2008 Server
Is that folder shared on the server? Same permissions? That's most likely the issue
-
July 18th, 2014, 09:12 PM
#3
Re: C# SideBySide error on 64bit Windows 2008 Server
You have an extra ''"value=' in the line:
Code:
<add key="PackageInQueue_SendAlert" value="value="E:\Monitoring Checks\PackageRunMonitor\LastEmailSentTimeStamp.txt" />
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|