|
Aloha,
What do you do if your ASP.NET app. is hosted somewhere where you don't have access to the eventlog?
I have uploaded my stuff, but now I get this 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 application event log of the web server. Please review this log entry to discover what caused this error to occur.
------------
I know that I can probably ask the support department to fetch the information for me, but I'm looking for a more permanent solution so I don't have to ask support again and again.
Is it for example possible to redirect the error messages to the screen or to a file?
Thank you,
|
|
|
|
|
|
You can edit your web.config file to show errors, place some code in the OnError handler in the global.aspx, use the Enterprise Library. The options are many.
only two letters away from being an asset
|
|
|
|
|
Tried both of these options, but none of them worked.
But it turned out that there was a logical explanation. My host had forgotten to enable ASP.NET 2.0 for my domain. So now my code works and I guess the options you and the other guy mentioned also work.
Thank you for your replies, Mads
|
|
|
|
|
Event log is great but there is a even better solution than event log. try http://www.app-messenger.com . Unlike event log you can create email subscription for certain messages based on message tags. They can also push you the events as they occur in real-time. you can invite multiple people and have certain message go to certain people again based on the message tag. check them out.
|
|
|
|
|
i hav created a menus using flah menu creator but i dono how to insrt it in ma asp.net page....the file has n extension .fmb
regards bia ali
|
|
|
|
|
wut exakly iz ur problm? u plas tha flah menu as n mbeded resrc.
|
|
|
|
|
first the fmb extension its for your flash project or the exported flash file?,
So, its the second option, You must to copy the flash file inside the site root and write these onto html code page.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="60">
<param name="quality" value="high" />
<embed src="xxxxxx/yyyyy" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" />
change the embed src to relative address file..
keep Learning and you never will be out of date...
|
|
|
|
|
i m doing exactly this but its i m using asp.net 2.0 and it dsnt accept the tag <embed /> it dsnt display it
|
|
|
|
|
Ok, Biaali try these lines
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="60">
<param name="movie" value="flash/mail.swf" />
<param name="quality" value="high" />
<embed src="flash/mail.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="120" height="60" />
Remember change the two flash/mail.swf urls by your relative url
And the Width and height properties.
You must to insert this Javascript in order to download the flash player, (if the user dont have installed)
This the code
keep Learning and you NEVER WILL BE out of date...
|
|
|
|
|
Check these lines from code Behind page
Imports ShockwaveFlashObjects
Imports AxShockwaveFlashObjects
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim flash As New AxShockwaveFlash
Dim percorso As String
percorso = Path.Combine(Directory.GetCurrentDirectory, "logo_tre_hp.swf")
Dim startupSize = New System.Drawing.Size(1024, 768)
Dim startupsize2 = New System.Drawing.Size(640, 480)
'Start
flash.BeginInit()
flash.Location = New Point(50, 80)
flash.Name = "Testina"
flash.TabIndex = 0
Controls.Add(flash)
flash.Size = startupsize2
flash.EndInit()
flash.LoadMovie(0, percorso)
flash.Play()
FormBorderStyle = 1
ClientSize = startupSize
End Sub
End Class
I hope work for you
keep Learning and you never will be out of date...
|
|
|
|
|
Hi,
I am using Process to run a .vbs script to copy a folder and the files in the folder from one server to another server. The code is as below :
Process myProcess = new Process();
myProcess.StartInfo.FileName = string.Concat(dirRoot.FullName, "\\myscript.vbs");
myProcess.StartInfo.Arguments = string.Concat("arg1, arg2, arg3, arg4, arg5");
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
The arg2 and arg3 are source system login, the arg4 and arg5 are the login for destination system login.
The .vbs file uses Script.FileSystemObject and wscript.Network to do the folder creation and copy file. Here is part of code:
'Open File System Object
Set oFSO = CreateObject("Scripting.FileSystemObject")
'Open Network System Object
Set oNSO = CreateObject("wscript.Network")
....
oNSO.MapNetworkDrive "I:", "\\web1\c$", false, sSourceLogin, sSourcePassword
oNSO.MapNetworkDrive "J:", "\\web2\d$", false, sDestLogin, sDestPassword
...
wscript.echo sSourceFolder1 & " --> " & sDestinationFolder1
oFSO.CreateFolder sDestinationFolder1
oFSO.CopyFolder sSourceFolder1, sDestinationFolder1
...
When I run the project on my local machine, it works ok. it means, the files are copied from my local machine to a testing server. But the problem came out when I run the project on real server, nothing is done. No error is reported and no file is copied.
I did config the IIS on the source server to enable execute permission to be script and executables for the folder containing the .vbs script file.
Does anybody have similiar experience? Any help would be very appreciated!
Thanks,
|
|
|
|
|
I would ensure the following calls create COM objects successfully.
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oNSO = CreateObject("wscript.Network")
I will also check on \\web1\c$ \\web2\d$ access from the production server using the same security context that runs the .vbs script
|
|
|
|
|
I have read some article about "To spawn a process that runs under the context of the impersonated user, you cannot use the System.Diagnostics.Process.Start method" at http://support.microsoft.com/kb/889251. Since I use both Windows Authentication and impersonate=true, I guess that's why the process couldn't start at all. But the solution posted at the above link only apply to asp.net 1.0 and 1.1. I am using asp.net 2.0 .... So I am still struggling to try to find a solution for the problem....
Do you have any ideas?
Thank you in advance!
|
|
|
|
|
hallo,
i would appreciate it if someone could tell me whether there is a way of doing the same thing as done in dreamweaver: you have many pictures loaded which are then displayed, one at a time, in a picture box. also i would like to know how to do it of course.
licec
|
|
|
|
|
PictureBox is a Windows control in ASP.NET you would use the Image control.
only two letters away from being an asset
|
|
|
|
|
Hi
We have been developing a ASP.NET 1.1 business management system over the last few months and have now delayed the inevitable long enough, reporting???
In the past we have used TallComponents TallPdf to produce reports in PDF format which works well although the object model is a bit tedious to work with at times and reporting writing can be a time consuming task. However once written it was ideal, we could produce a PDF document with the report contained store it within the archive and send it to the client, email it as an attachment etc etc etc.
So the issue is, we would now like a product that has some form of report designer interface to speed up report development, but has also a code based object model, and once the report is built output it in several formats i.e. html, pdf, word, excel, rtf etc. that can be saved in the report archive and dealt with as required
So anybody had any experience of this process and maybe have a recommendation??
Many thanks in advance
Andy
|
|
|
|
|
SQL Server Reporting Services - really pretty decent as these things go.
|
|
|
|
|
Go for MS Reporting services. If you already have licensed MS SQL Server, then it is ideal, because reporting services are part of ms sql server. What I like the most on Reporting services reports is that they are stored in RDL (report definition language) what is open xml format, so you can do with your report programmaticaly whatever you want. ReportViewer control (it is part of VS 2005, or is free to download from microsoft) supports several output formats, from ones you stated are not suported word formats. But you always can write your own rendering extension for reporting services, as format is open and extensions are easy to integrate.
Another option could be Crystal reports, but I'm not so happy with it. I deffinitely prefer reporting services.
Pilo
|
|
|
|
|
Hello Everyone,
I am working on this project, and I was wondering if there is a way to get the site address from a page. Lets say we are at www.codeproject.com, is there a way to get codeproject from URL so we know what site address we are at?
Sincerely,
The Major Rager
|
|
|
|
|
|
|
Try this code line.
Request.PhysicalApplicationPath, it return the physical address, but its something..
keep Learning and you never will be out of date...
|
|
|
|
|
How to get the Current Display Setting and apply for a form?
Thanks.
K.Alex
|
|
|
|
|
Mr. Alex,
you can use the following javascript code to get the display settings of screen
alert("Width:" + window.screen.width + ";Height:" + window.screen.height)
|
|
|
|