Help! What is wrong here ?
I am trying to pass a filename or file location to a stored proc and am
getting an SqlException. I am using C# in .NET with SQL 2000. I
believe the error is in the line where I set the value but then again what
do I know?
Here is part of my code:
SqlCommand myCommand = new SqlCommand("sp_test", myConnection);
myCommand.CommandType = CommandType.StoredProcedure;
SqlParameter myParam = new SqlParameter("@xmlFile", SqlDbType.Text, 1000);
myParam.value = "c:\\test.xml";
myCommand.Parameters.Add(myParam);
myConnection.Open();
try {
myCommand.ExecuteNonQuery();
etc etc
It gets an error at the above execution point with the error:
SqlException: System.Data.SqlClient.SqlError: XML Parsing error: Invalid at
the top level of the document.
I think I need to give it some command where I specify the value to say find
the location of the file......
Why is is so difficult to pass a filename or location of file to a SPROC ?
Please help!
LW Tag: New Website Covering .Net Technologies Tag: 95128
plugging into the explorer shell
hi all,
would appreciate if somebody can show me how to write a module in .NET (C#)
to plug into the file explorer shell.
how do i add a "node" similar to the "control panel" in the file explorer ?
thanks, Tag: New Website Covering .Net Technologies Tag: 95124
Regular expression captures
Hi,
From the following string I would like to capture text.
String: This action has been executed via Console
First of all I like to know if this is the text I need: it must contain
"This action has been executed via".
Secondly I would like to know "Console"
How can Regular expressions help me in this. I've tried various things with
the RegEx class but I'm having troubles retrieving "Console". The
match.Captures collection always seems to contain the string searched, not
only the captured part.
RegEx r = RegEx( "This action has been executed", RegExOptions.IgnoreCase)
if (r.Matches( myString).Count > 0)
{
Here matches are found and r.Matches[0].Captures.Count > 0.
Why is ...Captures.Count > 0, I did ask for a capture?
}
RegEx q = RegEx( "(C\w+)", RegExOptions.IgnoreCase)
if (q.Matches( myString).Count > 0)
{
Here matches are found and r.Matches[0].Captures.Count > 0.
This is where I expected the capture!!
}
regards,
Erik Tag: New Website Covering .Net Technologies Tag: 95118
How to tell if running in console or winexe mode?
Is there anyway to tell from within your code, either at compile-time or
run-time your assembly is running as a console app (exe) or windows gui
app (winexe)?
I wanted to for example create simple beep() and msgbox() functions that
work differently in either mode. Tag: New Website Covering .Net Technologies Tag: 95109
CurrentContext to set a variable value in a function or class
Dear All,
We are developing a Windows application where programmers write sql
statement and pass their variables in a : separated format to my
function...after executing the query...my class should set the
variables to its values...how do I achieve this? Can I use
thread.CurrentContext? Do all my classes need to be derived from
ContextBoundObject?
f.e.x.
class SqlHandle
{
public bool executeQuery (Context oContext, string Sql)
{
...
}
}
class myForm
{
public getValues()
{
string name = "";
int age = 0;
SqlHandle oSqlHandle = new SqlHandle();
oSqlHandle.executeQuery(thread.CurrentContext, "Select Name, age
FROM TblPerson INTO :name, :age;");
}
}
How do I achieve this functionality? Please help...
TALIA
Many regards
Jack Tag: New Website Covering .Net Technologies Tag: 95106
Code isolation with the AppDomain class
I am responsible for the plugin-loading part of an app. One of the
things the loader has to do is check licensing, and unload any
unlicensed plugins.
I naively did this as:
AppDomain Sandbox = AppDomain.CreateDomain("Sandbox");
try
{
Assembly Suspect = Sandbox.Load(PluginName);
// do some tests on Suspect.GetExportedTypes()
}
finally
{
AppDomain.Unload(Sandbox);
}
The code seemed to work, but it turns out that
Sandbox.Load(PluginName) is actually loading the PluginName into both
the Sandbox AppDomain and the default AppDomain. When I unload
Sandbox, I'm left with all tested plugins still loaded into the
default AppDomain, whether they are licensed or not.
I do NOT want to execute any assemblies: I just want to load my
suspects; do some tests in the temp AppDomain; and return the test
results to the default AppDomain.
It looks like my only option is to use AppDomain.DoCallBack to execute
my tests, and use SetData to store the results. Is there a better way?
--
www.midnightbeach.com Tag: New Website Covering .Net Technologies Tag: 95100
Removing .NET Framework 1.0
Can .NET Framework 1.0 and Hotfix 1.0 be removed from the Control Panel
after 1.1 and 1.1 hotfix have been installed?
Are there any things to watch out for if/when you uninstall 1.0?
Howard H. Tag: New Website Covering .Net Technologies Tag: 95096
XP Burn - Corrupted Files
Hello Fellow Coders,
I am trying to use the free XPBurn assembly from the Microsoft website.
After ironing a few bugs out, I finally got it write to a CD. However, all
the files appear to be corrupt. The executables that were burned are not
valid Win32 applications, the text files appear like binary data has been
written to them.
I have noticed in the posts that a few of you have managed to get it to
work. Did you come across this problem? If so, how do you fix it?
L. Tag: New Website Covering .Net Technologies Tag: 95087
Finding types inside a method body dynamically
How to find types referenced inside a method body dynamically in .Net.
I mean If I have a class "A" and it has a method "Method1". "Method1"
references object of class "B" (i.e there is an object created for Class "B"
in "Method1".). Hod do I find out the object of Class "B" in "Method1"
dynamically in .net Tag: New Website Covering .Net Technologies Tag: 95077
Passing XML FileName to a Stored Proc
I have created a stored procedure to use OPENXML to update my SQL2000
database using an external XML file.
What I need help on is:
How to pass the XML file as a parameter to the stored procedure.
Do I call SqlParameter ? If yes, besides the file name, it wants to know
the dbType and size.
Can someone post the C# code to do that ?
Thanks in advance,
LW Tag: New Website Covering .Net Technologies Tag: 95073
Updating Service Installers
This is a question from the automated practice test that comes with the
Micrsoft MCSD boxed set of books. I think it's wrong.
You create a Windows Service that connects to a SQL Server data source
when a user logs on. You find that because of network problems the
client application disconnects from the data source. You need to change
the Windows Service so that it checks the connection every five minutes
and reconnects to the data source if the connection is broken. You need
to add this functionality to the Windows Service, so you uninstall the
service add the functionality. You then rebuild and reinstall the
service. However, when you run the service, you cannot see the newly
added functionality. Which of the following tasks should you perform to
view the new functionality? (Choose one correct option.)
1) Update the existing installers, and then rebuild the service
application.
2) Debug the service, and find out why you cannot view the
functionality.
3) Remove the existing installers, add new installers, and then rebuild
the service aplication.
4) Verify the permissions for the security context, and then rebuild
the service application.
Answer: 3 (???)
What does removing the installers do? If you look at the code in the
studio-generated installers, it just consists of basic properties like
the service name and the account. Why would removing the installers and
adding identical installers have any impact at all? Tag: New Website Covering .Net Technologies Tag: 95072
.NET SP1 messed up...
Hi...
I recently installed .NET1.1 SP1 from the windows update website (this
cannot be uninstalled). Also installed MS Installer 3.1, which I uninstalled
now, after facing problems in VStudio. This is what happened:
I had a solution with several projects and a setup project. After installing
.NET1.1 SP1, whenever I start to 'Build' the setup project, it stops after
the first line:
<i>------ Starting pre-build validation for project 'Setup' ------
------ Pre-build validation for project 'Setup' completed ------
------ Build started: Project: Setup, Configuration: Debug ------
Building file 'C:\...\Visual Studio
Projects\Project1\Setup\Debug\Setup.msi'...</i>
Then MSIEXEC.EXE shows up in the task manager process list - It now comes up
with a dialog saying it is looking for VS .NET 2003 installation vs_setup.msi
file. I have to cancel out of this dialog so the 'Build' can proceed.
However, this problem remains even after I uninstalled MS Installer 3.1. So
something must be wrong with SP1. Anybody knows about any problems with
.NET1.1 SP1? Is there a fix for this? Can I get rid of SP1 if I reinstall
.NET1.1?
TIA
Dumbo DotNet Tag: New Website Covering .Net Technologies Tag: 95063
Error executing child request
Hi,
I am transferring control to an asp page and thats when I get this error...
myasp.aspx....
Server.Transfer("xyz.asp")
any clue? Tag: New Website Covering .Net Technologies Tag: 95060
.Net framework installed hotfixes
How can I determine which hotfixes are installed for a specific version of
the .Net Framework? Tag: New Website Covering .Net Technologies Tag: 95054
Re-installing .netframework on Windows 2000 Server SP4
Removed the .netframework to clear up issues caused by installing IIS over
top. I tried re-installing manually and via windows update and receive this
error in the windows update log:
Error IUENGINE See iuhist.xml for details: Install finished (Error
0x80071FFF)
iuhist.xml:
<installStatus value= "FAILED" needsReboot="1" errorCode="-2147016705"/>
Does anyone have any ideas? Tag: New Website Covering .Net Technologies Tag: 95052
How to start ASP.NET web server?
I get this message in VS.NET when opening an ASP.NET web application that
was created on another machine:
VS.NET has detected that the specific web server is not running ASP.NET
v1.1. You will be unable to run ASP.NET web applications or services.
The ASP.NET State Service is running but I receive this error when starting
the ASP.NET Admin Service:
Could not start the ASP.NET Admin Service service on Local Computer.
Error 2: The system cannot find the file specified.
Any idea how I get the web server going that allows aspx pages to render?
Thanks,
Brett Tag: New Website Covering .Net Technologies Tag: 95048
GC, Should I care?
I am trying to track a suspected memory leak in an application I'm writing
and through repeated simplification of my project, I have found the
following which is quite easily replicated should you be prepared to give
me
5 minutes of your time...
Create a new C# (Probably the same in VB dotNET but I've not tried it)
Windows application with 2 forms, the default form -Form1 and one other
one.
that has a bunch of controls on it (say 20 buttons, 20 labels and a
DataGrid) - Form2.
On the default form, add a button to display the second form with some code
like:
private void button1_Click(object sender, System.EventArgs e)
{
using (form2 formTwo = new form2())
{
form2.ShowDialog();
}
}
also on Form1 add a label, and a timer that updates the label text as
follows (updates every 5 seconds -Interval = 5000-):
private void timer1_Tick(object sender, System.EventArgs e)
{
label1.Text = GC.GetTotalMemory(False);
}
and finally a button that forces a Garbage Collection:
private button2_Click(object sender, System.EventArgs e)
{
GC.Collect();
}
OK, my question/query is this, if I repeatedly click the button to open the
second form, then close the second form, click the button, close the form
etc. about 20-30 times, the display of GetTotalMemory seems to keep going
up, and even after forcing Garbage Collections, never seems to get fully
reclaimed. Should I care? and if I should, what (if anything) can I do
about
it?
I would really appreciate an answer from someone who understands these
things...
Thanks a lot,
Chris. Tag: New Website Covering .Net Technologies Tag: 95040
GC, Should I care?
Hi,
I am trying to track a suspected memory leak in an application I'm writing
and through repeated simplification of my project, I have found the
following which is quite easily replicated should you be prepared to give me
5 minutes of your time...
Create a new C# (Probably the same in VB dotNET but I've not tried it)
Windows application with 2 forms, the default form -Form1 and one other one.
that has a bunch of controls on it (say 20 buttons, 20 labels and a
DataGrid) - Form2.
On the default form, add a button to display the second form with some code
like:
private void button1_Click(object sender, System.EventArgs e)
{
using (form2 formTwo = new form2())
{
form2.ShowDialog();
}
}
also on Form1 add a label, and a timer that updates the label text as
follows (updates every 5 seconds -Interval = 5000-):
private void timer1_Tick(object sender, System.EventArgs e)
{
label1.Text = GC.GetTotalMemory(False);
}
and finally a button that forces a Garbage Collection:
private button2_Click(object sender, System.EventArgs e)
{
GC.Collect();
}
OK, my question/query is this, if I repeatedly click the button to open the
second form, then close the second form, click the button, close the form
etc. about 20-30 times, the display of GetTotalMemory seems to keep going
up, and even after forcing Garbage Collections, never seems to get fully
reclaimed. Should I care? and if I should, what (if anything) can I do about
it?
I would really appreciate an answer from someone who understands these
things...
Thanks a lot,
Chris. Tag: New Website Covering .Net Technologies Tag: 95039
Start Up
Hi,
Im not sure if im posting in the right place , here is the problem , I have
some code (written in .net) that is started up when the PC starts and runs
forms full screen with no borders. The problem is that, the program is
hooked up to a wireless network to the server, but if my program is loaded
at startup the wifi network doesnt connect, meaning that the program cant
get access to the server.
If the program is taken out of startup and loaded manually, the wireless
network has enough time to connect and everyhting is fine.
What im hoping is that there is some way of delaying the load on startup or
any other work around for this
Thanks Tag: New Website Covering .Net Technologies Tag: 95037
What does this mean? (nested abstracts...)
One of my friends asked if the followings have any meanings?
'-------------
Public Interface IRenderable
Sub Render()
MustInherit Class Engine
MustOverride Sub TurnOn()
Interface IAutomatic
Sub Start()
End Interface
End Class
End Interface
Public Class RenderMan
Inherits IRenderable.Engine
Implements IRenderable, IRenderable.Engine.IAutomatic
Public Sub Render() Implements IRenderable.Render
'Code for implementation
End Sub
Public Sub Start() Implements IRenderable.Engine.IAutomatic.Start
'Code for implementation
End Sub
Public Overrides Sub TurnOn()
'Code for implementation
End Sub
End Class
'-------------
Does this all comply with the specification of OOP? Just curious... Tag: New Website Covering .Net Technologies Tag: 95036
Transpose Dataset?
Hi,
I have an aspx page that queries and displays data from an Excel file.
However, the entries inside this Excel file are in columns instead of rows.
Is there anyway I can "transpose" the dataset with ASP.Net?
I know I can transpose the Excel file before uploading it, but I'd just like
to find out if it can be done in ASP.Net.
Thank you.
Regards,
WB Tag: New Website Covering .Net Technologies Tag: 95035
sql2comega & System Tables
Hi,
Does anybody know how to generate (sql2comega.exe) wrapper DLL for System
tables (for example for sysobjects) ?
--
Thanks,
Maxim Tag: New Website Covering .Net Technologies Tag: 95027
Is there a max limit on the number of Managed Windows Services that can be run on Win 2000 server?
We have a situation where we keep hitting below error 1053
The .......... service failed to start due to the following error:
The service did not respond to the start or control request in a timely
fashion.
whenever we try to start managed windows service above a specific number.
On one server (SERVER1) it is 25, on another (SERVER2) it is 27. There are
9 different services, each 9 constitutes a release version.
Were are trying to use the same server to handle multiple versions, however,
we have
this limitation where we can only get a max of 3 sites (3 x 9services) at
best running.
It does not matter which services are running, when we reach this limit no
other
managed service will start. If I stop one, I can start another. I don't
believe it is
a licensing issue, we do use Crystal however, the same issue occurs if I do
not start
those services that use the Crystal dll's.
The environment is Windows 2000 server. Framework is 1.0.
Any help on this is much appreciated.
Rgds
Yucel Tag: New Website Covering .Net Technologies Tag: 95025
Why does aspx pages crash my machine?
I'm WinXP Pro. When I reference http://127.0.0.1/mysite/webform1.aspx
(newly created page in VS.NET), IE stalls then everything freezes. I can
click the title bar of applications but that is all. If I move beyond the
title bar, I get the hour glass. Nothing responsds except the mouse. I
have to turn the machine off at this point.
Running .NET 1.1. I can't find any one that knows why this happens. Any
suggestions?
Thanks,
Brett Tag: New Website Covering .Net Technologies Tag: 95020
Custom counters file view is out of memory.
We are using Microsoft's Enterprise Instrumentation Framework. The
TraceSessions.config file just started logging this error in the
Application Log when it gets saved. It didn't do this until about two
days ago.
Unable to read and validate the configuration file
C:\Inginix\Logs\TraceSessions.config. The following errors were
returned:
Custom counters file view is out of memory.
Can someone explain to me what this is and how to fix it?
I can post the file if that would help.
Thanks,
John Tag: New Website Covering .Net Technologies Tag: 95019
C# Language Chat next Thursday, 4/21 @ 1pm Pacific Time
C# Chat: The C# Language
"Want to know more about anonymous delegates in C# 2.0, or our design
rationale for them? Perhaps you have some great ideas you'd like to share
with other C# users or the C# language team. Join the C# team for all that
and more - it's all up to you!"
C# Team members will be there. We're there predictably - every two weeks.
Hopefully that means we'll be better able to be there when you need
questions answered. :0) Mark your calendars for this chat and other future
C# chats!
This chat's entry on the schedule:
http://msdn.microsoft.com/chats/#05_0421_VB_CCL
Add this chat to your calendar:
http://msdn.microsoft.com/chats/outlook_reminders/05_0421_VB_CCL.ics
The chatroom itself: http://msdn.microsoft.com/chats/chatroom.aspx
Other upcoming developer chats: http://msdn.microsoft.com/chats/
Scott Nonnenberg
Program Manager
Visual C# Team Tag: New Website Covering .Net Technologies Tag: 95018
Help with Addin
I am trying to create an addin that will loop through all my projects in a
solution and all the forms with in a project to set a form property.
How can I test the project item to see if it is a form?
foreach (ProjectItem p in theProject.ProjectItems)
{
System.Diagnostics.Trace.WriteLine("ProjectItem = " + p.Name);
// Check to see if its a c# file Is there a better way
if (p.Name.Substring(p.Name.Length - 3, 3) == ".cs")
{
}
} Tag: New Website Covering .Net Technologies Tag: 95016
Printing and drawer information
When printing in .NET, is there any way to determine if a particular drawer
is out of paper, and if so, halt printing until the user puts paper in that
drawer?
--
Todd Acheson Tag: New Website Covering .Net Technologies Tag: 95011
Regex parsing e-mail question.
I basically am trying to match something like keyword: (the : and space is a
marker. I want everything after that all the way up to the next Keyword:
(where keyword HAS to begin a new line. I want everything before the next
keyword.
(\: ).*(\n[a-zA-z]) comes extremely close except for 2 things.
The most important is that it is unable to match patterns where the
"content" that I want spans multiple lines . For example in an e-mail it
would skip over
Received: from unknown (HELO barracuda.domain.com) (127.0.0.1)
by 192.168.2.195 with SMTP; 24 Feb 2005 19:16:52 -0000
Also I am wondering if there is a way to specify that I want everything
"after" the \: and before the \n .
Any help would be greatly appreciated. Below are sample regex and sample
input that I am trying to use. and yes google may have bastardized some of
the input
Regex that I have tried. The first one has produced the closest results.
(\: ).*(\n[a-zA-z])
(\: ).*[(\n\s)].*(\n[a-zA-z])
(\: ).*[(\n\s)].*[^\n[a-zA-Z]]*(\n[a-zA-Z])
----------------------------------------
Input
-------------------------------------------
Return-Path: <u...@domain.com>
Delivered-To: u...@domain.com
Received: (qmail 21118 invoked from network); 16 Mar 2005 20:41:33
-0000
Received: from unknown (HELO barracuda.domains.com) (192.168.192.194)
by 192.168.2.195 with SMTP; 16 Mar 2005 20:41:33 -0000
X-ASG-Debug-ID: 1111005918-25079-3-0
X-Barracuda-URL: http://barracuda.domains.com:8000/cgi-bin/mark.cgi
X-ASG-Whitelist: Sender
X-ASG-Whitelist: Sender
X-ASG-Whitelist: Sender
Received: from domaindev1.domain.local (192-168-1-100.generator.isp.com
[192.168.1.100])
by barracuda.domains.com (Spam Firewall) with ESMTP
id AFE2D20A2F39; Wed, 16 Mar 2005 14:45:18 -0600 (CST)
Received: from tetco634 ([192.168.5.193]) by domaindev1.domain.local
with Microsoft SMTPSVC(6.0.3790.211);
Wed, 16 Mar 2005 14:45:44 -0600
From: "user bleah" <u...@domain.com>
To: <u...@domain.com>
Cc: <user.not...@domain.com>,
<user.supp...@domain.com>,
<anotherper...@somebodyelse.com>
X-ASG-Orig-Subj: New User Signup
Subject: New User Signup
Date: Wed, 16 Mar 2005 14:45:44 -0600
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_00100_01C52A36.D545F720"
X-Mailer: Microsoft Office Outlook, Build 11.0.6353
Thread-Index: AcUqaR/LUDk7Lu7bQdu3vY6SjqLPAQ==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
Message-ID: <domainDEV1RapPodByDl00000...@domaindev1.domain.local>
X-OriginalArrivalTime: 16 Mar 2005 20:45:44.0462 (UTC)
FILETIME=[1FDFCAE0:01C52A69]
X-Virus-Scanned: by Barracuda Spam Firewall at domains.com
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of
TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.0
This is a multi-part message in MIME format.
------=_NextPart_000_00100_01C52A36.D545F720
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit Tag: New Website Covering .Net Technologies Tag: 95000
MVP please help - WSAENOBUFS problem
Hi,
My application uses System.Net.Sockets.Socket class (asynchronously) to
implement record sharing. There is a central task that accepts two way
connections from multiple clients. There are usually 20-30 sockets open at a
given time, but possibly as may as 50-60. As the client uses the software,
it usually works fine for several hours, then slows down and eventually
generates a WSAENOBUFS error (An operation on a socket could not be
performed because the system lacked sufficient buffer space or because a
queue was full.) Pertinent information:
0) WSAENOBUFS is always reported by client task and never server task.
1) When a client shuts down, it does:
Socket.Shutdown( SocketShutdown.Both );
Socket.Close();
2) Sockets are opened by client and kept open for the life of the client.
3) Messages sent back and forth are always quite small, usually 40-160
bytes. An average of 40-50 messages in total per minute are sent at peak
usage.
4) Maximum number of connecting tasks ranges from 4-25 or so.
5) Server task is always OK.
This feels like a resource leak of some sort on the client side, but it
seems as though the code is as per the documentation.
Can anyone suggest what might be wrong or think of further investigation to
undertake?
Thanks in advance.
Brian Hough Tag: New Website Covering .Net Technologies Tag: 94993
Is sqldmo.dll freely redistributable?
I am making a SQL Server management tool and I want to know if I can use
SQLDMO and redist or if I have to do things the "hard" way.
Thanks for the help,
Tom P. Tag: New Website Covering .Net Technologies Tag: 94991
Setup Error Failed to lad resources from resources file Please check your setup
Hello
I need some help, I have a multi threads graphic application, with
dataset, data binding, sockets.
Some time and each time on the same 3 computer the message (total
computer around 15) :
Setup Error Failed to lad resources from resources file Please check
your setup
Arrived randomly.
I have a try catch that around the application.Run
But my "try catch" catch nothing
I will try to see the problem with remote debbuging, but if anyone can
tell me a tips It was great
Thanks Tag: New Website Covering .Net Technologies Tag: 94989
MenuItem Name
I need to find the Name of a MenuItem. Does anyone know how that is done?
Thore Berntsen Tag: New Website Covering .Net Technologies Tag: 94987
Exe launch it automatically when windows start
I've an exe created with vb .net and i want to launch it automatically when
windows start
Do you know if there are alternative way to do it instead of put it in
"automatic execution" or in the "run" Key?
Thank You Tag: New Website Covering .Net Technologies Tag: 94986
Converting enum Keys value to string
I am saving the enum value of specific keys to an xml file which i then
need to get the string representation. I believe KeysConverter is there
for that but i have trouble using it for my purpose.
i want to give it a value and have it spit out its Keys equivilancy for
example.
121 -> Keys.F10
I am not sure if i am playing with the right function or not but any
advise or suggestions would be appreciated :) Tag: New Website Covering .Net Technologies Tag: 94983
Register ocx
Hello
I want to write code in dotnet which register an ocx (I don't want to use
this ocx in dotnet). Exist a class in dotnet for this or have someone an
example to do this?
Thanks
Albert Krüger Tag: New Website Covering .Net Technologies Tag: 94978
When would XQuery be available in the .Net framework?
If the W3C recommendation status for XQuery won't be established until 2006,
how will that impact the release of XQuery (System.Xml.Query namespace)?
I understand that the namespace has been withdrawn from VS2005/beta 2. Is
there a release plan for XQuery in the framework.
Also, how will this impact SQL Server 2005?
Thanks,
-Hal
hal.hayes@REMOVE_CAPS_AND_INVALIDacritech.com
(www.caparea.net) Tag: New Website Covering .Net Technologies Tag: 94968
Crystal Report Deployment
After installing my application, I get the following exception when trying to
run an embedded report:
System.TypeInitializationException: The type initializer for
"CrystalDecisions.CrystalReports.Engine.ReportDocument" threw an exception.
---> System.Runtime.InteropServices.COMException (0x80040154): COM object
with CLSID {CF76A644-314B-404D-8D45-F08B51FF990B} is either not valid or not
registered.
Sounds like the installation didn't work correctly, although there were no
errors. Any clues appreciated, particularly definitive documentation for
Crystal deployment. A lot of it is fragmented and contradictory. Tag: New Website Covering .Net Technologies Tag: 94967
VC6 - .net class browsing
Hello,
I recently switched from VC6 to .net 2003.
In the class browsing window I miss the 2 options (in the contest menu)
"called by" and "calls" referred to any member function. They are very
useful to quicky search where are the calls to a certain function and
vice versa.
They are present by default in VC6
can you tell me where to find/how to activate in .net? is this feature
still present??
thanks
ricky Tag: New Website Covering .Net Technologies Tag: 94965
whidbey beta 2 informations
I've read that the beta 2 of whidbey will be disponibile at the end of this
mounths
Is it true???
Where Can I find more informations about this??
Thanks Tag: New Website Covering .Net Technologies Tag: 94962
CreateInstance OK but calling dynamic method fails
I am trying to create a class at runtime from some library and call its
method dynamically but it keeps failing when calling the method...
In a separate DLL, I have a class as follows
namespace MyClassLibrary
{
public class SimpleClass
{
public string SayHello()
{
return "Hello";
}
}
}
In a console app, I load an assembly from my DLL file, create a
SimpleClass object
myAssembly = Assembly.LoadFrom(MyDLLFilename);
object someObject =
myAssembly.CreateInstance("MyClassLibrary.SimpleClass");
so far so good, it looks like someObject is created
but then it fails if I try to cast my object to a SimpleClass in order
to call its properties...
string MyString = ((MyClassLibrary.SimpleClass) someObject).SayHello();
Either there is a bug or I don't understand (I suspect the second!)
Thanks for any help
Eric Tag: New Website Covering .Net Technologies Tag: 94959
What is the correct conection string for MSaccess?
Hi.
What is the correct connection string, for Msaccess Databases in Ado.Net?
The Databases have Password, and locate in my PC.
Thanks for all
begin 666 dtto086.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..CMD='1O,#@V#0I&3CID='1O
M,#@V#0I%34%)3#M04D5&.TE.5$523D54.F1T=&\P.#9 <')O9&EG>2YN970N
E;7@-"E)%5CHR,# U,#0Q,U0Q-C(U-#-:#0I%3D0Z5D-!4D0-"@``
`
end Tag: New Website Covering .Net Technologies Tag: 94958
Bug in ActiveDirectory access of .NET Framework
Hi,
I have an application in C# that manages users, shares and printers in
the AD. This application sometimes runs on an error accessing the AD.
This is not really reproducable, it happens often, but not always.
Sometimes it runs on an error and later goes over the same code again
and works. The error message is always a NullReferenceException on
System.DirectoryServices.Interop.IAds.GetEx, for example:
at System.DirectoryServices.Interop.IAds.GetEx(String bstrName)
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyCollection.get_Item(String
propertyName)
at amt.user.UserManagement.getUserByDirectoryEntry(DirectoryEntry
ADEntry) in c:\inetpub\wwwroot\amt\sharp\user\UserManagement.cs:line 2098
at amt.user.UserManagement.getUserByProperty(String Property, String
domain) in c:\inetpub\wwwroot\amt\sharp\user\UserManagement.cs:line 1900
at amt.user.UserManagement.getUserBySAM(String SAM, String domain)
in c:\inetpub\wwwroot\amt\sharp\user\UserManagement.cs:line 576
at replication.RootDSEReplicator.checkUserReplicationStatus(AddEntry
entry) in
c:\inetpub\wwwroot\amt\sharp\replication\RootDSEReplicator.cs:line 284
at replication.RootDSEReplicator.checkReplicationStatus(Object
state) in
c:\inetpub\wwwroot\amt\sharp\replication\RootDSEReplicator.cs:line 244
I haven't seen any pattern when this happens. The NulRef obviously
doesn't happen in my code. It seems to happen in one case on this action:
if(ADEntry.Properties["distinguishedName"].Value != null){
newUser.DN= ADEntry.Properties["distinguishedName"].Value.ToString();
}
Any ideas what can cause this? What surprises me is, that the NullRef
isn't thrown by my code, but from inside IAds.
Regards
Marco Tag: New Website Covering .Net Technologies Tag: 94955
Install Framework
I'm trying to install Framework in Removable Compact Flash, but the
instalation ask to input Microsoft .NET Framework 1.1.
What Can I do?
Thanks Tag: New Website Covering .Net Technologies Tag: 94954
Webpage Authoring
Currently authoring with Frontpage 2002 on Windows XP Pro.
I have been using Visual Basic.net (because I can afford it) for desktop
applications, but do not own the whole VS.net suite. I would like to author,
and manage if possible, my website in the Visual Studio.net environment
primarily because I have issues with Frontpage. Is it possible to build the
whole site in the VS.net environment? I would rather remain with Microsoft
than switch to Macromedia Dreamweaver and Homesite for web authoring tasks.
What other VS.net products should I be looking at in order to build a slick,
fastloading, and fully interactive website that includes XHTML code, XML and
RSS feeds, and web based applications, or do I already have the resources I
need?
Thank you,
Dennis D.,
Webmaster,
http://www.dennisys.com/ Tag: New Website Covering .Net Technologies Tag: 94953
DataBinding - null values if controll not touched
Hello
I'm binding untyped DataSet field to checkbox "Checked" property.
(dataset is filled with data from MSSQL database, DB_FIELD can not be NULL)
Here is the code snippet:
b = new Binding("Checked", this.dataSet.Tables[0], DB_FIELD");
b.Format += new ConvertEventHandler(dbnull2null_checked);
b.Parse += new ConvertEventHandler(dbnull2null_checked);
this.myCheckbof.DataBindings.Add(b);
and dbnull2null_checked is following:
protected void dbnull2null_checked(object sender, ConvertEventArgs cevent)
{
if (cevent.Value.Equals(DBNull.Value)) cevent.Value = false;
if (cevent.Value == null) cevent.Value = 0;
}
Unfortunetly, if the user did not changed value of the checkbox,
database gets null (and throws an exception). If value is changed (to
whatever value) everything is fine.
How to fix it? I'm desperate :(
--
Semper Fidelis
Adam Klobukowski
atari@gabo.pl Tag: New Website Covering .Net Technologies Tag: 94950
Namespace usage
I'm trying to figure out the best way to structure my code and how to use
namespaces to organize it. I'm working on an application that will have a
plugin architecture. It will have a main frontend application and some
shared interfaces and utility classes. Then there will be the plugins
themselves. The plugins will be standalone, so I don't need to include them
in a namespace. However, I am thinking that I need a namespace for the main
app and the shared assemblies. I've read through several books, and done
some googling, but I haven't found anything that does much more than explain
what namespaces are and then go on to describe the .NET namespaces. Nothing
seems to explain the strategies of using namespaces in my own applications.
Can anyone point me to some source of info on this?
Thanks! Tag: New Website Covering .Net Technologies Tag: 94947
Visit http://www.dotnetmatters.com - DotNet Matters - for articles on
ASP.Net, Sharepoint, sql server and other Microsoft.Net Technologies.