.NET software development tools
Dear Developer
Recently we released our site oriented to provide high Microsoft(R) .NET
quality products
Nowadays, we are oriented to the mobile world, so download our trial
products like Socket Server, Socket Client and Smpp Client (For Short
Message (SMS) application development)
visit http://www.devshock.com and break frontiers
Any commentary is appreciated
Devshock Team Tag: how to set NTFS file permssions in .NET? Tag: 54169
When to use the GAC and how. ?
Okay, this is really a three part question. I'm trying to figure out how
this whole GAC thing works.
Here goes....
1. When should you put an assembly in the GAC as opposed to just referencing
the dll in a normal windows folder?
2. When you put it in the GAC how should you reference in the project? I
would think that you shouldn't have to reference it because it's in the GAC,
but it looks like you still do? If so, what's the benefit?
3. When should you set "CopyLocal" = False in the assembly reference
properties in VS.NET?
thanks in advance.
Mark Tag: how to set NTFS file permssions in .NET? Tag: 54157
URGENT: Internet Explorer Control: Print not working
Hi,
I have an ASP.NET page that sends a request to the server to generate some
html on the fly and print it through the server.
Once the request comes in, the page is generated.
I have a Internet Explorer Control that loads this page on the server side.
Then I am calling the print function to print that page.
The code compiles and runs, but this page is not printed after the printing
request has been executed.
There is nothing in the print spooler.
Here is the code
=======================================================
Private WithEvents browser As SHDocVw.InternetExplorer
browser = New SHDocVw.InternetExplorer()
browser.Navigate(url)
While (browser.QueryStatusWB(SHDocVw.OLECMDID.OLECMDID_PRINT) <>
(SHDocVw.OLECMDF.OLECMDF_SUPPORTED + SHDocVw.OLECMDF.OLECMDF_ENABLED))
End While
browser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER)
=======================================================
everything executes fine, but there is nothing printed.
The control navigates to the correct page.
Does anyone know why it doesn't print ?
Only reason I can think of is the control is designed for WinForms and not
for Server Side Classes (not web forms, just a class on the server side).
Please help!!!
Regards,
Shardool Karnik. Tag: how to set NTFS file permssions in .NET? Tag: 54155
define method that takes a method?
Before offering architecture advice please read the short documentation for
this project at:
https://sourceforge.net/docman/display_doc.php?docid=18381&group_id=87262
if link does not work? try:
http://sourceforge.net/projects/genadonet
and go to "Docs" page, only 1 doc available...
I have a generic data access DLL that returns IDbDataAdapter for a given
data provider which is dynamically loaded at runtime. Unfortunately
IDbDataAdapter does not have the event 'RowUpdated' defined. however, every
provider has this method that takes basically the same arguements.
OleDbRowUpdatedEventArgs inherits from RowUpdateEventArgs
OleDbRowUpdatedEventHandler is defined as:
OleDbDataAdapter.RowUpdated(object sender, OleDbRowUpdatedEventArgs e)
SqlRowUpdatedEventArgs inherits from RowUpdatedEventArgs
SqlRowRowUpdatedEventHandler is defined as:
SqlDataAdapter.RowUpdated(object sender, SqlRowUpdatedEventArgs e);
same for Oracle, and Odbc providers...
I don't have a clue why IDbDataAdapter does not define RowUpdated?!
Anyway I have a "generic ADO.NET" project which you can see from link in my
signature. basically I provide a method that returns an IDbDataAdapter.
Actually, I have one for each overloaded constructor of IDbDataAdapter. i
have similar overloaded methods for all other IDb types (Connection,
DataParameter, Command).
The client can now develop database provider independant code. The provider
used is determined at run-time. Since IDbDataAdapter does not define any
events, I need to supply a way for users of the generic ADO dll to subscribe
to them. So far i created a method defined as...
==============================================
public interface IDbTemplate
{
...
void DataAdapterSubscribe(IDbDataAdapter da,
DataAdapterEvent evt, Delegate target);
...
}
==============================================
DataAdapterEvent is an enumeration of events supported by all providers
(Disposed, FillError, RowUpdated, RowUpdating)
'target' is supposed to accept a method pointer. Am I declaring it as the
wrong type?
here is how I implemented this for the Sql provider...
==============================================
public class DbSqlTemplate:DbTemplate
{
...
public void DataAdapterSubscribe(IDbDataAdapter source,
DataAdapterEvent evt, Delegate target)
{
SqlDataAdapter da = (SqlDataAdapter)source;
switch(evt)
{
case DataAdapterEvent.RowUpdated:
da.RowUpdated += new SqlRowUpdatedEventHandler(
(SqlRowUpdatedEventHandler)target);
break;
case DataAdapterEvent.RowUpdating:
da.RowUpdating += new SqlRowUpdatingEventHandler(
(SqlRowUpdatingEventHandler)target);
break;
case DataAdapterEvent.Disposed:
da.Disposed += new System.EventHandler(
(System.EventHandler)target);
break;
case DataAdapterEvent.FillError:
da.FillError += new FillErrorEventHandler(
(FillErrorEventHandler)target);
break;
} // end switch
} // end method
...
} //this code compiles with no errors or warnings...
==============================================
In the client I am trying to use this as follows:
==============================================
public void ReQuery(...)
{
...
_da = _context.DbContext.DbTemplate.DataAdapter(cmd);
if (!_context.DbContext.DbTemplate.SupportsMultiStepStatements)
{ //subscribe to the RowUpdated...
_context.DbContext.DbTemplate.DataAdapterSubscribe(_da,
GenDB.Data.DataAdapterEvent.RowUpdated,
this.OnRowUpdated); //compile error here...
// "method referenced without parenthesis"
}
...
}
protected void OnRowUpdated(object sender,
System.Data.Common.RowUpdatedEventArgs e)
{
if (e.StatementType == StatementType.Insert)
{
if (typeof(Int32) != typeof(System.Guid))
{ //numeric pk
IDbCommand cmdIden = GetIdentityCommand();
object newID = cmdIden.ExecuteScalar();
e.Row["ProductID"] = newID;
}
}
}
==============================================
--
Michael Lang, MCSD
See my .NET open source projects
http://sourceforge.net/projects/dbobjecter (code generator)
http://sourceforge.net/projects/genadonet ("generic" ADO.NET) - does not yet
include above described feature Tag: how to set NTFS file permssions in .NET? Tag: 54153
SecurityException on Win2k3
I have an application that runs on the network and accesses files on the
network. To get it to run on a normal workstation (98-XP) I just have to go
to the .NET configuration wizard and give full trust to the Intranet. When
I do this on a 2003 Server I still get the securityexception saying I don't
have rights to access the files. Any idea why?
Chris Tag: how to set NTFS file permssions in .NET? Tag: 54150
aspnet_wp.exe could not be started
Hi,
I'm trying to install my .net application on a win2k
configuration. When I attempt to start the application, I
get the following error message:
"Server Application Unavailable
The web application you are attempting to access on this
web server is currently unavailable. Please hit
the "Refresh" button in your web browser to retry your
request.
Administrator Note: An error message detailing the cause
of this specific request failure can be found in the
system event log of the web server. Please review this log
entry to discover what caused this error to occur. "
When I examine the application event log, there is an
entry that reads:
"aspnet_wp.exe could not be started. HRESULT for the
failure: 80004005"
I have the .net framework 1.1 installed on this machine (I
have even tried re-installing).
Can anyone give me a suggestion on how to make some
progress on this one?
Steve Tag: how to set NTFS file permssions in .NET? Tag: 54149
Windows update and framework servicepack 2
Windows Update tells me I need to install the
Microsoft .net Framework Service Pack 2, English version.
I have installed the service pack about 20 times, and
windows update says I still need to install it. How can I
fix this problem?
"Many Thanks"
Glen Conaway Tag: how to set NTFS file permssions in .NET? Tag: 54148
RichTextBox Text Color Problem
I add a "blue" color string to the caret position when I press a button. After that, I make the selectionlength to be 0, the
selectionstart to be just after the blue string and set the color back to black. Then I go to the next line a type something. The
text becomes blue when I go back to the previous line to type something which is just after the "blue" color string. But I don't
want it to be blue. I don't know why does this problem happen? Please Help~
--
My C++ and C# ( Traditional Chinese ) Web Site : www.franzwong.com Tag: how to set NTFS file permssions in .NET? Tag: 54146
Error Message
I am recieveing the following message when trying to use
the system.web.mail class. I have reinstalled the .net
framwork and VS.net without any success?
Server Error in '/POAPublicSite' Application.
-----------------------------------------------------------
---------------------
Error loading type library/DLL.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and where
it originated in the code.
Exception Details:
System.Runtime.InteropServices.COMException: Error loading
type library/DLL.
Source Error:
Line 136:
Line 137: SmtpMail.SmtpServer = "10.0.2.16"
Line 138: SmtpMail.Send(NotifyWebmaster2)
Line 139:
Line 140: End Try
Source File:
C:\Inetpub\wwwroot\POAPublicSite\FAQSubmit.aspx.vb
Line: 138
Stack Trace:
[COMException (0x80029c4a): Error loading type
library/DLL.]
[TargetInvocationException: Exception has been thrown by
the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name,
BindingFlags invokeAttr, Object target, Object[] args,
Boolean[] byrefModifiers, Int32 culture, String[]
namedParameters) +0
System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target,
Object[] args, ParameterModifier[] modifiers, CultureInfo
culture, String[] namedParameters) +473
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
+1139
System.Web.Mail.SmtpMail.Send(MailMessage message) +49
POAPublicSite.FAQSubmit.SystemEmail(String EmailTo,
String EmailFrom, String EmailSubj, String EmailBody) in
C:\Inetpub\wwwroot\POAPublicSite\FAQSubmit.aspx.vb:138
POAPublicSite.FAQSubmit.BtnSubmit_Click(Object sender,
EventArgs e) in
C:\Inetpub\wwwroot\POAPublicSite\FAQSubmit.aspx.vb:90
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
+108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEve
ntHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent
(IPostBackEventHandler sourceControl, String
eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent
(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263
-----------------------------------------------------------
---------------------
Version Information: Microsoft .NET Framework
Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
Thanks again Tag: how to set NTFS file permssions in .NET? Tag: 54138
KB818803 versus KB821156
Hi all,
does the KB821156 - ASP.NET 1.1 June 2003 Hotfix Rollup Package fix the
previous KB818803 bug?
The version numbers of files included in KB821156 are higher than in
KB818803 , but the KB818803 is not listed there under "The following issues
are fixed with this hotfix rollup" section.
Thanks
Pavel Vrba Tag: how to set NTFS file permssions in .NET? Tag: 54130
proxy Settings For Tcp sockets
Hi,
I am writing a client in C# which uses the system.net.sockets namespace and
the scoket class to connect toa remote server.
I would like this client to work on machines that use a proxy server to
connect to the internet.
How do i advice the socket about what proxy settings to use?
Thanks/Regards
Sanket Gupta
Sanket Gupta F-26/112/7 Rohini Delhi-110085 India sanket@tsucorp.net tel:
mobile: 91-11-27931935 91-9810197671 Powered by Plaxo Want a signature like
this? Tag: how to set NTFS file permssions in .NET? Tag: 54121
Sluggish Performance All Round
I'm just wondering if anyone else feels the same way I do. I find Windows XP
Pro an annoyingly sluggish O/S where almost every basic task has an
associated (and noticeable) reaction time. I've got a couple of hi-spec
desktop machines but it doesn't seem to matter how much horse-power I throw
at it (cpu, hd, hd controlllers, ram, etc) it still runs like a dog. I've
tried turning off just about every "advanced" (aka power-sucking) feature
but it doesn't make a jot of a difference. THEN, on top of this creaker we
have to add the .NET framework and Visual Studio... and it's like being back
in the days of 300 baud terminals (without a GUI, of course). Maybe you
disagree? Tag: how to set NTFS file permssions in .NET? Tag: 54110
Shared Assembly Problem in Remoting
I am having a problem when using a shared assembly with
remoting.
I have a shared assembly (shared.dll) added in the gloabal
assembly cache. The remoting server application
(server.exe) uses this shared.dll. I have added a
reference of this assembly with set local property false.
On client application (client.exe), i have also added the
shared.dll assembly's reference.
When i execute the server app (server.exe), it starts with
no problem. When i start the client application, it gets
crashed with the FileNotFoundException saying that it
can't find the shared.dll assembly and shows the server
assembly's path while the server continues to execute
without any problem.
I have managed to solve the problem by making the copy
local property of shared.dll assembly's reference to true
at server side. But, this is not what required... I want
to use the shared assembly from its original location
(global assembly cache).
If someone can tell me what exactly is the problem, i
would be grateful.
Thanks,
Faraz Tag: how to set NTFS file permssions in .NET? Tag: 54105
Microsoft Powerpoint AutoShape / object structure
HI!
I have two expert questions:
1. Is it possible to add new (own) End Styles of arrows in the Format
AutoShape window (Colors and Lines) drop down box?
2. How is it possible to access the object structure in PowerPoint. I mean
by this accessing the objects that are created on the given slide. I would
like to identify the selected object, maybe check its category (arrow, text,
etc), take and pass it to my program. Then put the changed object back into
the slide instead of the selected object. Off course I will ensure the right
format. But what format is it?
I am all ears!
gicio Tag: how to set NTFS file permssions in .NET? Tag: 54101
HttpWebRequest - the 6 million dollar question
I'm posting this again as it's been 1 week now and still not a single reply,
surely someone must have come across this problem!
I've hit a brick wall with this one..
I'm trying to perform a HttpWebRequest that posts form data to the target
server - the problem is that the request *always* contains an Expect:
100-continue header, which on HTTP 1.0 servers results in a 500 error.
None of these seemingly obvious fixes work:
Set the HttpWebRequest.Expect property to null or String.Empty
Set the HttpWebRequest.ProtocolVersion to HttpVersion.Version10
Note that my class works perfectly with HTTP 1.1 servers, so I doubt there's
anything I've done incorrectly in code. Also note that the problem only
surfaces when you POST data to the server with the request, no post data =
no problem.
Searching google for this problem has given me a few people that have hit
the same problem, but not one valid workaround.
Help! Tag: how to set NTFS file permssions in .NET? Tag: 54100
async callback problem
Hi,
I'm using a async callback mechanism to receive data from
the socket. Once the data is received, I parse the data
and if certain information is received I open a new form.
Everything goes fine until the form is opened. The opened
form seems to freeze and does not refresh (no errors are
generated). However, If I output the received data to the
console it seems to be receiving data. The problem is
only with the UI.
Part of the code is included below (pls let me know if
you need the entire source code).
private void Receive()
{
try
{
if ( callbackProc == null )
callbackProc = new AsyncCallback(ReceiveCallback);
StateObject state=new StateObject();
state.workSocket = s;
s.BeginReceive(state.buffer, 0,
StateObject.BufferSize,
SocketFlags.None, callbackProc, state);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void ReceiveCallback (IAsyncResult ar)
{
try
{
StateObject state = (StateObject) ar.AsyncState;
int bytesRead = state.workSocket.EndReceive(ar);
string szData =
System.Text.Encoding.Unicode.GetString
(state.buffer, 0, bytesRead);
frmNew n = new frmNew();
n.show();
Receive();
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
} Tag: how to set NTFS file permssions in .NET? Tag: 54097
Threading..
Hi,
i am trying to use thread to insert, update database. If
occur any oledbException, i take a message as "Unhandled
exception of type 'System.Data.OleDb.OleDbException'
occured in Unknow Module." I take this message in Windows
messagebox. (my project is web applicaton and i have a
exception page..I can't take this message in normal
using. when i run in debug mode, i take this message )
But my code is catching oledbexception and other
exception. May be using synchronization couse this
status...
Thanks..
mehmet Tag: how to set NTFS file permssions in .NET? Tag: 54091
Reflection: Get type signed with attribute
Hi!
We defined an attribute that can be applied to a type multiple times
(AllowMultiple = true). A type can have numerous instances of that attribute
that it may have inherited from its base classes.
Problem: If we have an instance of that attribute how can we find out which
class originally was signed with that specific instance.
E.g:
[AttributeUsage( AttributeTargets.Class, AllowMultiple = true )]
public class MyAttribute : Attribute
{
public MyAttribute( int intVal ) { ... }
}
[My(1)]
class Base
{
}
[My(2)]
class Child : Base
{
}
So Child is signed with My(1) and also My(2). If we have My(1), how can we
get the type that was signed with My(1), in this case Base.
TIA,
Markus
--
##########################################
Please do not send replies to msdngroups@syska.de.
Mails sent to that adress will be deleted without being read. Tag: how to set NTFS file permssions in .NET? Tag: 54089
WebClient.DownloadData without cache
I am using WebClient to download a text file from the net every 2 minutes.
The problem is that I think I am reading the file from cache since when the
file is change I still get the old file.
Here is my code:
Dim myWebClient As New WebClient()
Dim responseArray As Byte() = myWebClient.DownloadData(szURL)
How can I tell WebClient not to use cache ?
Thanks in advance
ra294@hotmail.com Tag: how to set NTFS file permssions in .NET? Tag: 54087
Connect to IrDA device from Windows Application
How to connect to IrDA devices (such as mobile phone, pda)
from Windows Application.
Thanks. Tag: how to set NTFS file permssions in .NET? Tag: 54081
Speed issues
Hi all,
Has anybody experienced any significant drop in performance when moving from
the 1.0 to 1.1 framework regarding ASP.net?
I have some serious performance issues, but when I profile the code nothing
is constant and the problem seems to keep moving. I was just wondering if
the move to 1.1 could have something to do with it.
Thanks in advance.
Eben Tag: how to set NTFS file permssions in .NET? Tag: 54071
when will MS release Framework 2.0?
Who know the plan?
Where can I get the plan about .net development?
Thanks a lot Tag: how to set NTFS file permssions in .NET? Tag: 54069
FileSystemWatcher returns changed files in lower case
Hi,
The FileSystemWatcher works fine to return the files
changed. However, the path returned through
FileSystenArgs.FullName is always in lower cases, e.g.,
c:\projectfiles\watched\foo.txt even though both the
directory and file names are in proper case like
c:\ProjectFiles\Watched\Foo.txt.
I've tried to instantiate a DirectoryInfo or FileInfo
with the returned file path, hoping they will return the
path in proper case but without success. Is there a work
around? The project I'm working on copies the changes to
another machine so it's important that I can maintain the
case so users won't get confused.
Thanks in advance,
Donald Xie Tag: how to set NTFS file permssions in .NET? Tag: 54057
Please help us... POSTing with Http/WebRequest
I have noticed that a lot of people were having a similar problem to mine
which involves using the POST method with the
HttpWebRequest/WebRequest/WebClient classes (.NET 1.1). The classes will
send out one HTTP packet that says content of a certain length will follow
but the second packet is never sent, which usually results in a 400 error
from the server. I've tried my code on both HTTP 1.0 and 1.1 servers and
both gave the same result. Here is my example:
Try
Dim LogInURL As String = "http://s2.starkingdoms.com/scripts/main.cgi"
'Dim LogInURL As String =
"http://sklone.homeip.net/scripts/BrowserLogin.aspx"
Dim Account As String = "blah"
Dim Password As String = "blah"
Dim Request As Net.HttpWebRequest = Net.HttpWebRequest.Create(LogInURL)
Request.ContentType = "application/x-www-form-urlencoded"
Request.Method = "POST"
Request.ProtocolVersion = Net.HttpVersion.Version10
'Request.ProtocolVersion = Net.HttpVersion.Version11
Dim RequsetStream As IO.Stream = Request.GetRequestStream()
Dim ASCIIEncoding As New System.Text.ASCIIEncoding
Dim PostData As Byte() = ASCIIEncoding.GetBytes("Account=" & Account &
"Password=" & Password)
RequsetStream.Write(PostData, 0, PostData.Length)
RequsetStream.Close()
Dim Reader As New
IO.StreamReader(Request.GetResponse().GetResponseStream())
Dim ResultHTML As String = Reader.ReadToEnd()
Reader.Close()
MsgBox(ResultHTML)
Catch ex As Exception
MsgBox(ex.Message)
End Try
And here's what happens:
POST /scripts/main.cgi HTTP/1.0
Content-Length: 25
Connection: Keep-Alive
Host: s2.starkingdoms.com
Followed by the Bad Request (400) error. Tag: how to set NTFS file permssions in .NET? Tag: 54054
Properties the .NET IDE way?
All,
Anybody know if there is an easy way to duplicate how the .NET IDE
presents properties and events? Specifically that it has a window with a
Name/Value pair but the value field is editable and can contain a drop-down,
combo, edit box, multi-line edit box, etc?
Erin. Tag: how to set NTFS file permssions in .NET? Tag: 54052
Multiple frameWorks, Serialization and Versions
Hi
I got some type of form designer where I could open up
a .net form (done with reflection in run time so I'm
not using design time environment or anything) move
controls around and finally save the form. What it really
saves is an xml file where controls properties are binary
serialized. Next time I open up the form I could just load
this this xml file deserialize properties and assign them
to corresponding objects. Now the problem is the controls
that I have are the custom controls inherited from dotnet
ones, and we have a total build process that runs everyday
and changes versions of these controls. So we are using
simple binary serialization (doesn't include versions).
This is fine if you don't have another version of .net
framework in gac. What would you suggest here? Tag: how to set NTFS file permssions in .NET? Tag: 54043
Socket.Select Bug??
There seems to be a 64 element limit on any socket list
passed as a argument to the select method.
Someone else in the forum traced the IL code, and found
some problems in the following code, I don't know if it is
a bug.
In this method , it first stored the count of the
socketlist we passed in with out any range check,
and then if the count isn't zero, the method will always
allocate a native int[64] array, which ofcourse doesn't
match with the value in FileDescriptorSet.Count, then the
IndexOutOfRangeException is thrown in the following codes.
maybe the conceptual code in c# like this:
FileDescriptorSet(Int32 count) {
Count = count;
if (!Count)
Array = new IntPtr(64);
else Array = null;
}
System.Net.Sockets.FileDescriptorSet
..method public hidebysig specialname rtspecialname
instance void .ctor(int32 count) cil managed
{
// Code size 27 (0x1b)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld int32
System.Net.Sockets.FileDescriptorSet::Count
IL_0007: ldarg.0
IL_0008: ldarg.1
IL_0009: brfalse.s IL_0014
IL_000b: ldc.i4.s 64
IL_000d: newarr [mscorlib]System.IntPtr
IL_0012: br.s IL_0015
IL_0014: ldnull
IL_0015: stfld native int[]
System.Net.Sockets.FileDescriptorSet::Array
IL_001a: ret
} // end of method FileDescriptorSet::.ctor
Any comments are welcome. Tag: how to set NTFS file permssions in .NET? Tag: 54034
Upgrade .NET Framework
Hello All,
I was trying to use FolderBrowserDialog dialog box that
is supported only in version 1.1 of .NET Framework. So I
upgraded the .NET framework from 1.0 to 1.1 by
downloading the dotnetfx.exe. Everything went well with
Upgrading but still .NET didn't recognize
FolderBrowserDialog type and when I checked the
version .NET Framework in "About Microsoft Visual
Basic .NET" it showed the version is still 1.0.
Any idea about this issue? Or do you know any other way
rather than using the FolderBrowserDialog in VB?
I appreciate your help in advance. Tag: how to set NTFS file permssions in .NET? Tag: 54033
HttpWebRequest
I am very frustrated trying to use .NET's HttpWebRequest. Does anybody know
where I can find "GOOD" HttpWebRequest documentation and samples? The
microsoft ones are woefully inadequate and my last few posts have gone
unanswered. You can check my earlier posts if you'd like to see the areas I
am having problems with.
Erin. Tag: how to set NTFS file permssions in .NET? Tag: 54031
The argument type System.Data.DataSet cannot be converted into parameter type Sy
I have a three tier application using remote objects.
Everything works fine in my development environment but
when I move the code to production, I get the following
error when passing a dataset as a parameter.
The argument type System.Data.DataSet cannot be converted
into parameter type System.Data.DataSet Tag: how to set NTFS file permssions in .NET? Tag: 54029
Windows Communication & Application Instancing in DotNet
Good Morning,
My problem is 2 fold. First of all, I want to find out a method of detecting
whether a prev. instance of an application is already running (I think I
already figured this out), and if so, send a message to that already running
application (I am thinking by using the WIN32 API Call of "SendMessage").
I am trying to build an application within which I could do
instancing/hooking. Basically, I want to be able to build an application
that would be able to detect if another instance of it is already running,
and if so, communicate with that already running instance, and send a
command, and shut its self down. Almost the same behavior that outlook
express has... i.e. if you already have outlook express already running and
you attempt to lunch the executable again... it doesn't create a new
instance of outlook.
I currently have a function called PrevInstance() that detects whether or
not a prev. instance of the same app is already running.. My only problem
now is communicating with that already running instance of my application.
Public Function PrevInstance() As Boolean
If
UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrent
Process.ProcessName)) > 0 Then
Return True
Else
Return False
End If
End Function
--
Awah Teh
DigicentriQ Technologies, LLC
awaht@digicentriq.com
www.digicentriq.com
877 675 4742
805 732 9421
--
Awah Teh
Chief Executive Officer
DigicentriQ Technologies, LLC
awaht@digicentriq.com
www.digicentriq.com
877 675 4742
805 732 9421 Tag: how to set NTFS file permssions in .NET? Tag: 54027
accessing to a windows service
hi all!
i've created a windows service written on c#. i've added some methods into
the "main" class inherited from System.ServiceProcess.ServiceBase. is there
any way to get an access to them from any other .net application? when i try
to add a reference using the service's exe file as a source, i get a message
like "a reference to '...' could not be added. this is not valid assembly or
COM component. only assemblies with extention 'dll' and COM components can
be referenced.", etc.
so how can i get an access to the methods and properties of my service from
other .net applications?
thanks.
---
mr.black's here... Tag: how to set NTFS file permssions in .NET? Tag: 54026
Bringing back previous instance
I can prevent my application to exist in more than one instance by using Mutex. I want the previous instance back to desktop when
the user wanna open the second instance. Can I use mutex name to get the form of the prevous instance? I don't want to use the name
of the form. Thanks.
--
My C++ and C# ( Traditional Chinese ) Web Site : www.franzwong.com Tag: how to set NTFS file permssions in .NET? Tag: 54025
Connection delay after upgrade to .NET 1.1
When making a socket connection to a server from a client
using the new .NET Framework version 1.1 in a Web
Application, we are getting a severe delay in the granting
of the socket connection. We did not get this using the
previous version of .NET (1.0...). The delay is between 1
and several minutes long. Finally, after the delay, the
socket connection is made with no abnormal messages.
Then, as long as that IE remains up, we can dis-connect
and re-connect as many times as we want with no delays at
all.
Any and all comments would be greatly appreciated. Tag: how to set NTFS file permssions in .NET? Tag: 54020
Getting Started on .NET
I have an experience of more than 2 yrs on VB6.0 &
ASP2.0. I would like to know how do I get myself started
on the .NET platform. Are there any books that I may need
to refer? Also, do I need to learn all the three
languages- C#, ASP.NET & VB.NET right away? Tag: how to set NTFS file permssions in .NET? Tag: 54018
HttpWebRequest, transfer-encoding?
I need to post some data to a server. As I understand it (which is not to
say I do understand it) I should be able to include a "transfer-encoding:"
header of say- gzip, then gzip my content before posting. Since it is a
transfer-encoding, I assume any half decent web server should be able to
automatically ungzip it before passing it on to whatever app needs to handle
it.
Is this assumption correct? If so, does .NET support gzip transfer encoding
or do I need an external library, program, etc.
If external is necessary, where should I look.
Regards,
Erin
-=Universal Subscriber=- Tag: how to set NTFS file permssions in .NET? Tag: 54013
Why does Microsoft have such a hard time understanding what they say?
You know there is a difference between the Microsoft .NET Framework and the
Microsoft .NET Framework SDK. Besides the fact that the former is 20 some
MB and the latter is some 100MB there is a difference you know. But not
according to this page:
http://support.microsoft.com/?scid=kb;en-us;306160
This command near the bottom:
N:\dotnetframework\dotnetfx.exe /t:c:\temp /c:"msiexec.exe /i
c:\temp\netfx.msi REINSTALL=ALL ReinstallMODE=vomus"
has not a damn thing to do with the Microsoft .NET Framework SDK. This is a
reinstallation of the Microsoft .NET Framework which is NOT the Microsoft
.NET Framework SDK as the title of this article says.
To me this is like the misunderstanding of Microsoft Outlook and Microsoft
Outlook Express.
Why does Microsoft have such a hard time understanding what they say? And
finally is there a repair for the Microsoft .NET Framework SDK not to be
confused with the Microsoft .NET Framework? Thanks.
--
George Hester
__________________________________ Tag: how to set NTFS file permssions in .NET? Tag: 54012
.Net Framework and Sharepoint Server
I was just wondering if .Net Framework would interfere with stuff in a
Sharepoint Server? Because in our IIS server, we are getting a 404 on
a smart client app that we are trying to deploy. We tried 3 other IIS
servers (development), and it seemed to work. It is just that one
server (Release) which gives us a 404. Any Ideas?
Thanks. Tag: how to set NTFS file permssions in .NET? Tag: 54011
HRESULT 80004005
Event Type: Error
Event Source: ASP.NET 1.0.3705.0
Event Category: None
Event ID: 1082
Date: 8/11/2003
Time: 9:50:10 AM
User: N/A
Computer: MyComputer
Description:
aspnet_wp.exe could not be started. HRESULT for the failure: 80004005
The .NET Framework has been just fine for months. I tried installing and
using one of the Fabrikam Office XP solutions. They worked (didn't
actually) poorly and so tried to remove them. Now this is the condition of
my Framework. I've tried uninstalling and reinstalling and uninstalling and
reinstalling and uninstalling and reinstalling and uninstalling and
reinstalling and uninstalling and reinstalling and uninstalling and
reinstalling and uninstalling and reinstalling and uninstalling and
reinstalling and uninstalling and reinstalling and uninstalling and
reinstalling and uninstalling and reinstalling and uninstalling and
reinstalling and uninstalling and reinstalling and uninstalling and
reinstalling and no go.
Any ideas?
http://support.microsoft.com/default.aspx?scid=kb;en-us;306518
--
George Hester
__________________________________ Tag: how to set NTFS file permssions in .NET? Tag: 54006
Screen capture?
Under VB6, it was fairly straightforward to get a
screenshot. For instance, the following code:
Public Function ScreenshotBits(hWnd As Long, Optional
compress As Boolean = True) As Byte()
Dim bitmap_info As BITMAPINFO
Dim pixels() As Byte
Dim Size As Long
Dim dc As Long
dc = GetDC(hWnd)
Dim memDC As Long
memDC = CreateCompatibleDC(dc)
Dim r As RECT
GetClientRect hWnd, r
' Prepare the bitmap description.
With bitmap_info.bmiHeader
.biSize = 40
.biWidth = r.Right - r.Left
' Use negative height to scan top-down.
.biHeight = r.Top - r.Bottom
.biPlanes = 1
.biBitCount = 32
.biCompression = BI_RGB
End With
Dim bm As Long
Dim ptr As Long
bm = CreateDIBSection(dc, bitmap_info, DIB_PAL_COLORS,
ptr, 0, 0)
Dim oldbm As Long
oldbm = SelectObject(memDC, bm)
BitBlt memDC, 0, 0, r.Right - r.Left, r.Bottom -
r.Top, dc, 0, 0, SRCCOPY
' Copy the bitmap's data.
Size = (r.Right - r.Left) * (r.Bottom - r.Top) * 4
ReDim pixels(0 To Size - 1)
GetDIBits dc, bm, 0, r.Bottom - r.Top, pixels(0),
bitmap_info, DIB_PAL_COLORS
If compress Then
Dim z As New clsZLib
z.CompressByte pixels
End If
SelectObject memDC, oldbm
DeleteObject memDC
DeleteObject bm
ScreenshotBits = pixels
End Function
How do I duplicate this functionality in VB.NET? That is,
I could import all the API calls and do almost the exact
same code, but the .NET framwork abstracts tons of things
that were previously the realm of API calls. Is there
a .NET way to do this?
~BenDilts( void ); Tag: how to set NTFS file permssions in .NET? Tag: 54003
MDI + KEY DOWN EVEN problem
Hi,
I am working with MDI form in .NET, In a child form i am unable to move the
cursor to previous control using the Shift + Tab combination in Keycode
Event procedure. Even i set the tabStop property to false for all controls.
It is working fine when it shows as a normal form (Non MDI). The problem
occurded only when it shows as a MDI child.
Kindly let me the problem
Regards,
GOVIND. Tag: how to set NTFS file permssions in .NET? Tag: 53992
How do I write to a private folder?
Hi all,
I am trying to write a stand alone C# Console program with .NET framework.
The program will create a folder in a existing folder. The existing folder
is set with "Make this folder private" and "Encrypt contents to secure
data". I tried LogonUser, Impersonate, AddPermission to PermissionSet but
none of them work. The error is "Access to ... is denied" eventhough I run
the program in the same account that I used to create the folder. I dont
have any problem to create to any other folders without the private and
encrypt setting. I am using Windows XP, NTFS and the existing folder is
created in user profile directory.
Please help.
TIA
Hung Nguyen Tag: how to set NTFS file permssions in .NET? Tag: 53989
documents of MSIL & CLR?
Hi,
I am a C# developer and want to study deeply about the .NET internals, MSIL
and CLR. Where can I find reference documents about them? For example,
reference to all operation instructions of intermediate language, and file
organization of a .NET assembler. I believe there should be documents about
those areas, but could not find them in my MSDN Library(July 2k3)
Very thanks,
weixiang Tag: how to set NTFS file permssions in .NET? Tag: 53981
"Automation server cannot create Object"
Hi,
I get a error when i open or create a new project in .Net.
"Automation server Cannot create Object".
What's the reason and how do i rectify it.
Thanks
Jayant Tag: how to set NTFS file permssions in .NET? Tag: 53977
Multiple Debugging sessions
Hi,
I was wondering if it is possible to have multiple
debugging sessions? When I try to have someone else run
another session I get an error message:
Error while trying to run project: Unable to start
debugging on the web server. A debugger is already
attached. Would you like to disable future attempts to
debug ASP.NET pages for this project?
We are running .dot framework version 1 and using Visual
Studio 2002.
Has anyone got any ideas or done this.
Cheers,
Russell Tag: how to set NTFS file permssions in .NET? Tag: 53974
reflection - discover control's properties.
Hi.
I would like to be able to iterate recursively through a
web page, and for every control on the page, chech if it
has "CssClass" property and to be able to change it.
How can this be done?
Thanks
Roy Tag: how to set NTFS file permssions in .NET? Tag: 53971
JIT
For those of you coding windows Application under the framework you must
noticed that forms take a performance hit loading the first time. This is
because of JIT, I was able to fix this behavior by using ngen.exe, but then
I don't get the same optimization JIT gives me and it is a headache for
installations (negen has to be called right after the installation).
According to Microsoft, a function gets JIT to native code the first time it
is accessed. Is it possible to tell the framework to JIT certain functions
at runtime without actually calling the functions?
Basically, I would like to pre-JIT some of my functions so they don't
experience a performance hit the first time they are called.
Is this possible? Tag: how to set NTFS file permssions in .NET? Tag: 53963
GetLastError
Hi,
I'm quite new to the .net framework and try to port some old code to csharp.
In my code I have a call to a Win32 API function which returns error
information by setting the last Win32 error code. I found a
GetLastWin32Error() in the Marshal class which seems to do what
GetLastError() did.
Can anyone tell me how to get a string from the returned error code?
In Win32 API code I used FormatMessage(), in Delphi SysErrorMessage().
Anything similar in the .net class library?
thanks,
Nick Tag: how to set NTFS file permssions in .NET? Tag: 53962
Installation of Visual Studio Addin
Hello,
I'm actually trying to develop an ASP Parser addin for
Visual Studio, and have some problem deploying it.
When i try to deploy it on a machine where i didn't
compile the project the addin fails to load when visual
studio loads. There is an error and it proposes to
uninstall the addin.
When i scanned the registry while compiling or installing
i remarked that the registry was modified only at compil
time. So perhaps these registry settings(COM settings),
are missing on target machine.
Any idea, anyone? Tag: how to set NTFS file permssions in .NET? Tag: 53961
Hosting as assembly in IE
Hi,
It is said that an assembly host can be 1.Shell, 2. ASP.NET(IIS) and
3.IE brower.
I'm familiar with 1 and 2. Can sb tell me HOW TO.., for case 3 with
possibly few examples ?
TIA
Kishore Tag: how to set NTFS file permssions in .NET? Tag: 53959
How can I set NTFS permissions for a file using .NET? For example, I'd like
to allow "Write" for the Users Group.
--
Naveen K Kohli http://www.netomatix.com
"Jeff Ogata" <jogata@colesys.com> wrote in message
news:eptnU2VYDHA.2032@TK2MSFTNGP10.phx.gbl...
> How can I set NTFS permissions for a file using .NET? For example, I'd
like
> to allow "Write" for the Users Group.
>
> TIA,
> Jeff
>
>