i want to create a schedule for my windows media player instance in form in vb.net so that to arrange and play them according to time automatically how can i do that..
I have a Asp.net web service running on www.domain.com/Service.svc that I connect to using jQuery from my asp.net website. Everything works perfect if the user access my website with www.domain.com. But if the user uses only domain.com I get error:
There was no channel actively listening at 'http://domain.com/Service.svc/get?date=2010-10-09'.
This is often caused by an incorrect address URI. Ensure that the address to which
the message is sent matches an address on which a service is listening.
In my web.config I use the serviceHostingEnvironment tag to get the service running on my webhost (it doesn't work otherwise). Maybe this is what causes the error?
Here is my system.serviceModel in web.config (I had some problems setting up the web service so that's why my web.config might be a bit messy:
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="ServiceAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
<baseAddressPrefixFilters>
<add prefix="http://www.domain.com"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
<services>
<service behaviorConfiguration="ServiceBehavior" name="Service">
<endpoint address="" behaviorConfiguration="ServiceAspNetAjaxBehavior"
binding="webHttpBinding" bindingConfiguration="ServiceBinding" contract="Service" />
</service>
</services>
<bindings>
<webHttpBinding>
<binding name="ServiceBinding" maxBufferPoolSize="1000000" maxReceivedMessageSize="1000000">
<readerQuotas maxDepth="1000000" maxStringContentLength="1000000"
maxArrayLength="1000000" maxBytesPerRead="1000000" maxNameTableCharCount="1000000" />
</binding>
</webHttpBinding>
</bindings>
</system.serviceModel>
How can I make it possible for my users to access my webservice also when using only domain.com?
We use Xunit.net as our unit test framework for use on our .NET4 assemblies. We have it integrated into our TFS 2010 team builds quite successfully.
I now want to add code coverage to the nightly builds as well.
Does anyone have a list of coverage tools that work on 4.0 assemblies and could be integrated into our automated builds?
Hi Folks, does it matter if we install .net framework & then visual studio or does visual studio comes with the framework ?
I know it's a basic question but i never thought of this honestly.
TIA
Hi,
I have an ajax web application(asp.net). some of users report the a problemt that when they work sometimes by system ( and pages who have ajax calls) their connection to server will intrupt and just a blank page they will see.
they can't browse any other page on my site while they close all open browsers and reopen site.
Is there any idea about this and how can I fix it?
thanks
Mehdi
The MSDN documentation for using an asynchronous controller mentions choosing an asynchronous controller when you want to provide a way for users to cancel requests.
I couldn't find any documentation related to actually allowing users to cancel asynchronous requests, however. Is there a way to indicate to ASP.Net and/or the MVC framework that a request should be canceled?
With windows and sql server accounts, I can access the logged in user with functions like: user_name() or suser_sname().
Can I access the user that is logged into asp.net in the same way?
Hi All
There is Role Management feature in ASP.NET
It works on local development machine.
For our project we need customers admin to be able to create new users and manage their roles.
So, basically same what aspnet_regsql.exe does.
Question is
Should we develop our own pages and forms or use some ready made tool?
Thanks!
i have some picture files that were included in a vb.net project
how do i reference those files in my code?
what it be just filename.ext
or would it be project/filename.ext
or would it be something like environment.getfolderpath.project/filename.ext??
the build action is NONE, and it is to be copied to output folder
Hi,
I'm trying to consume WCF service using asp.net2.0
Here are some details:
1) WCF service hosted on different server IIS
URL : http://myserver/Service.svc
2) Web.config
3) asp.net page
4) myjs.js
MYNameSpace.IService.MyMethod();
*** here it throws error that 'MyNameSpace' is not defined.
Everything works fine on my local machine.
Problem when I try to consume from asp.net2.0 application
Any inputs will be truly appreciated.
Thanks in advance
I want to deploy my .net MVC 2 appication on IIS6.0.
Will it require to change route path in global.asax file.
In my application i have used html link, ajax request and Html.ActionLink.
The code lines in the Global.asax file are:
routes.MapRoute(
"LogOn",
"{controller}/{action}/{id}",
new { controller = "Account", action = "Index", id = UrlParameter.Optional }
);
Please suggest me.
Thanks and Regards
Munish
Hello,
How do I create non visual components in .NET that can be dragged and dropped onto a Form ?
For example the imagelist component is a non visual component, it appears in the toolbox and can be dragged onto a form and properties can be set for that component.
How can I achieve that ? How can I create non visual components. I know about user controls but that is not what I am looking for.
Thank you
I have seen at least two ways to include an external log4net config file in an ASP.NET web application:
Having the following attribute in your AssemblyInfo.cs file:
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)]
Calling the XmlConfigurator in the Global.asax.cs:
protected void Application_Start()
{
XmlConfigurator.Configure(new FileInfo("Log.config"));
}
What would be the best practice to do it?
We are working on exception handling with ASP.NET web applications (with C# language). Would you please let me know the best practices of Exception handling?
A while back a found a great-looking framework that allowed .net developers to implement a virtual file system. I thought I had bookmarked it, but it seems I haven't.
Does anyone know any frameworks for doing this?
EDIT: Here's a hint... It had a catchy, short name and it's own domain. Sorry, that's all I can remember :p
With alle the new paralell programming features in .NET 4.0, what would be a a simple and fast way to implement the producer-consumer pattern (where at least one thread is producing/enqueuing task items and another thread executes/dequeues these tasks). Can we benfit from all these new APIs? What is your preferred implementation of this pattern?
I guess the title contains my whole question. How can I draw a string onto an image in Flash and .NET/GDI+ respectively and gain the same result? (I'm not a Flash programmer myself and it is rather hard to find out about what kind of unit Flash uses by googling for something like "flash font size"...) Ekeforshus
Hi: Am trying to understand the ASP.NET MVC ViewData with respect to its size. Since this object is passed between Controller to View, how big this could be? Say for example, if DataTable is passed from Model, and Controller is going to pass it to View. Is there any best practices OR any one had any bad experience to share here?
Thanks in advance.
What are your opinions on using web controls in an MVC context?
I came across a good discussion here http://odetocode.com/Blogs/scott/archive/2009/04/09/asp-net-mvc-controls-and-good-versus-evil.aspx but would like to know what the community thinks.
Hi Team,
I am using a dropdown list in ASP.NET with C#.
I am trying to bind a dictionary to the dropdownlist.
How can we specify the "Text" (key of dictionary as Text of drop down) and "value" (value as Value) for the dropdown?
Could you please help?
Note: There is a constraint that a class should not be introduced for this purpose. That is why I am trying to use a dictionary.
Thanks
Lijo
Hai guys,
I ve developed a salary calculating software using vb.net.... Its working fine and i ve converted it to an exe file... My drawback is it can be copied and pasted in another system very easily... I want to generate a key for the exe file and while installing the key should be used and when installation is completed ,the key should not be used again... Is this ya secured one or give me some ideas how it can be done....
Using the asp.net file upload control is very easy, i'm trying to squeeze it into my site and the dam thing is very ugly!. Can I not change the browse button to an image of my choosing ?
So far i'm failing to achieve this seemingly simple goal. Any ideas on this one ?
Thanks