我在global.asax中使用此路由的MVC 3应用程序
routes.MapRoute(
"ProfilePictureSmall", // Route name
"small/{PictureID}.jpg", // URL with parameters
new { controller = "Picture", action = "Show", Size = "small", PictureID = Guid.Empty } // Parameter defaults
);
Run Code Online (Sandbox Code Playgroud)
这是我的控制器的动作
public ActionResult Show(string Size, Guid PictureID)
Run Code Online (Sandbox Code Playgroud)
此路由在我的计算机上不起作用,但它适用于其他本地计算机和测试服务器以及实时服务器.它曾经在我的电脑上工作,但我最近重新安装了我的系统,所以我认为它与此有关.
有没有人有任何想法?
PS:所有其他路线都可以正常工作.如果我删除.jpg,这个也有效
有人在他们的Monodroid应用程序中导入了这个滑动菜单项目https://github.com/jfeinstein10/SlidingMenu吗?
我在新的JavaLibraryProject中导入了jar文件(com.slidingmenu.lib.slidingmenuactivity.jar).
我创建了一个从SlidingActivity扩展的新活动.
我的项目构建没有任何错误,但在运行时我得到此异常
Java.Lang.NoClassDefFoundError: com.slidingmenu.lib.R$layout
Run Code Online (Sandbox Code Playgroud)
上
base.OnCreate(bundle)
public class MainActivity : SlidingActivity
{
public override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle); //The EXCEPTION is thrown here
SetContentView(Resource.Layout.activity_main);
}
public override void SetBehindContentView(int p0)
{
base.SetBehindContentView(p0);
}
}
Run Code Online (Sandbox Code Playgroud)
任何人的想法?谢谢 :)
编辑
好.我做了一点修改:
我已将"assets","bin"和"res"文件夹添加到我在AndroidJavaLibrary项目中添加的".zip"文件中.
它编译得很好,但现在我在同一行上得到另一个错误:
Android.Views.InflateException: Binary XML file line #2: Error inflating class com.slidingmenu.lib.SlidingMenu
Run Code Online (Sandbox Code Playgroud) 我可以将Azure Active Directory B2C设置为与多个子域一起使用吗?到目前为止,这是我所做的:
现在,我想要的是:当我登录“ mytest.com”时也要登录“ subdomain.mytest.com”
这可能吗 ?
我的应用程序是使用OpenId Connect的ASP.NET MVC应用程序。如果需要,我可以提供更多详细信息。
谢谢
asp.net azure azure-active-directory openid-connect azure-ad-b2c
我有这个对象
public class ConversationAPI
{
[JsonProperty(PropertyName = "lU")]
public DateTime LastUpdated { get; set; }
[JsonProperty(PropertyName = "m", TypeNameHandling = TypeNameHandling.All)]
public List<Message> Messages { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
我从 API 作为 json 发送,然后在我的客户端应用程序中反序列化。
The List<Message> Messages property contains either
[Serializable]
public class Message
{
[JsonProperty(PropertyName = "t")]
public string Text { get; set; }
[JsonProperty(PropertyName = "ty")]
public MessageType Type { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
或者
[Serializable]
public class DerivedMessage : Message
{
[JsonProperty(PropertyName = "sos")]
public string SomeOtherStuff{ …
Run Code Online (Sandbox Code Playgroud) 将日志保存到 Azure Blob 存储时,是否可以每天创建不同的文件夹?现在我正在使用这个配置,它工作正常
<appender name="AzureAppender2" type="log4net.Appender.AzureBlobAppender, log4net.Appender.Azure">
<param name="ContainerName" value="testcon" />
<param name="DirectoryName" value="myfolder/logs.txt" />
<param name="ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=testcon;AccountKey="rftgdfgdfgfdg78=="/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
</layout>
</appender>
Run Code Online (Sandbox Code Playgroud)
我已经试过了
<param name="DirectoryName" value=%date/" />
Run Code Online (Sandbox Code Playgroud)
但它不起作用
我想要的是能够每天动态使用不同的文件夹:比如
目录名称 = 2016-05-13
目录名称 = 2016-05-12
目录名称 = 2016-05-11
这是可以实现的吗?
谢谢
log4net azure log4net-configuration log4net-appender azure-blob-storage