asp.net-development-serv

Asp.net MVC page is giving Mime type warnings for image files

荒凉一梦 提交于 2019-11-30 10:41:09
While I do not see any functionally or jquery UI elements affected by this, but when I access my asp.net mvc web page the chrome developer console is logged with a bunch of error messages like so: Resource interpreted as image but transferred with MIME type application/octet-stream. All of the warnings are for jquery UI images (though I don't have any custom images on there so I don't know if it's jquery UI only). All the jquery images still load correctly. Does anyone have any insight on why this is happening? egoodberry Are you running your site from Visual Studio's built-in web server?

Asp.net MVC page is giving Mime type warnings for image files

。_饼干妹妹 提交于 2019-11-29 16:35:05
问题 While I do not see any functionally or jquery UI elements affected by this, but when I access my asp.net mvc web page the chrome developer console is logged with a bunch of error messages like so: Resource interpreted as image but transferred with MIME type application/octet-stream. All of the warnings are for jquery UI images (though I don't have any custom images on there so I don't know if it's jquery UI only). All the jquery images still load correctly. Does anyone have any insight on why

ASP.NET Development Server concurrent processing doesn't work

放肆的年华 提交于 2019-11-29 10:37:27
I'm trying to find out why ASP.NET Development Server is not processing the requests concurrently. So I've created a simple aspx page with the following code: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load System.Threading.Thread.Sleep(10000) End Sub If I open the page two times, the response takes 20 seconds. That means, the server executes requests one by one (not concurrently). Following advice provided in this topic , I've added EnableSessionState="false" to the page, but that doesn't seem to help. Any ideas how to make the requests process

Setting static port number on Visual Studio Dev Server with a WebSite project

爷,独闯天下 提交于 2019-11-29 03:44:01
I have a WebSite project in Visual Studio 2008 (not a Web Application project!) How do I set the ASP.NET Development startup port to a static port in a WebSite project? To specify a port for the ASP.NET Development Server - WebSite / WebServices projects In Solution Explorer, click the name of the application. In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list. This will enable editing of the Port number property. In the Properties pane, click the text box beside Port number and type in a port number. Click outside of the Properties

ASP.NET Dev Server (Cassini), IIS Express and multiple threads

大憨熊 提交于 2019-11-28 14:04:56
I can't seem to find any information on this anywhere. Either it's my imagination or the ASP.NET Dev Server (Cassini) cannot handle multiple threads (e.g. multiple requests). Is this correct? Does IIS Express handle multiple threads? Yes, functionally speaking, cassini processes one request at a time. IIS Express is an almost full IIS implementation and will provide expected performance. 来源: https://stackoverflow.com/questions/3261144/asp-net-dev-server-cassini-iis-express-and-multiple-threads

ExecuteScalar returns null or DBNull (development or production server)

混江龙づ霸主 提交于 2019-11-28 11:10:51
I'm trying to add a column to an existing DataRow in C#. Afterwards the column will be filled with a single value from my database. DataRow dr already exists and column "COLNAME" also exists. comTBP is my SqlCommand . dr["COLNAME"] = Convert.ToInt32(comTBP.ExecuteScalar()); This all works fine if there is a value in my database and ExecuteScalar() can get that value. If I test this code on my development server (local) it also works if ExecuteScalar() return null or DBNull and the value of my new column is 0. But the problem appears if I deploy my code to the production server. If I do

Unable to launch the ASP.NET Development server because port '1900' is in use

旧时模样 提交于 2019-11-28 08:09:38
I was developing just fine in VS 2008 and testing my ASP.NET web site on my development server when suddenly I was unable to run my web site anymore. As soon as I hit F5, the message appears: Unable to launch the ASP.NET Development server because port '1900' is in use. It doesn't matter what port I change to, it's always in use. I have tried: Changing the port number Restarting Visual Studio Rebooting my machine Installing IIS Clue: My IIS refuses to start. But I didn't have IIS installed when I was happily working earlier, so that is probably not the issue; it might just be highlighting

ASP.NET Development Server concurrent processing doesn't work

痞子三分冷 提交于 2019-11-28 04:25:17
问题 I'm trying to find out why ASP.NET Development Server is not processing the requests concurrently. So I've created a simple aspx page with the following code: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load System.Threading.Thread.Sleep(10000) End Sub If I open the page two times, the response takes 20 seconds. That means, the server executes requests one by one (not concurrently). Following advice provided in this topic, I've added

Is There a Way to Make Remote Calls to ASP.NET Development Web Server?

孤街浪徒 提交于 2019-11-27 20:36:07
I know that generally speaking, this cant be done, that is get another PC to call a site hosted under the ASP.NET DEvelopment Web Server remotely (generally you can only use localhost:port to get to it). But I was wondering if anyone has seen, or knows of a way to get around it? I am a RESTful API developer in my office, and I would like the PHP guys to test the APIs on my machine so that I can have the Visual Studio 2005 debugger attached, and I can more easily find problems. THe main issue is, that my machine is a Vista machine, and unfortunately, the APIs I have developed do not work under

Setting static port number on Visual Studio Dev Server with a WebSite project

北城余情 提交于 2019-11-27 17:45:06
问题 I have a WebSite project in Visual Studio 2008 (not a Web Application project!) How do I set the ASP.NET Development startup port to a static port in a WebSite project? 回答1: To specify a port for the ASP.NET Development Server - WebSite / WebServices projects In Solution Explorer, click the name of the application. In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list. This will enable editing of the Port number property. In the