In my localhost it works correctly when I publish it and up to sever this error happens
path = string.Format(#"{0}{1}\{2}", Server.MapPath("~"), #"Files\Images", ShortImage.FileName.ToString());
ShortImage.InputStream.ResizeImage(150, 150, path, Utilty.ImageComperssion.Normal);
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.NotSupportedException: The given path's format is not supported.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
This might be a long shot but if your path somewhere where your website cannot access? Granted, you as a windows user may be able to access the "E" drive, but, assuming you are running this from a published site that is not located on E drive or maybe limited to maybe just it's directory, there may be an access issue. Best way to test it is to put the path to something inside the project folder and see what happens.
Related
If I access my home page, show error like this :
Server Error in '/' Application.
Index has not been initialized.
Description: An unhandled exception occurred.
Exception Details: System.InvalidOperationException: Index has not been initialized.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
The error above occurs when I restart Porta Azure like this :
How can I solve this problem?
Before I restarted the azure portal, there was no error
1.Check the Index View with its Controller.
2.Maybe your Object reference is not to an instance of an Object.
3.Check the Controller.
This Error generate from the controller.
Okay I tried to play a little bit with the StatsManager but I always got an exception trying to use anything with it when comes to
Set a stat
Get a stat
Because I doubted myself I had the idea just to use the UWPIntegration sample that is on Github . I also added the Leaderboard items to my own project so the code works with my test sandbox. Logging in works as it should just StatsManager causes the issues.
But as with my own code I just get the same error / exception which is the following. I assume there is a bug in the code provided or the service configuration is not working as intended.
System.AggregateException occurred HResult=0x80131500 Message=One or more errors occurred. Source= StackTrace: at
System.Threading.Tasks.Task1.GetResultCore(Boolean
waitCompletionNotification) at
Microsoft.Xbox.Services.XboxLiveHttpRequest.<>c__DisplayClass35_0.<GetResponseWithAuth>b__1(Task1
getResponseTask) in
D:\Data\VisualStudio\Projects\xbox-live-api-csharp\Source\api\XboxLiveHttpRequest.cs:line
117 at System.Threading.Tasks.Task.Execute()
Inner Exception 1: AggregateException: One or more errors occurred.
Inner Exception 2: WebException: The remote server returned an error:
(404) Not Found.
Issue was found. My service.config used a wrong parameter name, see below in the comments of the solution.
There are a few different reasons why this might be the case. Not surprisingly, it means the cloud can't find the stat you've requested.
If you use Fiddler, you can capture the call and share with me the correlationID header. If you don't know Fiddler, let me know and I can help you.
However, some ideas off the top of my head
Make sure that you're in development mode - your sandbox is the one from the dev center site. If you aren't sure, you can use the Windows Device Portal to see what your sandbox is - just click on Xbox Live in the left hand navigation.
Make sure you have hit "Test" on the dev center page where you defined your featured stats and leaderboards.
Make sure you are requesting the stat by the ID name you specified in the config window, not the display name.
I have exported the database from the server and imported it on my local pc. I have changed the connection string in my user.config file. The database is the same. But after that when I visit any page in my mojoportal project, it shows me an error saying:
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
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.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).*
Can anyone tell me why this is happening? Or how it can be solved?
I hope you have changed connection string on right place ( Inside portal web.config). There are two connection string one for Authentication and another one is for your application.
Please check that and if it wont work then get the path of error from Stack trace that will tell you which method is throwing an error after that you need to debug that. (Seems like uniqueidentier field is not properly defined/manged)
I have a WCF service running on azure and it gives this exception sometimes at random:
The underlying provider failed on Open.
There was no inner exception so I started looking into this. I enabled azure diagnostics so I could trace and log this exception.
I found out that this Exception is thrown whenever the following exception is thrown:
(MySql.Data.MySqlClient.MySqlException) Exception Message = "Unable to
connect to any of the specified MySQL hosts."
So I looked in to this and found out that EntityFramework.pdb cannot be found.
I tried solving this by checking Microsoft Symbol Servers. This does not solve the problem.
Some extra information :
The mysql database is made with a code first approach.
Mysql logged this :
I am creating a payroll application and i have to do processing of over 500 employees. When I run the application on my local machine, it would run the application and produce correct information. It would take close to 3-4 mins to complete the processing of data. When i deploy my application to IIS and try to run it, i would get the following error below:
Server Error in '/' Application.
Request timed out.
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.Web.HttpException: Request timed out.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Request timed out.]
I tried changing the connection time out (seconds) to 600 in the advance setting for IIS for that particular Site but that didnt work. Any suggestion?
Try to change web.config parameter <httpRuntime executionTimeout="90"/>
90 - is default value in seconds
you need to set greater value