|
So, if you have no code enclosed within a #IF DEBUG #ENDIF block, and you set <compilation debug="false"> inside the web.config (which would prevent insertion of debug symbols), would there still be tangible advantages to issuing under a "Release" configuration? (I just tested and my dll is 96kb whether I am in Debug or Release mode...even with the "Optimize Code" flag set)
...There should be a "Run slow" checkbox that cannot be unchecked lol.
The Man from U.N.C.L.E. wrote: 3)For a debug build you may not care about CPUs if the dev environment is all 32bit, but in production you have to get specific or suffer the consequences.
Would you care to enumerate the consequences? Even if the prod processors are 64-bit, they'd still have to be running an x64 OS for there to be any problems, right?
"I need build Skynet. Plz send code"
|
|
|
|
|
...and even then, that's slightly puzzling because the x86-64 extension is fully backwards compatible with the legacy x86's 32-bit instruction set. Why would there be consequences to targetting an x86 even if it were running on an x64 processor?
Or are you inferring the converse? Since a target of "Any CPU" runs on the 64 bit CLR, are you implying that if you have x86 hardware, you need to specifically target it???
"I need build Skynet. Plz send code"
|
|
|
|
|
Targeting x86 running on x64 requires you to change the enable32BitAppOnWin64 setting on the AppPool to true. So one possible problem there.
Targeting AnyCPU when you have a third party dll built for 32-bit will crash if the server os is upgraded to 64-bit.
So if there is any possibility of deploying on 64-bit then make sure you target x86 or x64 and not any-cpu, unless you are absolutely certain it will run under both.
If you are only deploying on 32-bit os then that setting is irrelevant.
|
|
|
|
|
Correct on the 64-bit.
We had an instance recently where we had not set for 32-bit and referenced a 32-bit third party dll. One client upgraded without telling us, until it all died. In practive we set that for debug as well, so not a debug/release issue as such, just to take more care when setting up a release build.
|
|
|
|
|
Hi,
I want to send the email from my standalone desktop application.
I searched for a stand alone email server but got only
http://www.ericdaugherty.com/dev/cses/
Actually I want to do some thing like
<br />
<br />
private void mailNow()<br />
{<br />
SimpleServer simpleServer = new SimpleServer(65535, null);<br />
simpleServer.Start();<br />
<br />
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();<br />
message.To.Add("zxc@abc.com");<br />
message.From = new MailAddress(this.Text.ToString() + "@youmachine.com", this.Text.ToString());<br />
message.Subject = "TEST MAIL from " + this.Text.ToString();<br />
message.Body = "TEST MAIL FROM " + this.Text.ToString();<br />
SmtpClient smtpClient = new SmtpClient("localhost", 65535);<br />
smtpClient.Send(message);<br />
<br />
simpleServer.Stop();<br />
}<br />
:? but my application hang at line
<br />
simpleServer.Start();<br />
anybody knows how to use that; actually I am new to C# have worked only on Sun Java
|
|
|
|
|
Start debugging through the service or contact the author
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
yeah
already tried that; actually it stuck in the while(true) loop in the Start method.
i think i have to background this (start it as a thread) and move to the next line for connecting to it
any hint or suggestion from where i can get help regarding threads to solve problem like this
|
|
|
|
|
You'll have to contact the author of SimpleServer to get that solved. I've never heard of it, nor used it.
Your other problem is that most SMTP servers will not relay or receive mail from untrusted sources. So, depending on your mail servers config and the ones you're sending mail to, those servers may just reject your mail and there's nothing you can do about it.
|
|
|
|
|
well if i am able to send the mails; i'll just attach the domain keys not to be marked as spam by the receiving server.
|
|
|
|
|
Hi
how to integrating RS 2005 to Vs 2008 to show report using reportviewer control.
Can You provide me code or If u know any link available.
Please forward me.
try and try untill reach success..
|
|
|
|
|
Hi,
Hope this is the right place to post the issue with ActiveXControl. (If not, please let me know the correct Message Board.)
I've a windows class library and would like to create ActiveXControl for that. I regstered the dll using RegAsm.exe and created the below html in local IIS(wwwroot) and accessed. But its not showing the design.
Please let me know if I missed any steps in creation of ActiveXControl. Thanks in advance.
<html>
<body color=white>
<hr>
Please note that you MUST load this HTML document from your local IIS, or from a TRUSTED SITE
<hr>
<font face=arial size=1>
<OBJECT id="myControl1" name="myControl1" classid="0AE91E82-5EE3-4d27-B7ED-CE2C0B059BB7" width="500" height="200">
</OBJECT>
</font>
<hr>
</body>
</html>
classid is the GUID of the class.
In one of the class, I declared the GUID as below.
[
Guid("0AE91E82-5EE3-4d27-B7ED-CE2C0B059BB7"),
InterfaceType(ComInterfaceType.InterfaceIsDual),
ComVisible(true)
]
|
|
|
|
|
This is probaby the best place for this question.
|
|
|
|
|
|
Hi
I Want to Save My new scaned MultiPageTiff File on other existing MultiPageTiff File
Can you halp me?
|
|
|
|
|
|
hi
I want to please your comments and advice in a project:
the idea is to write and read from a text file format by checking the size of what is going to write or read, is like creating a table in sql server and fill in according to the size of variables declared
if you Propostion in that sense I thank you very much.
|
|
|
|
|
This isn't very clear, but I think you are asking for help on how to write out a fixed-width column text file?
You can use a StringBuilder object to append lines.
You can use the PadLeft and PadRight methods on a string to create equally sized columns.
If this is not what you are after, please clarify your question a little.
Cheers,
|
|
|
|
|
ok, i should write in the text file to a value that must not exceed 14 characters, how to do that???
|
|
|
|
|
Check the value of string.length to make sure it doesn't exceed 14:
if (!yourstring.length>14)
{
}
Cheers,
|
|
|
|
|
Hi
I developed a C# winform ping application (runs in background to perform periodic pings) and I use a service to keep it running. The application writes to a database (triggered by periodic pings). The app and service are hosted on an application server.
Problem: Application doesn't write to database.
Observation: It might have something to do with login because when I start the application manually it works (writes to database periodically) - the application icon shows on my system tray. As soon as I log off, and login again, my task managers shows that the application and the service are running (as processes), yet the application is not visible to the desktop (no icon on system tray).
Question: Is my approach flawed? Are there other ways of getting to run routines without having to login to a system (cause as soon as one logs off, the app stops)
I would appreciate a some light from anyone.
Thanx
...And there was Fufununu in da heeezay!
|
|
|
|
|
Q: Why not let the service do the pinging and let it write to the database?
Does the failed write attempts from your application generate any exceoptions or errors that could be helpful?
|
|
|
|
|
Thanx Calla
No exceptions are generated. However, I will explore the option of making the service write to the database and just eliminate the functionality on presentation layer. I could use the app to only set ping intervals.
...And there was Fufununu in da heeezay!
|
|
|
|
|
OK, make sure you use a valid user account when writing to the database. This is probably what is causing your problem.
|
|
|
|
|
Wie_Funu wrote: Observation: It might have something to do with login because when I start the application manually it works
When you run the application "manually", then it will run under the account of the user that's currently logged in. When you run it as a service, then there's no logged-in user.
What account[^] are you using for the service?
I are Troll
|
|
|
|
|
I'm using the system account
...And there was Fufununu in da heeezay!
|
|
|
|