Assembly path
Hi everyone,
I have a windows service project, that references the assembly from a web
project.
My problem is that on the production server, the service's directory path
points at the system32 folder, and not the folder where its own .exe fil is
located which would be the normal behavior.
This means that it cannot locate its config file, nor the dll from the
referenced assembly.
I can fix the config problem by loading the configuration explicit from a
hardcoded path (ugly).
The assembly is another matter though, and loading it into the GAC is not an
option. I could drop the referenced dll into the system32 folder, but that
is about as ugly as it gets.
I've made a number of services before that never had this problem and the
main difference here is the reference to an external dll.
Anyone have any idea how to "fix" the service's startup path?
Thank you, in advance!
- Jesper Rou / Creuna Denmark Tag: Web Service error Tag: 134279
Saving DataGridView Data
Hi
On a windows form i have a DataGridView and the required Table Adapter and
Bindource, when i add new rows to the grid and input data or update existing
data, the data is not getting saved to either MS Access Table of even in a
MS Sql Server database (i tried both).
what could be the problem.
TIA
Barry Tag: Web Service error Tag: 134278
Framework dependencies
An application of ours uses third party dlls and our own dlls.
Overall it works fine, if .NET frameworks 1.0, 1.1 and 2.0 are
installed.
If only framework 2 is installed, it is not working fine.
How do we find which DLL requires .NET framework 1.0 / 1.1 to run
properly. If there is a tool which will tell the .NET framework
version to be installed for a dll to run, it will help us to plan for
migration to framework 2.0 completely
Regards
NS Rajagopal Tag: Web Service error Tag: 134274
How do I derive a class from Socket class.
Can someone please show me how to derive my own class from the Socket class?
I want to be able to pass data from the created client socket to the
AcceptConnection handler in the Socket server class, but the Socket class
has no available data store that I can use.
Thanks in advance. Tag: Web Service error Tag: 134255
say 10 most important classes in framework
<sorry for my bad english>
hello, I am lerning (and working with) .net from some time
and I want you to enumerate to me 10 most important (most useful)
clasess
(classes to specialy good remembering by .net programmer)
from framework meybe without some obvious classes such as
fundamental types and collections - also I am not thinking for such
stright clases as most useful controls or IO clases etc ) I ve got a
eight examples
from my side - aplication, environment, process, control, form, timer,
component, container - could somebody assembly some list
for me. More lists better.
thanks
JS Tag: Web Service error Tag: 134249
Service installer fails on "repair" install
I have a VS Setup project for a C# Windows Service. In the Control Panel's
"Add/Remove Programs" applet, my service appears with a change button, which
when clicked gives an option to repair the install. If I do that, I get an
error message saying "The specified service already exists" and the install
fails. It seems like the repair install ought to be more forgiving. If
someone is repairing an install, stuff could be in some random state of
chaos, but if the service is fine, the repair will fail.
Similarly, I've noticed that if the uninstall successfully removes the
service but fails in some later step, rerunning the uninstall also won't
work. This time the uninstall is unhappy because you're trying to remove a
service that doesn't exist and the process fails again.
Is there some way for these scenarios to work in a more robust way? Tag: Web Service error Tag: 134241
WH_Keyboard
Hello,
Why does the WH_Keyboard hook intercept all keys as capital letters? for
example when I type "a" I get a 65 keycode (Virtual Key Code for A) in the
wParam of the filter function though I should have got 97 (Virtual Key Code
for a)
Thanks
Yehia A.Salam Tag: Web Service error Tag: 134239
No Error Message when .Net Configuration 1.1 Tool is open. Anyone understand?
So i am using this 3rd party API in one of my applications. Both the
DLL for the API and my executable sit on a network drive for everyone
to access. Therefore all of the machines in my company have code
groups set up to allow the application to run.
For a large majority of the 80 or so machines, this works beautifully.
I've identified 4 machines that give this error:
"Exception Occured. Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=nuetral, PublicKeyToken=b77wrfewreq34rfq
failed."
When comparing the code groups on the different machines, I see that
they are all the same. On the machines the application works, it works
100% of the time. On the machines it does not work, it fails 100% of
the time, aside from one case. When the .Net Configuration 1.1 Tool in
"Administrative Tools" is open, you do not get the error message. It's
as if having the tool open puts the machine into some other state and
allows my app to run properly. Then when I close the tool, i go back
to getting the error message.
Can anyone make any sense out of this and possibly suggest a solution?
Thanks,
Mike Tag: Web Service error Tag: 134236
extend gridview
I need to extend the griview control to add a button column and when
the button clicks, it will dynamic load a user control with the
gridview. Is this dorable, how hard this will be? Any suggestion is
highly appreciated! Tag: Web Service error Tag: 134232
Can Windows services be extended using .NET add-in model (System.AddIn)?
Hello,
Can the .NET add-in model (using System.AddIn and related assemblies)
be used to extend Windows services created using Visual Studio 2008
and the latest .NET framework?
Thanks,
Silvio Tag: Web Service error Tag: 134231
How to bind DependentProperty to current date
In WF, how to bind DependentProperty to current date in XAML?
I googled a lot but no result:(
zlf
Thanks Tag: Web Service error Tag: 134230
Framework XP
Hi all,
Is anyboby can explain me which are the main systems updates when you
install Framework on a Windows XP Workstation (Environement variables,
Dll, others ...) ?
Thanks a lot
nicolas Tag: Web Service error Tag: 134227
AJAX Problem. JavaScript not working if i push it to Updatepanel's content.
Hi all,
I am trying something using ASP.NET AJAX.
Using postback i am adding a JavaScript snippet and a DIV inside a
panel in UPdatePanel.The HTML is shown. The Javascript is written too.
But JavaScript is not working.
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Path="FusionCharts.js" />
</Scripts>
</asp:ScriptManager>
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<script language="javascript" type="text/javascript">
var XML="<chart/>";
</script>
<asp:Panel ID="p" runat="server" Height="262px"
Width="341px">
please click on the button</asp:Panel>
<asp:Button ID="Button1" runat="server"
OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server"
DisplayAfter="0">
<ProgressTemplate>
delay............................
</ProgressTemplate>
</asp:UpdateProgress>
</form>
<script language="javascript" type="text/javascript">
function pageLoad(){
alert($get('p').innerHTML);
}
</script>
</body>
</HTML>
---------------- CODE BEHIND --------------------
protected void Button1_Click(object sender, EventArgs e)
{
string str = "<div id='Update'>HI</div>";
str += "<script language='Javascript' type='text/
javascript'>document.getElementById('Update').innerHTML='latest
updated hiiiiiiiiiiii!!!';</script>";
System.Threading.Thread.Sleep(3000);
p.Controls.Add(new LiteralControl(str));
}
=================================================================
I am using the general ScriptManager coltrol and UpdatePanel that has
a PANEL having an id 'p'.
>From the server side postback i am changing this panel's HTML to
<div id='Update'>Hi</div><script language='Javascript' type='text/
javascript'> document.getElementById('Update').innerHTML='latest
updated hiiiiiiiiiiii!!!';</script>
I can see the div being parsed by the browser. But the <script> is not
taken care of by the browser.
PLease, please, please help me out of this.
Am i going wrong somewhere? IS there any way out?
Please help me.
- Arachnid Tag: Web Service error Tag: 134225
About drawing something on a Control.
i have added a Panel with size = (100, 100). Then i would like to draw
a Line on that Panel. So i write:
I write some codes on the OnPaint event of the Panel:
private void panel_Paint(...)
{
Graphics g = e.Graphics;
g.DrawLine(new Pen(Colors.Red, 6), new Point(0, 0), new Point(100,
100));
}
Then it can draw a line on the Panel, but when part of the Panel is
covered by other windows, the hope Panel will call OnPaint, and the
whole line will be redraw, is there any way to prevent it??Thanks Tag: Web Service error Tag: 134214
Strange .NET Runtime 2.0 error thrown in a WPF application
Has anyone seen a similar exception? This is a WPF application
installed via ClickOnce and we have one user who gets it consistently
on startup. We've also seen it occasionally while the applicaiton is
running. We've instrumented the application with exception handling in
most methods we have control over, but due to the nature of a WPF
application startup wiring (or our lack of knowledge), we haven't been
able to implement a 'catch all' handler, so we have no idea where this
is coming from.
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 10/4/2007
Time: 6:23:32 AM
User: N/A
Description:
EventType clr20r3, P1 ivory portal.exe, P2 1.0.2832.29459, P3
47043226, P4 presentationframework, P5 3.0.0.0, P6 45398c20, P7 6496,
P8 be, P9 system.windows.markup.xamlparse, P10 NIL. Tag: Web Service error Tag: 134208
FYI: .NET Source Code to Become Available
Hello,
for your information in case you didn't yet notice the news: Microsoft has
announced plans to give developers the ability to view .NET class library
source code. This is announced here:
http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx
Says the blog:
----------------
"...the ability for .NET developers to download and browse the source code
of the .NET Framework libraries, and to easily enable debugging support in
them. [...]
We'll begin by offering the source code (with source file comments included)
for the .NET Base Class Libraries (System, System.IO, System.Collections,
System.Configuration, System.Threading, System.Net, System.Security,
System.Runtime, System.Text, etc), ASP.NET (System.Web), Windows Forms
(System.Windows.Forms), ADO.NET (System.Data), XML (System.Xml), and WPF
(System.Windows). [...]
The source code will be released under the Microsoft Reference License
(MS-RL).
You'll be able to download the .NET Framework source libraries via a
standalone install (allowing you to use any text editor to browse it
locally). We will also provide integrated debugging support of it within VS
2008."
----------------
Sounds great to me!
Other posts related to this:
http://www.eweek.com/article2/0,1759,2191696,00.asp
http://www.regdeveloper.co.uk/2007/10/04/microsoft_dot_net_opensource_license/
--
Regards,
Mr. Jani Järvinen
C# MVP
Helsinki, Finland
janij@removethis.dystopia.fi
http://www.saunalahti.fi/janij/ Tag: Web Service error Tag: 134195
[WPF]: Tab Control and TabItem (focus?) woes....
Here is a XAML snippet (which would run in XAML Pad as well):
<TabControl>
<TabItem Header="One">
<TabControl>
<TabItem Header="OK">
<Button Content="OK"/>
</TabItem>
<TabItem Header="Not OK">
<Button Content="Not OK"/>
</TabItem>
</TabControl>
</TabItem>
<TabItem Header="Two">
<TabControl>
<TabControl.Template>
<ControlTemplate TargetType="{x:Type TabControl}">
<Grid KeyboardNavigation.TabNavigation="Local"
SnapsToDevicePixels="true" ClipToBounds="true">
<Grid.RowDefinitions>
<RowDefinition Name="RowDefinition0"
Height="Auto" />
<RowDefinition Name="RowDefinition1" Height="*"
/>
</Grid.RowDefinitions>
<DockPanel>
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal"
Name="HeaderPanel" ZIndex="1" KeyboardNavigation.TabIndex="1"
IsItemsHost="true" />
<Label Content="Something" />
</DockPanel>
<ContentPresenter Name="PART_SelectedContentHost"
Grid.Column="0" Grid.Row="1" SnapsToDevicePixels="{TemplateBinding
SnapsToDevicePixels}" Margin="{TemplateBinding Padding}"
ContentSource="SelectedContent" />
</Grid>
</ControlTemplate>
</TabControl.Template>
<TabItem Header="Apple">
<Button Content="One Apple a day, keep the doctors away"/>
</TabItem>
<TabItem Header="Carrot">
<Button Content="One carrot a day, ho well, nothing special"/>
</TabItem>
</TabControl>
</TabItem>
</TabControl>
Where every time you select the TabItem "Two" (in the toplevel tab) the
inner TabControl would change its selected item.
(every second time it will be "Apple" every other second time it will be
"Carrot")
Why does the inner tab changes?
How to work around this bug? Tag: Web Service error Tag: 134194
changing drive letters esp c:\
i tried to do an uograde from svr00 to svr03, i have a 3 phys hd (ide)
2 drives on a stripe (sata) and 2 scsi drives striped, now my boot.ini is
right
0/0/0/1, but it shows as my d (letter) drive, can i swap c and d?
--
rf Tag: Web Service error Tag: 134191
Embedded file to clipboard
Hi,
I have a file which I would like to put on the clipboard so that when it is
pasted in Word or WordPad the file appears as an embedded file. I can use
the RichTextBox to generate RichText with different formatting, add it to
the clipboard, and it appears fine when inserted in Word but I can't find
any methods
that allow me to insert an embedded file. Is there any way to do this?
/Andreas Tag: Web Service error Tag: 134172
Toolstrip and MDI application
I am trying to get write an MDI application running using the ToolStrip
control(s).
I have the application running with types of two form. Each form represents
a type of document. Each has its own custom menus and toolbars. The MDI
application runs up and I create new documents of each type. When a form is
activated, dot net merges the menus and the app I merge in the toolbars
using RevertMerge and Merge.
One of my forms has about 6 toolbars, the other has 2. When I switch between
the two document type, the toolbars change position; I activate form1, move
the toolbars using the mouse, activate form2, then switch back to form1- the
toolbars have moved.
I am also having problems saving and restoring the positions of the toolbars
using ToolStripManager.LoadSettings and ToolStripManager.SaveSettings. This
showing the same behaviour (although it may be caused simply by switching
between the windows).
Has anyone successfully implemented an MDI app using these controls?
I have a test app if anyone would like to see it - where the best place to
post it?
Paul Wardle Tag: Web Service error Tag: 134152
How to call C# callbacks from C++/CLI?
Hi,
Tried searching Google on this topic but not many came up. Basically I
have a C# GUI client that wants to receive 'notifications' from a worker DLL
(which is implemented in C++/CLI). So far, from C# I am able to call any
method directly in C++/CLI DLL. But I would like to have the C++/CLI invoke
some callback methods from within C# (some event notifications so that the
GUI updates its UI).
In the old days using C/C++, I could do this easily by passing a class
object ptr to the DLL and have it invoke callback methods declared in that
class. Can I do the same thing in .NET? Since there is no header file, I
don't know how to 'tell' the C++/CLI component which C# callback methods to
use. Thanks. Tag: Web Service error Tag: 134148
Fatal Execuation Error - any workarounds available? or help debugg
We have a .NET application using Windows Forms. This application terminates
unexpectedly once or twice a day for our customers. The following entry is
listed in the event log:
.NET Runtime version 2.0.50727.832 - Fatal Execution Engine Error (7A0592A2)
(80131506)
This problem appears to have started recently in the past 1 or 2 months. Is
this a known issue, and if so, are there any workarounds?
I am really at a loss as to how to deal with this problem.
How do you suggest I go about debugging or troubleshooting this issue? Tag: Web Service error Tag: 134147
If you want do delete your site from our spam bases -
If you want do delete your site from our spam bases - just email us with domain of your site:
abuse-here@inbox.ru
thank you!,If you want do delete your site from our spam bases - just email us with domain of your site:
abuse-here@inbox.ru
thank you!,If you want do delete your site from our spam bases - just email us with domain of your site:
abuse-here@inbox.ru
thank you! Tag: Web Service error Tag: 134138
Using a Broadcast message on an intranet
Hi:
I need a way to make sure that only one instance of a program is running
on a particular intranet. I thought that some kind of Broadcast message
might do the trick, or maybe a UDP query. I'm using a WinForms
application on .NET 2.0
Can anyone help me with this?
TIA,
Martin. Tag: Web Service error Tag: 134137
Updates to .NET Framework 3.0
Hi
I have installed the 3.0 version on all clients in the network managed by
WSUS.
On just one client the
- KB932394
- KB932471
patches just don't install. They are offered over and over again and always
quit installing with error.
I have tried to reinstall NET Framework 3.0 but it did not help.
Someone an idea?
Thanks, Franz Tag: Web Service error Tag: 134134
ReplacerStream
Hi,
I need to use a stream that I can configur to replace some input
string with another. It is probably not very difficult to do but I
can't imagine that this has not been written dozens of times before.
However I can't find something like it on the internet. Does anyone
know of such an example or has code? Or should I be creating an
impelementation of TextWriter/Reader in stead of of Stream?
Regards,
Henk Tag: Web Service error Tag: 134132
XAML, dynamically created RadioButton, and WordWrap?
I have an app that presents a variable number of radio buttons (with
variable text) that are created dynamically on a HeaderedItemsControl. As
far as I can tell, the RadioButton doesn't supports (word or otherwise)
wrapping, but will present multiple lines of text, so I could implement word
wrapping by inserting NewLine(s) if I could just determine how wide my text
is... It is occasionally too wide for a single line, and could
theoretically be several lines.
I would *really* like to do this when I create the controls and assign the
texts and handlers (this is after the window has been shown), but while I
can get the initial DesiredSize AND the first iteration after that, it seems
I can't get there from here: It won't tell me the size until the layout is
final - but the layout won't be final until I know the size of my display
text.
What can I do (.Net 2.0 w/FW 3.0, VB preferred, but except for some
differences in threading and delegates, I can deal with C#)?
TIA,
Tore Tag: Web Service error Tag: 134127
Bug using ISurrogateSelector
Hi All,
The bug discussed here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=194553&SiteID=1
And reported here:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=93814
It says fixed. Does anyone know where to get the fixed? Or any workarounds?
Thank you.
Regards,
Paul Tham Tag: Web Service error Tag: 134125
Accessing UNC file share with credentials?
From a .NET 1.1 app: need to access a file share on a remote server by
its UNC path, i.e., \\server\folder\subfolder\, using specific
username and password.
The problem is that the credentials are local to the remote server.
Therefore, impersonating that user when accessing the share is not
possible.
One solution is to map a network drive using the credentials, but it
seems kind of ugly and old school.
Is there any other way?
Thanks! Tag: Web Service error Tag: 134121
SMTP Email Not Working from Application_Error handler in ASP.NET 2
I have an ASP.NET 2.0 Web Application. I am trying to send an email to
myself from Global.asax in the Application_Error event handler. I have been
able to successfully send emails from the rest of the application using the
exact same logic. For some reason, it does not work in global.asax. I get a
"Failure Sending Mail" error message with a more detailed explanation of
"Unable to read data from the transport connection: An existing connection
was forcibly closed by the remote host.". This is in a hosted environment,
and it IS working for other pages in the app (making me think I need to do
something different in the Application_Error function).
I get this problem any time an error is thrown within the application and
the Application_Error event handler is called. I have a site in production,
and to test the error handling in production, I have created a button with an
event handler that when clicked will throw an exception. I have tested it by
adding "throw new ApplicationException("This is a test exception being
thrown...");" and by throwing a named exception "throw new
DivideByZeroException();". It seems as if in the Application_Error function
the network connection is in an unstable condition.
I am using the System.Net.Mail class. Below is my code and the detailed
error (notice I have some general information stored in web.config which is
pasted below as well):
GLOBAL.ASAX
--------------------------------------------------------
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
Exception ex = Server.GetLastError();
string strEmailAddressTo = "myemail@test.com";
string strEmailAddressFrom = "myemail@test.com";
string ErrorMessage = ex.Message +
"\nSOURCE: " + ex.Source +
"\nFORM: " + Request.Form.ToString() +
"\nQUERYSTRING: " +
Request.QueryString.ToString() +
"\nTARGETSITE: " + ex.TargetSite +
"\nSTACKTRACE: " + ex.StackTrace;
//1) Create the mail message instance
MailMessage mm = new MailMessage(strEmailAddressFrom,
strEmailAddressTo);
//2) Assign the Mail Message's Properties
// Subject
mm.Subject = "ERROR OCCURRED";
//3) Body
mm.Body = ErrorMessage.ToString();
mm.IsBodyHtml = false;
//4) Create the SMTP Client Object
SmtpClient smtp = new SmtpClient();
//5) Send the mail message (will use the web.config settings)
smtp.Send(mm);
}
web.config
------------------------------------------------------------
<system.net>
<mailSettings>
<smtp>
<network host="[mynetworkHost]" port="25" />
</smtp>
</mailSettings>
</system.net>
DETAILED ERROR MESSAGE:
-------------------------------------------------------------
<ExceptionInformation><AdditionalInformationProperty
ExceptionManager.MachineName="XXXXX" ExceptionManager.TimeStamp="10/2/2007
1:32:25 AM"
ExceptionManager.FullName="Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.2830.35366, Culture=neutral, PublicKeyToken=null"
ExceptionManager.AppDomainName="/LM/w3svc/814863/root-11-128357766911129800"
ExceptionManager.ThreadIdentity="" ExceptionManager.WindowsIdentity="NT
AUTHORITY\NETWORK SERVICE" /><Exception
ExceptionType="System.Net.Mail.SmtpException" StatusCode="GeneralFailure"
Message="Failure sending mail."
Data="System.Collections.ListDictionaryInternal" TargetSite="Void
Send(System.Net.Mail.MailMessage)" Source="System"><StackTrace> at
System.Net.Mail.SmtpClient.Send(MailMessage message)
in \\[webpath]\web\Global.asax:line 101</StackTrace><Exception
ExceptionType="System.IO.IOException" Message="Unable to read data from the
transport connection: An existing connection was forcibly closed by the
remote host." Data="System.Collections.ListDictionaryInternal"
TargetSite="Int32 Read(Byte[], Int32, Int32)" Source="System"><StackTrace>
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32
size)
at System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32
count)
at System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32
count)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader
caller, Boolean oneLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
at System.Net.Mail.SmtpReplyReader.ReadLine()
at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
at System.Net.Mail.DataStopCommand.Send(SmtpConnection conn)
at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
at System.Net.ClosableStream.Close()
at System.Net.Mail.MailWriter.Close()
at System.Net.Mail.SmtpClient.Send(MailMessage
message)</StackTrace><Exception
ExceptionType="System.Net.Sockets.SocketException" ErrorCode="10054"
SocketErrorCode="ConnectionReset" NativeErrorCode="10054" Message="An
existing connection was forcibly closed by the remote host"
Data="System.Collections.ListDictionaryInternal" TargetSite="Int32
Receive(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)"
Source="System"><StackTrace> at System.Net.Sockets.Socket.Receive(Byte[]
buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset,
Int32
size)</StackTrace></Exception></Exception></Exception></ExceptionInformation>
--
PK9
--
PK9 Tag: Web Service error Tag: 134118
Data structure with an insert after element method?
I'm sort of new to .NET, and was wondering if there was any kind of
dynamic data structure that allowed one to add an element after a
specified element (and therefore update the array index)?
I was looking at ArrayList, but I didn't see any such methods for this. Tag: Web Service error Tag: 134117
Can I install v2 without v1.1? (XP Pro)
I am running XP Pro/SP2.
I recently had dotNet Framework v1.1 and v2 but an update error on v2
meant I had to uninstall both of them.
http://support.microsoft.com/kb/923100/
Can I now install only v2?
Or should I install v1.1 first and then the hotfixes for v1.1? Tag: Web Service error Tag: 134116
3.0 NET Framework
Can someone give me an installation checklist of what needs to be installed
(and in what order - if applicable) into a system that already has VS 2005
Pro., so that .NET 3.0 features can be used within VS 2005 (WF, WPF, WCF)?
Also, I need to know what is needed to work with the Enterprise Library 3.1
(besides the library instal itself), if anything.
Thanks! Tag: Web Service error Tag: 134110
Can we print files directly?
Hello, friends,
In our c#.net windows app, we want to print document (.jpg, .doc, .xls,
etc.) to the selected printer without opening the corresponding app, e.g.
MSPaint for .jpg or Word for .doc.
Is that possible to do this way? Thanks. Tag: Web Service error Tag: 134104
Registering a COM Dll with an MSI
I'm creating an installer for a project that I've created. My project is a
Managed C++ 2005 project, and it compiles out to a COM Dll. I need to
register this COM Dll in order for the final product to function properly.
Initially I tried registering the Project Output, but I understand that there
are issues with doing that, so I have excluded the Primary Output for my
project, and I have added the dll from my Release folder directly. In the
properties for my Dll I have set the Register property to
vsdraCOMReleativePath, but I have also tried vsdraCOM, in both cases the dll
does not register on the target machine. If I run regsvr32 on the target
machine my dll will register and the application will work. Does anyone have
any suggestions on how to get this work correctly. I appreciate any help.
I should also probably point out that I did not remove the Primary Output,
because I like how the MSI project will automatically determine the
dependencies if the Primary Output is with the MSI. I only excluded the
Primary Output. Tag: Web Service error Tag: 134101
Framework 3.5 mailMessage serializable.
I have to rewrite an email archiving application. I was wondering if in .net
3.0 or 3.5 whether the mailMessage was serializable. I know in 2.0 it is not. Tag: Web Service error Tag: 134099
Binary editor
Hi group,
In VS2005, when you open a binary file, you can use the binar editor.
So you can see for each adress (in Hexa) the 16 bytes in Hexa and the
same 16 bytes in ascii. When you select some bytes in hexa it select
also the same bytes in ASCII.
Is there any .Net Control doing the same ?
I can't found it !
ROM. Tag: Web Service error Tag: 134098
Where's the version info?
I am having a problem with version information in one of my compact
framework 2.0 VB.Net application which I am designing in Visual Studio
2005. After I compile the executable there is no version information
available when viewing the file's properties in Windows.
All my other projects have version information which is visible in
Windows but I can't see any difference between these other projects
and the one in question.
Any ideas? Tag: Web Service error Tag: 134083
What is the difference between Dispose and close methods.
Hi all,
I am a bit confused about dispose and close methods. I will be glad if
anyone explain the difference between them to me. Do they have relation with
finalize method.
Thanks
Bhuwan Tag: Web Service error Tag: 134080
process::GetProcessesByName and process::kill combination not working
Am writing a console program that closes a particular application and
restarts it every time interval
Now my problem is the first time around it works fine but
from the second time it just doesnt do any thing
void ppstop()
{int i;
Process* localByName2[] = Process::GetProcessesByName(S"iexplore");
i=0;
if(localByName2->Length!=0){
while(i<=localByName2->Length) {
if(localByName2->Length!=i){
localByName2[i]->Kill();
localByName2[i]->Dispose();
i++;
Console::WriteLine(S"Killing perl");}
}
}
}
this is called from a loop that call this very 10 minutes so closses
all IE windows first time it works fine from the second time nothing
happens
do i need to do some thing like clear the instance i got or i dont
know even if we try another process the second time around it wont
work
what am i doing wrong here
thanking you in advance
Vysakh Tag: Web Service error Tag: 134079
.net framework version, visual studio '03
I am developing in VS '03. I have all of the current framework
versions installed on my PC, 1.1, 2.0, and 3.0.
How can I make sure the code I am developing in is using the 3.0
framework version? Or do I need to be using the latest version of
Visual Studio to do so?
Thanks,
Jason Tag: Web Service error Tag: 134070
How can I get exact digits of a decimal value
Hi;
I store decimal values in ms sql server 2005 of type decimal (28,14). When I
try to get values from that field, for example "566.68015492220000000" with
the code
string temp=myReader["total"].ToString();
I get the value "566.68010000000000000", I mean I get the value with only
few digits of precision.
What should I do to get the exact value from db?
Thanks a lot... Tag: Web Service error Tag: 134062
Web based timesheet in $100 (unlimited users)
LiveTecs releases 2.3 suite of its Enterprise software
http://www.livetecs.com
(Source code : available)
TimeLive Web Collaboration Suite is an integrated suite that allows you to
manage project life cycle including tasks, issues, timesheet, billing,
expense, attendance.
TimeLive is available in two different flavors. Hosted version and
downloadable version. Downloadable version required certain system
requirement to install on local server. Whereas hosted version is already
installed on our fully managed server on state of art datacenter.
Free Lite version is available in both hosted and installable version.
Here are some key features of "TimeLive":
Online TimeSheet·
-------------------
· Track your contractor and employee's timesheet using full featured and
easy to use Time Entry tool. You can then use detailed and summarized view
of all time records using different tools.
· Time Entry Day View for entering full day timesheet in just one server
hit.
· Time Entry Week View for entering full week timesheet in just one server
hit.
· Organization setup like Departments, Locations, Roles
· Different type of Off day monitoring like Sick Days, Vacations etc.
· Client Setup
· Project Setup
· Task setup with multiple assignees for single task.
· Audit Trail
· EMail notification of different timesheet related activities to users.
· Different billing type setup like Hourly / Task based / Call based
· Timesheet approval
· Four Timesheet Approval Paths (None,Administrator,Project,TeamLead)
· Reports with all possible filter selection to get your required output.
· Detail Timesheet Report
· Different timesheet summary reports for based on Client, Project,
Employee, Date
· Timesheet Approval status report
· Reminders to employee for their pending entries.
. Role wise billing rates.
Attendance
------------
· Web based Attendance system to record and monitor all employee attendance
using simple / fully featured tool.
· Time In
· Time Out
· Off Day reporting for different purpose like Sick leave, vacation etc
· Working Day setup
· Daily Attendance report
· Summary reports for employee off days to track employee Sick
leave,vacation etc.
· Detail report employee off days.
Expenses Tracking
------------------
· Manage and monitor your project expenses with easy to use integrated
TimeLive Expense management tools.
· Expense entry view for employee to enter their expenses occurred on
project.
· Billable / Unbillable expenses.
· Detail Reports for monitoring expenses
· Different summarize report by Project / Employee / Expenses.
· Approval of Expenses with 4 different confiurable approval paths.
· -- No Approval
· -- Team Lead
· -- Team Lead --> Project Manager
· -- Team Lead --> Project Manager --> Administrator.
· Expenses approval monitoring.
Project Monitoring
---------------------
· Full featured tool to manage your projects and their task with single
integrated tool.
· Nested Task with task hierarchy.
· Tracking of project status
· Assigning of projects to multiple employee
· Tracking of project tasks
· Different dashboard view for Project Manager, Team Lead and Team Member.
· Different report to track and monitor overall project status.
Other Features
----------------
· Exportable reports in PDF and XLS file.
· Downloadable / Hosted version
· Free basic version
· Unlimited disk space for all plans
. International date formats supported.
. Role based security.
. Multiple currency support. Tag: Web Service error Tag: 134057
Differing XML Schemas?
If I use the Dataset.WriteXml for my datasets from a windows
application running under the framework v1.1 the schema written to the
text files sometimes differs from that of the same dataset written
from a WebService. Both projects use the same library to generate the
dataset and write it to file.
When the windows application writes the file it contains
msdata:locale=enGB but this tags is missing when the file is generated
by the WebService. Also this behaviour only happens at some sites
where our software is installed. My development PC doesn't experience
this problem.
Any ideas?
Cheers, Gareth Tag: Web Service error Tag: 134056
.NET code compiled as Any CPU. Want to run as 32-bit on x64.
Hi,
I have some .NET 2.0 code that's been built targeting "Any CPU". On an
x64 box I need to force this to run in x86 mode under WOW64 *without*
recompiling the application . (i.e. as if the code had been compiled
targeting x86.)
Is this possible - if so, how?
(Apologies if this is not the correct group - feel free to direct me
somewhere else)
Many thanks,
Matt Tag: Web Service error Tag: 134049
Collections od KEYS only : BOOLEAN VS OBJECT, False Vs Null/Nothing
In a previous question I asked if there were collections
similar to SortedList or Dictionary which would hold KEYS only, No
values.
It seems that the framework does not have such "reduced" collections,
but one can use
the standard one, adding as value a Null/Nothing value or a boolean
(of creating a collection
by inheritance).
I am wondering what is most advisable to use as type for the values:
Boolean or Object ?
For instance:
C#
SortedList<MyKey, bool> MyListB = new SortedList<MyKey, bool>();
MyListB.add(new MyKey(), false);
or
SortedList<MyKey, object> MyListO = new SortedList<MyKey, object>();
MyListO.add(new MyKey(), null);
VB
dim MyListB as new SortedList(of MyKey, Boolean)
MyListB.add(New MyKey, false)
or
dim MyListO as new SortedList(of MyKey, Object)
MyListO.add(New MyKey, Nothing)
I am wondering if using a value type (boolean) instead of a reference
type
would be more inefficient ? Your opinion ?
-P Tag: Web Service error Tag: 134048
Hi, i have an error when i lunch my Web Service: the error is:" the
'type' attribute must be set to a valid type name.".
someone have an idea?