Error Report - Hard To Diagnose Because I Can't Get It To Fail
Apr 5, 2011
I've received 5 error reports from a site overnight.
XML Code:
Exception information:
Exception type: System.Data.SqlClient.SqlException
Exception message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
It would seem that it's an issue with the server but it was reported to always occur at DomainModel.Services.ConfigService.get_companyName() which occurs when my config service asks the database for the company name using ByName("Company_Name")
Csharp Code:
private static Func<mvCmsContext, string, Configuration> _byName =
CompiledQuery.Compile((mvCmsContext context, string configName) =>
Is it just a server glitch or am I going to have to do some debugging today? I can't get it to fail no matter what I try.
edit - I just noticed one of the error reports was from a separate site. The first 4 were a local IP (ugh, probably the site owner) on one site between 11:00-11:04pm while the other was a chinese IP on my site at 11:07.
View 4 Replies
Similar Messages:
Dec 16, 2010
I have an ASP.net web service application that connects to a Progress OpenEdge 10.1B database via ODBC. My development machine is XP Pro and runs everything fine. I am now moving the application into a test environment. The test machine is also XP Pro. It matches the dev machine except for that the Progress Server is not running locally. I am able to run the project out of VS2010 and the web service makes the ODBC connection and returns the data without error. When I deploy the application to IIS (which is running locally) the ODBC connection fails with this error: *System.Data.Odbc.OdbcException: ERROR [IM003] Specified driver could not be loaded due to system error 126 (OpenEdge 10.1B driver).*
View 1 Replies
Nov 1, 2010
I have been tasked with implementing a strategy to catch all errors in an ASP.net application which cause a user request or interaction to crash and then e-mailk this exception to a support team in advance of a user calling about the error.Some errors however are not causing the page to crash or be redirected to the custom error page but these are being emailed to the support team instead of simply being loggedMy requirement is to seperate what exception types will cause a page fail and which will not.Example I am currently receiving a System.Web.HttpUnHandledException which is not causing any page to fall over and therefore is not of relevance to the support team. this can be logged but does not require emailing.
View 1 Replies
Nov 15, 2010
I have a web server with more than a few ASP.NET sites running on it. Every so often, i notice that IIS is pushing the server's CPU to 100%. The sites share application pools, per .NET version they are running.
What i'm looking for is a way to be able to pinpoint which site it is that is doing this, using some tool. If that tool happened to get down into the code to show it, that would also be nice. If not, i'm happy just knowing which site is causing the issue.
I've already tried using ANTS. However, with ANTS you need to know which site it is, and then have it running and waiting on said CPU-crashing web app. Not perfectly ideal.
View 4 Replies
Jun 24, 2010
How can i diagnose the 404 errors on my asp.net application.It seems in iis logs that GET request to my *.aspx page return success ( code 200)The POST request to same page returns a 404 error , not able to diagnose why.Is there a seperate setting to allow POST request to this page or some where in the application.
Edit #1 The Page has a grid ( ingragistics grid, third party control) that makes a xmlhttprequest to the page itself to load some data on the fly. It sometimes work but mostly give a 404.fidler also confrims the 404 error with the url & that url does exist and is correct. I also verified the logs in IIS it confirm the 404 error.
View 1 Replies
Jan 14, 2011
This program used to work when I had VWD 2005 express and SQLSERVER 2005 express. Then we upgraded to VWD 2008 express and SQLSERVER 2008 express. Now it fails Error running adodb Provider cannot be found. It may not be properly installed. 3706 To clarify; I used to run variations of the following to create small offline cub files that I could email to remote Users:-
PROVIDER=MSOLAP;
DATASOURCE=C:TESTAMRunAdodbTestMyCube.CUB;
SOURCE_DSN=AMCubeData;
CREATECUBE=CREATE CUBE AMCubeData(
DIMENSION [Channels],
LEVEL [ALL Channels] TYPE ALL,
LEVEL [Channel Group Name],
LEVEL [Channelname],
MEASURE [Sales Val]
Function Sum
Format 'Standard');
INSERTINTO=INSERT INTO AMCubeData(
[Channels].[Channel Group Name],
[Channels].[Channelname],
MEASURES.[Sales Val])
SELECT [ChannelGroupName] AS Col1,
[channelname] AS Col2,
[Sales Val] AS Col23
FROM dbo_qryCubeDataExtra
;
in a VB6 program that ran them in a ADODB connection something like :-
Dim MyCnn As ADODB.Connection
On Error GoTo Err_ErrorHappened
Set MyCnn = New ADODB.Connection
MyCnn.Open (MyAdodbcmd)
View 7 Replies
Feb 1, 2010
when i run the crystal report , there is message "The report you requested requires further information."For dataset , it requires username and passwordI cannot login the report page.....
View 9 Replies
Apr 17, 2010
Yesterday I added a custom MembershipProvider to an ASP.NET web application, but when I deployed the application to its remote host server, it failed. I know I had the login info correct, and I also know that for nearly any exception in the login process, the Login control displays the standard error message, "Your login failed", so I assume something is wrong in the code/config.
What can I do to diagnose what is wrong on the server?
BTW: This weekend I only have FTP access to the server, so no event log, and CustomErrors is already set to Off.
THE END: I was an idiot, and using the wrong query window to check if the my login actually existed on the server.
View 1 Replies
Dec 2, 2010
some i am getting a error when trying to generate report through crystal report.the error is
--------------
Error Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Error System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
at EOD_Schedular.frmMain.GenerateReport(Boolean ViewOnly)
at EOD_Schedular.frmMain.Generate(Boolean ViewOnly)
Method Name: GenerateReport
Line: 0
Column: 0
Sql: Not Found
View 2 Replies
Mar 2, 2010
Have an asp application and getting: "Invalid Report File Path" when binding a DataSet.
[Code]....
View 2 Replies
Sep 17, 2010
I am getting below error while generating report using crystal report:
Error in File C:WindowsTEMP
epEnquiry {095737EB-07B4-437D-9E86-85780B7417B0}.rpt:
Access to report file denied. Another program may be using it.
For this i did google and found some solutions but still its not working:
what i tried:
-given full access to aspnet and network services on my root directory and reports folder and then restarted iis.
OS:windows server 2008(64)
vs2008 application.
but still getting same error.
View 1 Replies
Aug 16, 2010
i write a site and get this error, i using VS2010.
An error occurred during local report processing.
The definition of the report 'ModulesReport1.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
i try run on my machine its all work fine, but when i complier and run it on Window server 2008 get this error.
I read [URL] I install the ReportViewer.exe but still cannot find the Microsoft.ReportViewer.ProcessingObjectModel.dll, however I got find it Microsoft.ReportViewer.ProcessingObjectModel in C:Windowsassembly and is not a dll file.
View 1 Replies
Jan 19, 2010
I am generating reports using localreport. It all works fine on my local machine but throws following error when deployed to dev/test/prod servers:
An error occurred during local report processing.
The definition of the report 'Main Report' is invalid.
The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.
The code files are same on local as well as on the servers. What am I missing here?
View 3 Replies
Feb 24, 2010
The simple website I am trying to build is a list of banks with their corresponding website. I also wanted the ability to add banks/website with the use of some text boxes and a button click event. I've got this fully working until I publish it. When I try to run it on the webserver it say it can not find the specified file c:windowssystem32inetservURLs.xml Now I understand the problem I just can not seem to fix it with out hard coding the path of the file into code.
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
' Load the Document
Dim Doc As New XmlDocument
Doc.Load("URLs.xml")
'Create a New Element
Dim bankNode As XmlNode
bankNode = Doc.CreateElement("bank")
'create and add sub elements for this node
Dim nameNode, addressNode, dateNode As XmlNode '
nameNode = Doc.CreateElement("name")
addressNode = Doc.CreateElement("address")
dateNode = Doc.CreateElement("date")
bankNode.AppendChild(nameNode)
bankNode.AppendChild(addressNode)
bankNode.AppendChild(dateNode)
'add the text data
nameNode.AppendChild(Doc.CreateTextNode(tbWebsite.Text))
addressNode.AppendChild(Doc.CreateTextNode(tbAddress.Text))
dateNode.AppendChild(Doc.CreateTextNode(DateTime.Today))
'add the new element to the end of the list
Doc.DocumentElement.AppendChild(bankNode)
'save it
Doc.Save("URLS.xml")
End Sub
End Class
View 6 Replies
Apr 7, 2010
I built a crystal report using crystal report 2008, and have it working fine aganist my test db. in my c# code that loads the report I put this in:
[Code]....
but problem is when i pushed this change to production, the report was stilling pulling test data, even though the web.config entry (LocalSqlServer) was updated in production to use production db. Could I have setup the crystal file incorrectly? When I'm creating the crystal file and connecting it to the db, is there something that I need to check or uncheck to tell it I'm going to dynamically supply the db connection rather than having it use the one I used to setup the report?
View 1 Replies
May 7, 2010
I want to extract some keywords out of a query string for a search application in asp.net.I decoded the url string first, so it's plain textI have this to start with, but I want to add a keyword group
([?&])q=[^&]+[&]?
I get this ?q=harbour landing dental&I'd like to trim off the stuff for pure words, but not sure if that's possibleI also have a long list of possible query string value fields that I want to check against
?q=
@q=
?qs=
&qs=
View 2 Replies
Apr 13, 2010
I am trying to make a simple photo gallery website. Using ASP.NET and C#. Right now I don't have a server set up but I am just using the development one that Visual Studio Starts when you make a website project and run it.
I have a folder on my hard drive that contains an unknown number of images. I want to write a piece of code that will go through each image and add them to the default webpage. I have tried this code but it doesn't work. What am I doing wrong? Should I be using a ListView control or a DataView or something like that? Do I need to add a virtual directory in order to access the images? If so, how do I to that on this test server?
ALSO, how do I set the position and alignment of these pictures? For example, how would I make it so that the pictures are in a line vertically and centered on the webpage?
protected void Page_Load(object sender, EventArgs e)
{
string[] filesindirectory = Directory.GetFiles(@"C:UsersJordanDesktopWeb Images");
int i = 1;
foreach (string s in filesindirectory)
{
Image img = new Image();
img.ID = "image" + i.ToString();
img.ImageUrl = s;
img.Visible = true;
Page.Controls.Add(img);
i++;
}
}
View 3 Replies
Aug 31, 2010
I am running a LINQ query which populates a list used by a DropDownList, I need to insert an "Unassigned" value to the list. The function below queries the values correctly from the db but does not insert the "Unaasinged" value to the list.
[Code]....
View 2 Replies
Jan 4, 2011
As the title says then the question is relative simple however I cant decide whether a resource file with strings in is better than hard-coded strings...
View 3 Replies
Oct 19, 2010
I wonder how to hard code the configuration below in a class. I have a case where I cannot use app.config (due to creation of dll). The code below is probably not enough.. hard coded in class
ContractDescription contract = new ContractDescription("Common.MyInterfaces.IConnector");
Binding binding = new NetTcpBinding();
binding.Name = "net.tcp.binding";
EndpointAddress endPointAddress = new EndpointAddress("net.tcp://localhost:9001/Connector");
ServiceEndpoint serviceEndpoint = new ServiceEndpoint(contract, binding, endPointAddress);
[Code]....
View 3 Replies
Jan 29, 2011
i have web site, and i am using <asp:FileUpload ID="fileUploader" runat="server"/> to upload client xml file in sql database.
My site is hosted on Testing server, using IIS7.0, but client don't have iis server on his local machin.
Now the problem is that, if the user is trying to upload the xml file(or text file) from local machine(client machine), when user click the Browser button of "asp:FileUpload" control to open the local hard drive (C:) it's not openinig the client machine(local machine) hard drive(C: or D:). so user is not able to select his file location from his local machine to upload it.
But after clicking the Browser button it opening the Server hard drive.
My code is Given Below:-
[Code]....
View 2 Replies
Jan 19, 2010
I have a dropdown list with hard coded values:
<asp:ListItem Text="One Day Shoots" Value="1" />
<asp:ListItem Text="Multi-day Shoots" Value="2" />
I want to use this to insert and edit values from a db. For example when adding a record the user selects 'One Day Shoots' and 1 gets inserted into the database. Then if the user goes to edit the page since the value in the db is 1 then the 'One Day Shoots' is selected.
One way I considered accomplishing this was by using a hidden feild - when the user selects something in the dropdown list the field is updated with the value, then when the user actually adds the record the value in the feild is submitted. I'm pretty sure this would work but is there a better way?
View 3 Replies
Jun 15, 2010
I'm relativley new to ASP and am using VB for the coding. I have a page that has a few fields on it, one being a drop down list that get's populated from a SQL Server.
I used the GUI to generate this form (see below), the connectionstring:Prod1ConnectionString that is stored in the web config file is hard coded. I want to change that I use the connection string that is passed as a Session parameter. I've been looking for hours for an example of how to remove the connectionstring from the web code and place the proper code in code behind script on the load_page event.
[code]....
View 11 Replies
Aug 18, 2010
I am planning to deploy and asp.net application to a UNC path and create a virtual directory that points to the UNC path. For example the location of the asp.net application would be:
View 3 Replies
Jul 18, 2012
In my application we are using fileupload controle and stroing the imges in other then Root directory.
Now i want to display the those saved image as Image in web page.
View 1 Replies